Thanks for the reply. Here are a couple more questions:
I would like to limit the selection to nodes matching a pattern such as
*.abc
I've tried the following without success:
//*[jcr:like(name(), '%abc)]
//[EMAIL PROTECTED]:path, '%abc')]
Is there a way to combine multiple nodetype tests in a single search for
example:
element(*, nt:file) and element(*, someMixinType)
element(*, nt:file) or element(*, nt:folder)
Thanks,
Andre
Marcel Reutegger wrote:
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