【发布时间】:2013-02-06 16:17:27
【问题描述】:
在代理的 inSequence 中,我使用 filter mediator 中的 xpath 查询进行过滤。但我想使用像exists() 或count() 这样的XPath 函数。但这不起作用,并且总是会产生异常。这是我的例子:
<filter xpath="count($body/myElement)>2">
<drop/>
</filter>
我总是遇到的例外:
ERROR - FilterMediator Error evaluating XPath expression : n:exists($body/avintis:Exception)
org.jaxen.UnresolvableException: No Such Function exists
我怎样才能使这些功能发挥作用?
【问题讨论】:
标签: xpath wso2 wso2esb synapse