Loading TOC...

MarkLogic 12 EA 1 Product Documentation
xdmp.functionParameterName

xdmp.functionParameterName(
   function as function(*),
   position as Number
) as xs.QName

Summary

Returns the name of the parameter at the designated (1-based) position from the given function's signature.

Parameters
function The function value.
position The 1-based position of the parameter.

Example

var fn = xdmp.function(fn.QName("http://www.w3.org/2005/xpath-functions",
                                "empty"));
xdmp.functionParameterName(fn,1);
=> "arg1"

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.