Message Text
Collection scopes, directory scopes, and path-namespaces cannot be declared in child extraction templates, bad node:: variable1
Cause
Collection scopes, directory scopes, and path-namespaces cannot be declared in child extraction templates.
Response
Move the collection scopes, directory scopes and the path-namespaces to the top-level template.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.