HOME HTML HTML5 CSS XML JAVASCRIPT ASP PHP SQL REFERENCES | EXAMPLES | FORUM | ABOUT

XSLT BASIC

XSLT HOME
XSL Languages
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 Editors
XSLT Summary

XSLT EXAMPLES

XSLT Examples

XSLT Tutorial

« W3cTutorial Home Next Chapter »

XSLT

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.

Start learning XSLT now!

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>

Try it yourself »

Click on the "Try it Yourself" button to see how it works.

XSLT References

XSLT Elements
Description of all the XSLT elements from the W3C Recommendation, and information about browser support.

XSLT Functions
XSLT includes over 100 built-in functions. There are functions for string values, numeric values, date and time comparison, node and QName manipulation, sequence manipulation, Boolean values, and more.

XML Exam - Get Your Diploma!

W3cTutorial Certification

W3cTutorial' Online Certification

The perfect solution for professionals who need to balance work, family, and career building.

More than 6000 certificates already issued!

Get Your Certificate »

The HTML Certificate documents your knowledge of HTML.

The CSS Certificate documents your knowledge of advanced CSS.

The JavaScript Certificate documents your knowledge of JavaScript and HTML DOM.

The jQuery Certificate documents your knowledge of jQuery.

The XML Certificate documents your knowledge of XML, XML DOM and XSLT.

The ASP Certificate documents your knowledge of ASP, SQL, and ADO.

The PHP Certificate documents your knowledge of PHP and SQL (MySQL).


« W3cTutorial Home Next Chapter »

Examples

» HTML Examples
» CSS Examples
» XML Examples
» JavaScript Examples
» HTML DOM Examples
» XML DOM Examples
» DHTML Examples
» AJAX Examples
» VBScript Examples
» ASP Examples
» ADO Examples
» ASP.NET Examples
» SVG Examples
w3cTutorial.com HOME | FORUM | ABOUT
w3cTutorial is optimized for learning, testing, and training. Examples might be simplified to improve reading and basic understanding.
Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content.
While using this site, you agree to have read and accepted our terms of use and privacy policy.
Copyright 2011 W3CTutorial.COM. All Rights Reserved.