jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alessandro Bologna" <alessandro.bolo...@gmail.com>
Subject Re: Which subset of XPath is implemented in Jackrabbit?
Date Fri, 16 Mar 2007 15:01:57 GMT

please don't take my response as an 'official' one, but looking at the
source code of

org.apache.jackrabbit.core.query.XPathAxisTest.java  can reveal what axis
are supported, and yes, ancestor is not supported.
>From a quick glance, I would say that the child axis, the descendant and
self and the index are supported.

in other words, you can use things like //a//b/*/c[4], but not much else.
And, i think that only the abbreviated notation is supported.

Again, please don't take my word as an 'official' answer.

Alessanddro bologna

On 3/16/07, Uwe Sandner <uwe@cdtm.de> wrote:
> Hi,
> The JSR170-1.0 Spec (section 6.6.6) says that only a subset of XPath
> 2.0 has to be implemented for JCR. Especially support for ForwardAxis
> and ReverseAxis is not mandatory.
> Example:
> <a>
> <b>
>    <c/>
> </b>
> </a>
> Query: "//b/ancestor::*"
> Result: -- nothing
> Expected result: <a>
> I guess "ancestor" is not implemented by Jackrabbit  - or is my query
> wrong?
> Is there a documentation which parts are implemented in Jackrabbit?
> Thanks,
> Uwe

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message