jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christoph Kiehl <christ...@sulu3000.de>
Subject Re: 'any property'-Support for XPath-Query (@*)
Date Thu, 23 Aug 2007 09:05:03 GMT
Markus Fritz wrote:

> have anybody get a XPath search working with a relational query on
> <any property> ("@*"), for example:
> 
>     //users/*/*/*/masterdata[@*='Michael']
> 
> or
> 
>     //users/*/*/*/masterdata[jcr:contains(@*,'Michael')]
> 
> I am new to XPath/jackrabbit, but the above query seems correct to me.

Try the following:

//users/*/*/*/masterdata[jcr:contains(.,'Michael')]

This should do what you are looking for.

Cheers,
Christoph


Mime
View raw message