jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christoph Kiehl <christ...@sulu3000.de>
Subject Re: query for child property
Date Tue, 14 Aug 2007 20:40:57 GMT
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


Mime
View raw message