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.