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 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 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 {$uri}{$avail}
>>
>> 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 | [email protected]
>>
>>
>>
>>
>> --
>> 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
>> [email protected]
>> 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/sedna-discussion