What is the difference between XSL and XSLT? Options

codeling 1247 - 5334
@2016-12-18 11:01:29

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

<!-- Built-in template rules for the mode "#default" -->

   <xsl:template match="* | /">

        <xsl:apply-templates />


   <xsl:template match="text() | @*">

        <xsl:value-of select="." />


   <xsl:template match="processing-instruction() | comment()" />


codeling 1247 - 5334
@2017-09-18 14:13:39

XSLT is developed by the W3C XSLT Working Group (members only) whose charter is to develop the next version of XSLT. XSLT is part of W3C's XML Activity, whose work is described in the XML Activity Statement.

XPath is developed jointly by the XQuery and XSLT Working Groups.

The XSL-FO work at W3C was taken over by the XML Print and Page Layout Working Group which has now been closed.

codeling 1247 - 5334
@2017-09-19 14:13:54

The XslCompiledTransform class is the Microsoft .NET Framework XSLT processor that supports the XSLT 1.0 syntax. This class is used to compile style sheets and execute XSLT transformations.

To use XSLT 2.0/3.0 with .NET, you have to go with third party options, such as the .NET version of Saxon from http://saxon.sourceforge.net/

codeling 1247 - 5334
@2017-09-21 14:19:46

<xsl:template match="@*|node()">
       <xsl:apply-templates select="@*|node()"/>

This is known as the identity rule or "identity template".

The XPath expression @* | node() selects the union of attribute nodes (@*) and all other types of XML nodes (node()).

It is a shorthand for attribute::* | child::node().

Users browsing this topic