|<code>XQST0032</code>
| The base URI was declared more than once.
|<code>declare base-uri "a";<br/>declare base-uri "b"; ()...</code>
|- valign="top" scope="row"
|<code>XQST0033</code>
|<code>XQST0038</code>
| The default collation was declared more than once.
|<code>declare default collation "a";<br/>declare default collation "b"; ()...</code>
|- valign="top" scope="row"
|<code>XQST0039</code>
|<code>XQST0047</code>
| A module was defined more than once.
|<code>import module "uri";<br/>import module "uri"; 1...</code>
|- valign="top" scope="row"
|<code>XQST0048</code>
| A global variable was declared more than once.
|<code>declare variable $a := 1;<br/>declare variable $a := 1; $a</code>
|- valign="top" scope="row"
|<code>XQST0054</code>
| A global variable depends on itself. This may be triggered by a circular variable definition.
|<code>declare variable $a := local:a();<br/>declare function local:a() { $a }; $a</code>
|- valign="top" scope="row"
|<code>XQST0055</code>
| The mode for copying namespaces was declared more than once.
|<code>declare copy-namespaces ...</code>
|- valign="top" scope="row"
|<code>XQST0057</code>
| The namespace of a schema import may not be empty.
|<code>import schema ""; ()</code>
|- valign="top" scope="row"
|<code>XQST0059</code>
| The schema or module with the specified namespace cannot be found or processed.
|<code>import module "unknown"; ()</code>
|- valign="top" scope="row"
|<code>XQST0060</code>
| A user-defined function has no namespace.
|<code>declare default function namespace "";<br/>declare function x() { 1 }; 1</code>
|- valign="top" scope="row"
|<code>XQST0065</code>
| The ordering mode was declared more than once.
|<code>declare ordering ...</code>
|- valign="top" scope="row"
|<code>XQST0065</code>
| The default namespace mode for elements or functions was declared more than once.
|<code>declare default element namespace ...</code>
|- valign="top" scope="row"
|<code>XQST0067</code>
| The construction mode was declared more than once.
|<code>declare construction ...</code>
|- valign="top" scope="row"
|<code>XQST0068</code>
| The mode for handling boundary spaces was declared more than once.
|<code>declare boundary-space ...</code>
|- valign="top" scope="row"
|<code>XQST0069</code>
| The default order for empty sequences was declared more than once.
|<code>declare default order empty ...</code>
|}