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: XPATH question
Date Sat, 02 Jun 2007 09:55:24 GMT
Andre Scheunemann wrote:
> I'm trying to select nodes that have attributes that contain a certain 
> string.
> This is done using:   //*[jcr:contains(@*,'some text')]
> 
> But I want to limit the searched attributes to those of a specific name 
> space.
> Is there a way to do this?
> 
> I have tried the following:   //*[jcr:contains(@xx:*,'some text')] where 
> xx is the name space abbreveation
> but this gives an exception.

this is not possible currently, you have to add a jcr:contains function for each 
property with the given namespace. e.g.:

//*[jcr:contains(@xx:a,'some text') or jcr:contains(@xx:b,'some text')]

regards
  marcel

Mime
View raw message