Hi Geert,
Thanks for your reply.
Actually I'd like to add more data to the annotation and leaf out optional
values.
Example:
%local:foo("value1", "description")
%local:foo("value2")
Ideally (for my use case) "description" is optional, but this is not
possible anymore when the annotations are combined.
%local:foo("value1", "description", "value2", "")
Cheers,
Andreas
2015-11-27 13:31 GMT+01:00 Geert Josten <[email protected]>:
> 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]> on behalf of Andreas
> Hubmer <[email protected]>
> Reply-To: MarkLogic Developer Discussion <[email protected]>
> Date: Friday, November 27, 2015 at 12:48 PM
> To: MarkLogic Developer Discussion <[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
>
>
--
Andreas Hubmer
IT Consultant
EBCONT enterprise technologies GmbH
Millennium Tower
Handelskai 94-96
A-1200 Vienna
Mobile: +43 664 60651861
Fax: +43 2772 512 69-9
Email: [email protected]
Web: http://www.ebcont.com
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