jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Reutegger <marcel.reuteg...@gmx.net>
Subject Re: Pattern matching in queries
Date Wed, 04 Jul 2007 11:20:21 GMT
Brian Thompson wrote:
> Is it even possible to do pattern matching on JCR path elements?

no, it is not. but with the next minor release of jackrabbit (1.4) you can use 
the fn:name() function together with the equals operator.

so, you can have:

//element(*, nt:file)[fn:name() eq 'foo' or fn:name() eq 'bar']

returns file nodes named foo or bar.

regards
  marcel

Mime
View raw message