Loading TOC...

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")

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