XML.com: XML From the Inside Out

XML.comWebServices.XML.comO'Reilly Networkoreilly.com
  Articles | Weblogs | Newsletter | Safari Bookshelf
advertisement

Article:
 Grouping With XSLT 2.0
Subject: Last template example is incorrect
Date: 2003-11-09 14:36:03
From: Bob DuCharme
Response to: Last template example is incorrect


I realized that my full example for the last one had this template rule in it, which makes it work as-is:


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


There was also no output="text" at the top.


I try to only show the code that matters in an example, but I was apparently slashing too much here. You can see it work in the zip file of examples as grouping5.xsl. Until the link from the article to the zip file is fixed, you can get a copy at www.snee.com/bob/temp/trxml42code.zip.


Bob


No Previous Message Previous Message Move up to Parent Message Up Next Message No Next Message


Titles Only Titles Only Newest First

Sponsored By:


Contact Us | Our Mission | Privacy Policy | Advertise With Us | | Submissions Guidelines
Copyright © 2008 O'Reilly Media, Inc. | (707) 827-7000 / (800) 998-9938