Monday, November 23, 2015

How to use XSLT 2.0 in WSO2 ESB 4.0.3

WSO2 ESB 4.0.3 does not support XSLT 2.0 however XSLT 2.0 is supported in WSO2 ESB 4.0.5 version onwards. But you can update some library in ESB to get support of XSLT 2.0 because these supports come from the library files. If we update some library then we can use XSLT2.0 in our code.

You need to update below jar files to get support of SXLT 2.0 in ESB 4.0.3.


Steps:

  • Go to ESB_HOME/lib/endorsed/ and remove xalan-2.7.0.wso2v1.jar file from directory
  • Download saxon9he.jar from this site or you can get it from any other source. And deploy it in ESB_HOME/lib/endorsed/ location.
  • Go to ‘ESB_HOME/repository/components/plugins’ location and remove saxon-8.9.0.wso2v1.jar file

Restart server and use XSLT version 2.0, I hope it will solve your problem.