【问题标题】:Exclude type from XPath result JCR从 XPath 结果 JCR 中排除类型
【发布时间】:2014-02-24 14:43:54
【问题描述】:

我有以下 XPath 查询:

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

我想要做的是从结果集中排除所有hand:iris 类型的节点。我该怎么做?

【问题讨论】:

  • 请添加一些示例文档进行匹配。

标签: xpath jcr


【解决方案1】:

下面的查询应该是:
"//element(*, hippo:harddocument)[jcr:contains(., 'jasper') and not(@jcr:primaryType = 'hand:iris'))]"

BR。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-10-13
    • 1970-01-01
    • 2021-12-14
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多