"Lee, David" wrote: > wow thanks ! I didnt know you could do that. Declare a prefix > for a namespace to query a non-prefixed document without > changing the document.
It seems you misunderstood QNames then, as the prefix is non relevant. The name of an element or an attribtue is a QName, that is the triplet ns-prefix/ns-uri/local-name. The prefix is not involved in the comparison of two QNames. The whole point of namespaces is to rely only on the namespace URI and the local name, and let each author (for XML documents, XQuery modules, etc.) choose his/her own prefixes. Hope that helps, regards, -- Florent Georges http://www.fgeorges.org/ _______________________________________________ General mailing list General@developer.marklogic.com http://xqzone.com/mailman/listinfo/general