What is the difference between XSL and XSLT? Options

codeling Posts: 1103 Points: 4638
Posted: Sunday, December 18, 2016 11:01:29 AM

<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 Posts: 1103 Points: 4638
Posted: Monday, September 18, 2017 2:13:39 PM

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 Posts: 1103 Points: 4638
Posted: Tuesday, September 19, 2017 2:13:54 PM

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 Posts: 1103 Points: 4638
Posted: Thursday, September 21, 2017 2:19:46 PM

<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