Supported XPath functions in WSO2 ESB 4.8.1

半世苍凉 提交于 2019-12-30 06:58:25

问题


The following XPath functions seem not be supported in WSO2 ESB 4.8.1:

  • escape-html-uri()
  • iri-to-uri()
  • encode-for-uri()

Does anyone know what XPath functions are supported and what are not supported in WSO2 ESB 4.8.1?


回答1:


As far as I can tell from the JavaDocs, the synapse XPath implementation is built on Jaxen, which is XPath version 1.0 only. Therefore none of those functions will be supported, you only have the very limited function library of XPath 1.0 plus the synapse-specific get-property extension.




回答2:


XPath 2.0 is supported in WSO2 ESB from version 4.5.0 onwards. It's disabled by default, so you need to do the following to enable it.

  • Open $ESB_HOME/repository/conf/synapse.properties
  • Uncomment the following line,

    synapse.xpath.dom.failover.enabled=true

To access properties in a proxy service, you need to use the prefix syn.

ex.

<property expression="syn:get-property('myProperty')" name="getMyProperty" scope="default" type="STRING"/>


来源:https://stackoverflow.com/questions/23385728/supported-xpath-functions-in-wso2-esb-4-8-1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!