W3C XQuery Standard Equivalent: err:XPTY0004
Message Text
Not a singleton function value
Cause
A dynamic function call can only be made against a sequence consisting of a single function item.
Response
Use the head
function to choose the first function in the sequence, or iterate over all the functions using for
or !
.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.