Ard Schrijvers wrote:

Yes, your first query returns the correct results, and the second returns nothing? However, I'm not sure what that tells me. It seems like i can't
reference a node property for that nodetype.  Any ideas?

According 6.6.5.2 jsr 170 specification you can either use "." (this node) or a property (@my:property). So apparently, your second query is not valid according specification.
//element(*,cwe:comment)[jcr:contains(@cwe:body,'banana')] should work again,

Jackrabbit actually supports child axis expression for xpath predicates like contains() since version 1.2.1 . It's a special Jackrabbit feature which is not covered by the spec. See http://issues.apache.org/jira/browse/JCR-247.

Cheers,
Christoph

Reply via email to