Document scope in domain scope is invalid: variable1
A domain document-scope specification is not valid. It must be "document", "directory", or "collection".
Fix the domain specification.
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.