Latest web development tutorials

XSLT Introduction

XSLT is a method for XML documents into other XML or XHTML document language documents.

XPath is a language for navigating in XML documents.


You need to have basic knowledge

Before you continue to learn, we need to have a basic understanding of the following:

  • HTML / XHTML
  • XML / XML namespace
  • XPath

If you want to study these subjects first, please our home page to access these tutorials.


What is XSLT?

  • XSLT XSL transformation means (XSL Transformations)
  • XSLT is the most important part of XSL
  • XSLT can convert an XML document into another XML document
  • XSLT uses XPath to navigate in XML documents
  • XSLT is a W3C standard

XSLT = XSL conversion

XSLT is the most important part of XSL.

XSLT is used to convert an XML document into another XML document, or may be browser identification of other types of documents, such as HTML and XHTML. Typically, XSLT by each XML element is converted to (X) HTML elements to complete this work.

By XSLT, you can add elements and attributes to the output file, or remove elements and attributes from the output file. You can also rearrange and sort elements, perform tests and decide to hide or show which element, and so on.

One common statement describes the conversion processis, XSLT to XML source tree into a result tree as XML.


XSLT uses XPath

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

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


How does it work?

During the conversion process, XSLT uses XPath to define the source document can match one or more predefined templates section. Once a match is found, XSLT will put matching part of the source document into a result document.


XSLT is a W3C standard

XSLT in November 16, 1999 was established as the W3C standards.

For more information on the W3C XSLT activities, please visit our W3C tutorial .