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 to filter out frozen nodes
Date Tue, 24 Feb 2009 22:11:25 GMT
On Tue, Feb 24, 2009 at 9:51 PM, Conoly, Brett
<Brett.Conoly@digitalinsight.com> wrote:
> What I was trying to implement was some kind of filter against the
> actual jcr:type of file, i.e.
>
> //*[jcr:contains(.,'pathFilter')][@wc:fileType='temporary'][jcr:type='my
> :file']
>
> But this doesn't seem to work, any suggestions?

The jcr-special element function is what you need [1]:

//element(*, my:file)[jcr:contains(.,'pathFilter') and @wc:fileType='temporary']

[1] http://www.day.com/specs/jcr/1.0/6.6.4.13__i_element____i__Node_Test.html

Regards,
Alex

-- 
Alexander Klimetschek
alexander.klimetschek@day.com

Mime
View raw message