XSL-FO Tutorials - Herong's Tutorial Examples - Version 2.10, by Dr. Herong Yang
What Is XSLT (XSL Transformations)
This section describes XSLT (XSL Transformations), which is a language that allows you to write a stylesheet as an XML document to describe rules for transforming a source XML document into a new XML document or a regular text document.
What Is XSLT (XSL Transformations)? XSLT is a language that allows you to write a stylesheet as an XML document to describe rules for transforming a source XML document into a new XML document or a regular text document.
XSLT is mainly designed to be used with XSL to transform a source XML document into an XML document with formatting objects. However, XSLT is also widely used to transform XML documents by adding, removing or altering XML elements for other non-presentation purposes.
For example, below is an XSLT stylesheet that will transform an XML document with "student" elements nested inside a "class" element into a list of students in a regular text document:
<?xml version="1.1"?> <xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="class"> Start of student list <xsl:apply-templates select="student"/> End of student list </xsl:template> </xsl:stylesheet>
See XML Tutorials - Herong's Tutorial Examples book on how to write XSLT stylesheets and apply them to XML documents.
Last update: 2016.
Table of Contents