xsl-list
[Top] [All Lists]

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

2009-01-23 09:08:30
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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--