Uwe,

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 <[EMAIL PROTECTED]> 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

Reply via email to