xdmp:apply( $function as xdmp:function, [$params-1-to-N as item()*] ) as item()*
Applies an xdmp:function
with the given parameters.
let $function := xdmp:function(xs:QName("fn:empty")) return xdmp:apply($function, ()) => true
let $function := xdmp:function(xs:QName("fn:concat")) return xdmp:apply($function, "hello", " world") => hello world
let $function := xdmp:function(xs:QName("fn:current-date")) return xdmp:apply($function) => 2009-02-14-08:00 (or whatever is the current date)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.