Btw, you can vote up this report http://sourceforge.net/p/sedna/bugs/32/ to
get this fixed .


On Fri, Mar 22, 2013 at 12:51 PM, Ivan Shcheklein <shchekl...@gmail.com>wrote:

> Hi Anju,
>
> No, there is no way now. There are two workarounds though (first is much
> better and faster, I believe):
>
> 1. exists(collection("test")[document-uri(.) eq "you-document-name"])
> 2. use doc('$documents')
>
> Ivan Shcheklein,
> Sedna Team
>
>
> On Thu, Mar 21, 2013 at 9:26 PM, Anju <a...@ualberta.ca> wrote:
>
>> Does the current version of Sedna support document-uri() and
>> doc-available() for
>> documents in a collection?
>>
>> I ran a test like this:
>>
>> for $i in collection('dashboard')
>>  let $uri := document-uri($i)
>>  let $avail := doc-available($uri)
>> return <data><uri>{$uri}</uri><available>{$avail}</available></data>
>>
>> And the output shows the uri as the document ID of the documents with
>> doc-available() returning false for every document. Is there a way to get
>> doc-available() working with collections? Thank you!
>>
>> Anju
>> ________________________________________________________
>> Anju Tai
>> Systems Analyst | Office of the Registrar | University of Alberta
>> 1-26 South Academic Building (SAB), Edmonton, AB T6G 2M7
>> Tel: 780.492.6096 | anju....@ualberta.ca
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Everyone hates slow websites. So do we.
>> Make your web apps faster with AppDynamics
>> Download AppDynamics Lite for free today:
>> http://p.sf.net/sfu/appdyn_d2d_mar
>> _______________________________________________
>> Sedna-discussion mailing list
>> Sedna-discussion@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/sedna-discussion
>>
>
>
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Sedna-discussion mailing list
Sedna-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sedna-discussion

Reply via email to