Easy Tutorial
❮ El Call Template Xsl Choose ❯

XSLT Tutorial

XSL stands for Extensible Stylesheet Language, which is a style sheet 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!

XSLT Example

<?xml version="1.0"?>

&lt;xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

&lt;xsl:template match="/">
  <html>
  <body>
    <h2>My CD Collection</h2>
    <table border="1">
      <tr bgcolor="#9acd32">
        <th>Title</th>
        <th>Artist</th>
      </tr>
      &lt;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>

XSLT Reference Manual

XSLT Elements

XSLT Functions

❮ El Call Template Xsl Choose ❯