|}
==XPSTXQST: Static XQuery Errors==
{| class="wikitable" width="100%"
|- valign="top" scope="row"
|<code>XQST0039</code>
| Two or more parameters of in a user-defined function have the same name.
|<code>declare function local:fun($a, $a) { $a * $a };<br/>local:fun(1,2)</code>
|- valign="top" scope="row"
| Two or more attributes in an element have the same node name.
|<code><elem a="1" a="12"/></code>
|- valign="top" scope="row"
|<code>XQDY0045</code>
| A user-defined function uses a reserved namespace.
|<code>declare function fn:fun() { 1 }; ()</code>
|- valign="top" scope="row"
|<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 module declaration does not match the namespace of the specified module.
|<code>import module namespace invalid="uri"; 1</code>
|- valign="top" scope="row"
|<code>XQST0049</code>
| A global variable was declared more than once.
|<code>declare variable $a := 1;<br/>declare variable $a := 1; $a</code>
|}