xdmp:annotation

xdmp:annotation(
   $function as function(*),
   $name as xs:QName
) as item()*

Summary

Returns the named annotation from the function.

Parameters
function The function value.
name The annotation name.

Example

xquery version "1.0-ml";

declare %local:annotation(1,2,"foo")
  function local:function() { () };
  
xdmp:annotation(local:function#0,xs:QName("local:annotation"))
=> (1, 2, "foo")
Powered by MarkLogic Server | Terms of Use | Privacy Policy