[xquery-talk] querying an xml file with namespaces

Michael Kay mhk at mhk.me.uk
Thu Jan 12 10:01:03 PST 2006


 
> 
> You can get all the namespaces in a document with something like this
> "distinct-values(//*/namespace-uri(.))".

No, that will only return the namespaces that are used in element names. If
your document includes an xsi:type attribute, for example, then the above
isn't likely to include the XMLSchema-instance namespace.

Michael Kay
http://www.saxonica.com/




More information about the talk mailing list