XSLT Tutorial


XSL stands for EXtensible Stylesheet Language. It is a stylesheet language for XML documents.

XSLT stands for XSL Transformations. In this tutorial, you will learn how to use XSLT to transform XML documents into other documents, such as XHTML.

Start learning XSLT now!

Online XSLT conversion tool – XML to HTML online preview

XSLT Examples


XSLT Examples

<?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <html> <body> <h2>My CD Collection</h2> <table border="1"> <tr bgcolor="#9acd32"> <th>Title</th> <th>Artist</th> </tr> <xsl:for-each select="catalog/cd"> <tr> <td><xsl:value-of select="title"/></td> <td><xsl:value-of select="artist"/></td> </tr> </xsl:for-each> </table> </body> </html> </xsl:template> </xsl:stylesheet>

Try it Yourself »

XSLT Reference Manual

XSLT Elements
Describes all XSLT elements from W3C standards, along with information about browser support.

XSLT Functions
XSLT contains over 100 built-in functions. These functions can be used for string, numeric, date and time comparison, node and QName processing, sequence processing, boolean values, and more.

Other Extensions