Monday, January 28, 2013

[WSO2 ESB] Enable XPath 2.0

XPath 2.0 support is available in WSO2 ESB 4.5.0 and later versions.

To enable XPath 2.0 functions, we have to uncomment following entry in the file.
synapse.xpath.dom.failover.enabled=true file is located at $ESB_HOME/repository/conf directory.
After enabling xpath 2.0, you will able to use xpath functions like "codepoint-equal()" in your synapse configuration.

If you are using synapse specific xpath functions like "get-property()" within a xpath 2.0 function you have to use them with the prefix "syn".

Follwoing is an example for a such usage.

Above function uses "codepoint-equal()" xpath 2.0 function to compare two properties.

No comments:

Post a Comment