Loading TOC...

xdmp:function-module

xdmp:function-module(
   $function as xdmp:function
) as xs:string

Summary

Returns the module location (if any) that the xdmp:function value refers to.

Parameters
$function The function value.

Example

xquery version "1.0-ml";
declare namespace admin="http://marklogic.com/xdmp/admin";

let $fn := xdmp:function(xs:QName("admin:get-configuration"),
             "/MarkLogic/admin.xqy")
return
xdmp:function-module($fn)

=> "/MarkLogic/admin.xqy"

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