Question

I have the following XPath query:

//element(*, hippo:harddocument)[jcr:contains(., 'jasper')]

What I want to do is exclude all nodes of type hand:iris from the result set. How can I do this?

Was it helpful?

Solution

The following query should make it:
"//element(*, hippo:harddocument)[jcr:contains(., 'jasper') and not(@jcr:primaryType = 'hand:iris'))]"

BR.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top