fn:function-available( $function-name as xs:string, [$arity as xs:integer] ) as xs:boolean
Returns true if and only if there is an XQuery or XSLT function whose name and optionally arity matches the value of the $function-name and the optional $arity arguments. This is an XSLT function, and it is available in both XSLT and XQuery 1.0-ml.
xquery version "1.0-ml"; fn:function-available("fn:doc") => true
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.