Factory class: Obtained by abstract class javax.xml.transform.TransformerFactory.newInstance () to Implement factory class
The search path order for this factory method is as follows:
1. Check the Java System property value "Javax.xml.transform.TransformerFactory"
2. Querying the contents of the/meta-inf/services/javax.xml.transform.transformerfactory file in the jar file
Several commonly used classes:
Techcommon:
Depending on the system properties of Java,
Javax.xml.transform.transformerfactory=net.sf.saxon.transformerfactoryimpl
ACM FACTORY class:
Net.sf.saxon.TransformerFactoryImpl (ie3rdpartylibs.jar/meta-inf/services/ Javax.xml.transform.TransformerFactory)
JRE Default class:
Org.apache.xalan.processor.TransformerFactoryImpl
Conversion method:
Transformerfactory.newinstance (). Newtransformer (Source of XSLT)
. Transform (Javax.xml.transform.Source, Javax.xml.transform.Result)
The purpose of XSLT is to convert an XML file or stream/dom object to another xml/xhtml file or stream/dom object