Semicolons are not necessary as a statement separator in XQuery.
Cause
A semicolon was found where the XQuery grammar does not allow one. You might be trying to terminate a statement with a semicolon, like Java and C++ require - but this is not valid in XQuery.
Response
Correct your XQuery. You might find that using a comma (",") is what you want rather than a semicolon.
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.