xdmp:function-parameter-type

xdmp:function-parameter-type(
   $function as function(*),
   $position as xs:integer
) as xs:string

Summary

Returns the type 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

let $fn := fn:empty#1
return
  xdmp:function-parameter-type($fn,1)
=> "item()*"
Powered by MarkLogic Server | Terms of Use | Privacy Policy