Start of change

-16088   AN expression-type EXPRESSION HAS A BINDING OF A NAMESPACE PREFIX prefix-string TO NAMESPACE URI uri-string, INTRODUCED TO AN ELEMENT NAMED element-name, THAT CONFLICTS WITH AN EXISTING NAMESPACE BINDING OF THE SAME PREFIX TO A DIFFERENT URI IN THE IN-SCOPE NAMESPACES OF THAT ELEMENT NODE. ERROR QNAME=err:XUDY0023.

Explanation

An expression has introduced a new namespace binding for a prefix into an element node that conflicts with one of the existing namespace bindings of the in-scope namespaces of that node.

expression-type
The type of expression.
prefix-string
The prefix.
uri-string
The URI in the new namespace binding.
element-name
The name of the XML element.

The element node could be the target in the updating expression or the parent of the target in the updating expression. For example, an insert expression might insert an attribute into an existing element. If the QName of the inserted attribute binds prefix P to some URI, but an in-scope namespace of the element node binds the same prefix P to a different URI, a conflict is detected and this error is issued.

System action

The XQuery expression cannot be processed.

Programmer response

If the expression is intentionally introducing a new namespace binding, modify the expression so that is uses a namespace prefix that is different from all existing prefixes of the in-scope namespaces of the indicated element. Otherwise, modify the expression so that the binding of the prefix string uses the same URI as the existing namespace binding of the in-scope namespaces of the indicated element.

SQLSTATE

10708

End of change