2014-02-24 47 views
0

我有以下XPath查詢:排除類型從XPath的結果JCR

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

我想要做的是從結果集中排除hand:iris類型的所有節點。我怎樣才能做到這一點?

+1

請添加一些示例文件以匹配。 –

回答

0

下面的查詢應該讓:
"//element(*, hippo:harddocument)[jcr:contains(., 'jasper') and not(@jcr:primaryType = 'hand:iris'))]"

BR。