jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conoly, Brett" <Brett.Con...@digitalinsight.com>
Subject RE: Xpath query to filter out frozen nodes
Date Tue, 24 Feb 2009 22:17:16 GMT
That seems to work perfectly. Thanks a lot.
-Brett

-----Original Message-----
From: Alexander Klimetschek [mailto:aklimets@day.com] 
Sent: Tuesday, February 24, 2009 5:11 PM
To: users@jackrabbit.apache.org
Subject: Re: Xpath query to filter out frozen nodes

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.htm
l

Regards,
Alex

-- 
Alexander Klimetschek
alexander.klimetschek@day.com

Mime
View raw message