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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With