Configuring an ESB route with Saxon to allow use of external functions

Question

How do I configure an ESB route with XSLT URI (Saxon) to allow the use of external functions?

 

Answer

You need to use a user-defined transformer factory where secure processing is already turned off.

 

To do that, the transformer factory should be defined in the route's Spring configuration (click the Spring tab of the route) by adding the following element:

<bean id="myTransformerFactory" class="net.sf.saxon.TransformerFactoryImpl">
</bean>

Then, the factory myTransformerFactory should be passed at the end of the XSLT URI parameter, as follows:

"xslt://file:///opt/test/test.xslt?transformerFactory=#myTransformerFactory"
Version history
Revision #:
4 of 4
Last update:
‎09-07-2017 05:13 PM
Updated by:
 
Labels (2)
Contributors
Tags (1)