-16023 THE XQUERY PROLOG CANNOT CONTAIN MULTIPLE DECLARATIONS FOR THE SAME NAMESPACE PREFIX ns-prefix. ERROR QNAME = err:XQST0033
Explanation
The prolog contains multiple declarations for the namespace prefix nsprefix. Although a namespace declaration in a prolog can override a prefix that has been predeclared in the static context, the same namespace prefix cannot be declared more than once in the prolog.
System action
The XQuery expression cannot be processed.
Programmer response
Remove any extra declarations for the prefix from the prolog, or change the prefix that is assigned to the extra declarations. Verify that the prefixes used in the query reference the correct namespaces.
SQLSTATE
10503