Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Switch to different XSLT Processor in ColdFusion

I am using two different versions of ColdFusion, ColdFusion 9 and ColdFusion 10, and there are different XSLT Processors in both.

ColdFusion 9 is using Apache Xalan while ColdFusion 10 is using Saxon.

So, is it possible to change the XSLT Processor?

Or

Can we use javax.xml.transform.TransformerFactory class to switch to different processor?

like image 949
Beginner Avatar asked May 14 '15 12:05

Beginner


1 Answers

You can exchange (also in coldfusion) the XSLT processor implementation by setting the following property:

javax.xml.transform.TransformerFactory=qualified.name.of.TransformerFactoryImpl

... e.g. via (-D) JVM Parameter.

TransformerFactory Javadoc:

... The system property that determines which Factory implementation to create is named javax.xml.transform.TransformerFactory. This property names a concrete subclass of the TransformerFactory abstract class. If the property is not defined, a platform default is be used.

like image 140
xerx593 Avatar answered Sep 17 '22 23:09

xerx593