W3C XQuery Standard Equivalent: err:XPTY0019
variable1 is not a node
You are trying to use data that is not a node when a node is required.
Rewrite your query so it submits a node.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.