-16011 THE RESULT OF AN INTERMEDIATE STEP EXPRESSION IN AN XQUERY PATH EXPRESSION CONTAINS AN ATOMIC VALUE. ERROR QNAME = err:XPTY0019
Explanation
Each intermediate step in an XQuery expression must evaluate to a sequence of XQuery nodes. Such sequences might be empty. They must not include any XQuery atomic values.
System action
The XQuery expression cannot be processed.
Programmer response
Modify the expression to ensure that each intermediate step in an XQuery expression returns a sequence of nodes.
SQLSTATE
10507