[xquery-talk] Is it possible to maintain a list of value in XQuery

Michael Sokolov msokolov at safaribooksonline.com
Wed May 15 12:26:22 PDT 2013

On 5/15/2013 10:47 AM, Kunal Chauhan wrote:
> Hi,
> I want to maintain a list of value.
> for eg:
> initially I have blank list and through some process I add values in 
> to the list.
> like (Apple,Banana,Cherry)
> now, when get Apple as an output 2nd time it will check into the list.
> If present than don't add value into the list otherwise add it.
> At last I will return the list.
> I don't know whether it's possible or not.
> But this there any work around.
You might want to look into maps, a new feature in XQuery 3.0, which 
provide a natural and (probably) efficient way to do this, but whether 
that is available to you will depend on which processor you are using.


More information about the talk mailing list