W3C XQuery Standard Equivalent: err:XPST0022
Message Text
Namespace declaration attribute variable1 must be a URILiteral
Cause
A namespace declaration attribute (for example, xmlns) must have a value that is a URI Literal value.
Response
If you want to compute the URI Literal value, use a computed element constructor or the xdmp:with-namespaces function to compute the value.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.