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

Reply via email to