xsl-list
[Top] [All Lists]

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

2009-01-23 10:14:51
--On 23 January 2009 15:07 +0100 Jesper Tverskov wrote:

But this (my) template works:

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

Change it to:

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

Don't forget to add the default mode identity template and whatever other default mode templates you need to adjust the non-h elements.

--
Owen Rees; speaking personally, and not on behalf of HP.
========================================================
Hewlett-Packard Limited.   Registered No: 690597 England
Registered Office:  Cain Road, Bracknell, Berks RG12 1HN


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