I'm using JAXP XSLT APIs (javax.xml.transform) to transform xml file.
TransformerFactory transformerFactory = TransformerFactory.newInstance();
Transformer transformer = transformerFactory.newTransformer(xslSource);
transformer.transform(inputSource, outputResult);
The javadoc for TransformerFactory says: It uses the following ordered lookup procedure to determine the TransformerFactory implementation class to load:
I wonder how to decide which is the default TransformerFactory instance?
"Platform" here is Java-speak for the Java compiler / runtime you are using. So the "platform default" means whatever the JDK decides. In the case of the Oracle JDK, it's a version of the Xalan XSLT 1.0 engine that's built in to the JDK. A different JDK could use a different default.
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