Loading TOC...

sc:function-return-type

sc:function-return-type(
   [$arg as function(*)]
) as schema-type()

Summary

Returns the return type of a function item as a schema component. The context item is used if no argument is given.

Parameters
arg The function item whose return type is to be returned.

Example

xdmp:describe(
  function-lookup(xs:QName("fn:normalize-unicode"),1) !
    sc:function-return-type(.)
)
  =>
#xs:string

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