(* *)
(***********************************************************************)
-(*
- Time-stamp: <Last modified on 2013-04-18 11:22:00 CEST by Kim Nguyen>
-*)
-
-
type path = single_path list
and single_path = Absolute of step list | Relative of step list
and step = axis * test * expr list
Text -> pp fmt "%s" "text()"
| Element | Attribute ->
pp fmt "%s" begin
- if ts == star then "*"
- else QName.to_string (QNameSet.choose ts)
+ if QNameSet.is_finite ts then
+ QName.to_string (QName.remove_prefix (QNameSet.choose ts))
+ else "*"
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>"
| Preceding -> Following
| Following -> Preceding
;;
-