Declares the XML namespaces for the qualified names used in an XQuery query.
XQuery-declaration ::= [{XML-namespace-declaration|default-XML-namespace-declaration};]... |
If the body of an XQuery query contains prefixed qualified names, declares the XML namespace corresponding to the prefix for those qualified names.
The same prefix cannot be declared for multiple XML namespaces.
Declares the default XML namespace to be used in the body of the Xquery query. The XML namespace for any qualified name in the XQuery query that does not have a prefix will be searched for in the XML namespace declared here.
In XQuery, both a default XML namespace declaration for specifying elements and a default XML namespace declaration for specifying functions can be declared, but only one of each.
If no declaration is made, the XML namespace URI for the default XML namespace to be used for both XML element names and XQuery data type names is assumed to be http://www.w3.org/XML/1998/namespaces, and the XML namespace URI for the default XML namespace to be used for XQuery functions is assumed to be http://www.w3.org/2006/xpath-functions.