The transformation mechanism of XSLT

Source: Internet
Author: User
Tags xslt

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.