[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: xsl:for-each-group and identity transform

Subject: Re: xsl:for-each-group and identity transform
From: Jesper Tverskov <jesper.tverskov@xxxxxxxxx>
Date: Fri, 23 Jan 2009 15:07:45 +0100
Re:  xsl:for-each-group and identity transform
I'm now using:

<h>
<xsl:copy-of select="./node()"/>
</h>

instead of:

<h>
<xsl:copy-of select="descendant::node()"/>
</h>

But this (my) template works:

<xsl:template match="element()|comment()|processing-instruction()" mode="group">
<xsl:copy-of select="current-group()"/>
</xsl:template>

Your proposal:

<xsl:template match="node()" mode="group">
<xsl:copy>
<xsl:copy-of select="@* except @the-attributes-you dont-want"/>
<xsl:apply-templates mode="group"/>
</xsl:copy>
</xsl:template>

I guess is never going to work, we need "current-group()". I simply
can't see how we can get the modified identity template into play.

Cheers,
Jesper

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.