Start of change

-16086   THE REPLACEMENT SEQUENCE OF A REPLACE EXPRESSION CONTAINS INVALID NODES FOR THE SPECIFIED TARGET NODE. ERROR QNAME=err:error-name.

Explanation

A node in the replacement sequence cannot be used to replace the target node.

error-name
An error identifier that indicates the reason why the expression is not valid.
XUDY0010
The value of keywords are not specified and the target node is not an attribute node. The replacement sequence must contain only element, text, comment, or processing instruction nodes, but at least one item in the sequence is an attribute node.
XUDY0011
The value of keywords are not specified and the target node is an attribute node. The replacement sequence must contain only attribute nodes, but at least one item in the sequence is not an attribute node.

System action

The XQuery expression cannot be processed.

Programmer response

Correct the source expression in the WITH clause of the replace expression to ensure that the replacement sequence contains only valid nodes for the target node.

SQLSTATE

10706

End of change