此内容没有您所选择的语言版本。

11.11. XPath Domain-Specific Language


Note

You may find it convenient to undertake an XPath-based evaluation of XML-based messages. Red Hat supports this by shipping a domain-specific language implementation. Use this implementation to add XPath expressions to the rule file.
  1. First, define the expressions in the XPathLanguage.dsl file and use the following code to reference it in the rule set:
    expander XPathLanguage.dsl
    
    Copy to Clipboard Toggle word wrap
  2. The XPath Language makes sure the message is in JBOSS_XML and that the following items have been defined:
    1. xpathMatch<element> : this yields true if an element by this name is matched.
    2. xpathEquals<element> , <value> : this yields true if the element is found and its value equals the value.
    3. xpathGreaterThan<element> , <value> : this yields true if the element is found and its value is greater than the value.
    4. xpathLessThan<element> , <value> : this yields true if the element is found and its value is lower then the value.

    Note

    The fun_cbr quick-start demonstrates this use of XPath.

    Note

    It is possible to define a completely different domain-specific language.

返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat