sc:function-parameter-type( [$arg as function(*)], [$param as xs:integer?] ) as schema-type()?
Returns the declared parameter type of a specific parameter of the function item as a schema component.
let $f := function-lookup(xs:QName("sc:function-parameter-type"),2) return ( for $a in 1 to function-arity($f) return (concat("arg",$a,"=",sc:function-parameter-type($f,$a))) ) => arg1=#xdmp:function arg2=#xs:anyAtomicType
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.