Easy Tutorial
❮ El Value Of Xsl Summary ❯

Introduction to XSLT


XSLT is a language used to transform XML documents into XHTML documents or other XML documents.

XPath is a language used for navigation within XML documents.


Prerequisites

Before you continue, you should have a basic understanding of the following:

If you want to learn these topics first, please visit our homepage for tutorials.


What is XSLT?


XSLT = XSL Transformations

XSLT is the most important part of XSL.

XSLT is used to transform one XML document into another XML document, or into other types of documents that can be recognized by browsers, such as HTML and XHTML. Typically, XSLT accomplishes this by converting each XML element into an (X)HTML element.

With XSLT, you can add elements and attributes to the output file, or remove elements and attributes from it. You can also rearrange and sort elements, perform tests and decide which elements to hide or show, and more.

A common way to describe the transformation process is that XSLT transforms the XML source tree into the XML result tree.


XSLT Uses XPath

XSLT uses XPath to find information in XML documents. XPath is used to navigate through elements and attributes in XML documents.

If you want to learn XPath first, please visit our XPath tutorial.


How Does It Work?

During the transformation process, XSLT uses XPath to define parts of the source document that match one or more predefined templates. Once a match is found, XSLT converts the matching part of the source document into the result document.


XSLT is a W3C Standard

XSLT was established as a W3C standard on November 16, 1999.

For more information about W3C's XSLT activities, please visit our W3C tutorial.

❮ El Value Of Xsl Summary ❯