xdmp:annotation( $function as function(*), $name as xs:QName ) as item()*
Returns the named annotation from the function.
Parameters | |
---|---|
function | The function value. |
name | The annotation name. |
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")