Tuesday, July 12, 2011

Changing the underlying XSLT processor of WSO2 ESB

The default XSLT processor shipped in with WSO2 ESB is xalan. Let's assume that you need to change the xslt processor to saxon.

Following are the steps to set saxon as the XSLT processor.

1) Remove the xalan-2.7.0.wso2v1.jar from the following locations.
ESB_HOME/lib/xalan-2.7.0.wso2v1.jar
ESB_HOME/lib/endorsed/xalan-2.7.0.wso2v1.jar

2) Then add the Saxon home edition(saxon9he.jar) to the above mentioned locations.
ie.
ESB_HOME/lib/
ESB_HOME/lib/endorsed/

Saxon can be downloaded from [1].

3) Start the ESB server.

After changing the XSLT processor to Saxon, you can do your transformations with the use of Saxon parser.

[1] - http://saxon.sourceforge.net/

No comments: