Hi Andreas,

I think the idea is that you use each annotation just once, and provide 
multiple values to it:

declare
   %local:foo(“value1","value2")
function local:hello() {

Cheers,
Geert

From: 
<[email protected]<mailto:[email protected]>>
 on behalf of Andreas Hubmer 
<[email protected]<mailto:[email protected]>>
Reply-To: MarkLogic Developer Discussion 
<[email protected]<mailto:[email protected]>>
Date: Friday, November 27, 2015 at 12:48 PM
To: MarkLogic Developer Discussion 
<[email protected]<mailto:[email protected]>>
Subject: [MarkLogic Dev General] xdmp:annotation

Hi,

I have a function with annotations such that the same annotation is used twice 
but with different values.
Unfortunately xdmp:annotation returns only the values of the first annotation. 
Is it somehow possible to get both values? It would be great if the API would 
support this.

Example:
xquery version "1.0-ml";

declare
   %local:foo("value1")
   %local:foo("value2")
function local:hello() {
    ()
};

xdmp:annotation(local:hello#0, xs:QName("local:foo"))

This returns only "value1", but not "value2".

Regards,
Andreas

--
Andreas Hubmer
IT Consultant

EBCONT enterprise technologies GmbH
Millennium Tower
Handelskai 94-96
A-1200 Vienna

OUR TEAM IS YOUR SUCCESS

UID-Nr. ATU68135644
HG St.Pölten - FN 399978 d
_______________________________________________
General mailing list
[email protected]
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to