web analytics
What is the difference between XSL and XSLT? Options
codeling
Posted: Sunday, December 18, 2016 11:01:29 AM

Rank:Advanced Member
Groups: Member
Joined: 12/11/2015
Posts: 978
Points: 4113

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

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

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

   </xsl:template>

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

</xsl:stylesheet>

Sponsor
Posted: Sunday, December 18, 2016 11:01:29 AM
codeling
Posted: Monday, September 18, 2017 2:13:39 PM

Rank:Advanced Member
Groups: Member
Joined: 12/11/2015
Posts: 978
Points: 4113

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

Rank:Advanced Member
Groups: Member
Joined: 12/11/2015
Posts: 978
Points: 4113

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

Rank:Advanced Member
Groups: Member
Joined: 12/11/2015
Posts: 978
Points: 4113

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

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
Guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.


© 2018 Digcode.com. All rights reserved.