SITE SEARCH

SITE LINKS

    • XSLT Basic
  • XSLT HOME
  • XSL Language
  • XSLT Introduction
  • XSLT Browsers
  • XSLT Transform
  • XSLT <template>
  • XSLT <value-of>
  • XSLT <for-each>
  • XSLT <sort>
  • XSLT <if>
  • XSLT <choose>
  • XSLT Apply

  • XSLT Advanced
  • XSLT on the client
  • XSLT on the server
  • XSLT Edit XML
  • XSLT Editor
  • XSLT Summary

Home Html Css Javascript Php Asp .Net Sql Xml
user login New user? Register Here | Forgot Password?

XSLT Tutorial

Prev
Next

XSL stands for EXtensible Stylesheet Language, and 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 formats, like XHTML.

 

Online XSLT Editor

With our online editor, you can edit the XML and the XSL source code, and click on a button to view the result.

XSLT Example

<?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>

Prev
Next
Top
© 2010 Copyrighted. Yavum.com™