XML template engine

An XSLT processor is a software to convert documents using an XSLT style sheets. The result is a new document that can be (for example, as a DOM object) further processed or output to a file.

The XSLT processor reads the input document and the stylesheet and parses it. Starting with the root element of the document, the XSLT processor then checks to see which template ( rule) is applied the stylesheet. The template found in this way determines what is written to the output. In many cases, this is the content of the current node (XSLT -terminus: the context node ) or an algorithmically calculated result on the basis of. In addition, the template determines which parts of documents are processed next: about the children of the context node, other parts of the input document or an external document. In addition to the rules in the stylesheet explicitly formulated ( any text or Edit Copy as each child element) also predefined rules apply when there is no matching template is found.

The output of the XSLT processor is initially an object model of the output document. About a programming interface ( API), this object can be processed directly. Most XSLT processors dominate the output in one or more files ( serialization).

XSLT processors initially differ in the supported XSLT and XPath versions ( 1.0 and / or 2.0). For XSLT 2.0, XSLT standard also defines the distinction between basic XSLT processor ( full support of the XSLT 2.0 standard ) and Schema -Aware XSLT processor (English » schema aware ": additional consideration of information from XML schemas at processing). Widely used is the standard-compliant, stable, and supporting Java platform-independent Saxon processor. Many modern web browser such as Internet Explorer, Mozilla Firefox and Opera have built-in XSLT 1.0 processors, so they can XSLT XML documents directly formatted show.

XSLT processors (selection)