If I want to find all child nodes containing some text, where the parent node is a node type would

//element(*,my:resourceNodeType)[*/jcr:contains(.,"test")]

work ?

And, how would I do the same for a sling:resourceType (that is not a node type) ie

a parent node has
sling:resourceType="my:resourceNodeType"
and
the node contains test.

Any ideas ?
Thanks
Ian

Reply via email to