Andre Scheunemann wrote:
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')]

this is not possible, the only operator that is supported on the node name is equals and you also need to prefix the name() function with fn:

//*[fn:name() = '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)

you can use the property jcr:primaryType and jcr:mixinTypes, but you have to take care of the node type inheritance yourself.

//element(*, nt:file)

returns all nt:file nodes as well as all nodes with a sub type of nt:file.

//[EMAIL PROTECTED]:primaryType = 'nt:file']

will only return node with exactly the primary type nt:file. but you can now add more clauses:

//[EMAIL PROTECTED]:primaryType = 'nt:file' and jcr:mixinTypes = 
'someMixinType']

or another example:

//[EMAIL PROTECTED]:primaryType = 'nt:file' or jcr:primaryType = 'nt:folder']

regards
 marcel

Reply via email to