【发布时间】:2014-02-24 14:43:54
【问题描述】:
我有以下 XPath 查询:
//element(*, hippo:harddocument)[jcr:contains(., 'jasper')]
我想要做的是从结果集中排除所有hand:iris 类型的节点。我该怎么做?
【问题讨论】:
-
请添加一些示例文档进行匹配。
我有以下 XPath 查询:
//element(*, hippo:harddocument)[jcr:contains(., 'jasper')]
我想要做的是从结果集中排除所有hand:iris 类型的节点。我该怎么做?
【问题讨论】:
下面的查询应该是:"//element(*, hippo:harddocument)[jcr:contains(., 'jasper') and not(@jcr:primaryType = 'hand:iris'))]"
BR。
【讨论】: