Message Text
Undefined external function variable1
Cause
No implementation can be found for the external function declared.
Response
External functions are not currently supported by MarkLogic - you should provide the body of the function using XQuery.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.