jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Klimetschek <aklim...@day.com>
Subject Re: XPath query with path constraint and same name siblings
Date Tue, 16 Mar 2010 14:12:44 GMT
On Tue, Mar 16, 2010 at 12:56, Gadbury <gadbury@googlemail.com> wrote:
> I have put in a piece of code that appends "[1]" to the path constraint if
> pathNode.getIndex() == 1, but this seems nasty.  Shouldn't getPath() for the
> first provider return ../provider[1] and not ../provider ? Is this a bug?

No. AFAIK the spec simply does not define a specific behavior and
Jackrabbit is optimized for the non-SNS case. Appending [1] in the
case of SNS would require to look for existing SNS nodes, which can be
quite costly, especially for an often-used method like getPath().


Alexander Klimetschek

View raw message