Factor Remakefie and add more tests for parallel query composition.
[tatoo.git] / src / xpath / ast.ml
index 7810a0e..9a0d4d7 100644 (file)
@@ -128,14 +128,14 @@ and print_test fmt (ts,kind) =
     | Element | Attribute ->
         pp fmt "%s" begin
           if ts == star then "*"
-          else QName.to_string (QNameSet.choose ts)
+          else QName.to_string (QName.remove_prefix (QNameSet.choose ts))
         end
     | Comment -> pp fmt "%s" "comment()"
     | ProcessingInstruction ->
         pp fmt "processing-instruction(%s)"
           begin
             if ts == star then ""
-            else "'" ^ (QName.to_string (QNameSet.choose ts)) ^ "'"
+            else "\"" ^ (QName.to_string (QName.remove_prefix (QNameSet.choose ts))) ^ "\""
           end
     | Node -> pp fmt "%s" "node()"
     | Document -> pp fmt "%s" "<DOCUMENT>"