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?

Était-ce utile?

La solution

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

BR.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top