jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tobias Bocanegra (JIRA)" <j...@apache.org>
Subject [jira] Commented: (JCR-392) Accessing element by number does not work
Date Sun, 04 Jun 2006 15:42:31 GMT
    [ http://issues.apache.org/jira/browse/JCR-392?page=comments#action_12414645 ] 

Tobias Bocanegra commented on JCR-392:
--------------------------------------

imo, using same name siblings should be avoided at all. they only cause problems in all sorts
of aeras. eg: searching, ordering, export/import, path access, etc. the only reason why they
made it into the spec was for the ablity to support import of arbitrary xml documents.

i suggest to use a different naming scheme for your entries. for example the wiki name, or
some random, or the creation date, or 1,2,3,4,... 

> Accessing element by number does not work
> -----------------------------------------
>
>          Key: JCR-392
>          URL: http://issues.apache.org/jira/browse/JCR-392
>      Project: Jackrabbit
>         Type: Bug

>   Components: query
>     Versions: 0.9, 1.0
>  Environment: svn version 393179M
>     Reporter: Oliver Wehrens
>     Assignee: Marcel Reutegger

>
> I have a bunch of wiki:entries stored in my workspace. If I create the following code:
>             q = qm.createQuery("//wiki:entry[5]", Query.XPATH);
>             qr = q.execute();
>             NodeIterator it = qr.getNodes();
> The Nodeiterator reports all entries back, bot just the 5th.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message