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

Subject: Re: [xsl] xsl:for-each-group and identity transform
From: Jesper Tverskov <jesper.tverskov@xxxxxxxxx>
Date: Fri, 23 Jan 2009 18:01:21 +0100
Thanks Carlisle and Owen

On 1/23/09, Owen Rees <owen.rees@xxxxxx> wrote:
> --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
>
>


-- 
Jesper Tverskov

http://www.xmlkurser.dk
http://www.xmlplease.com

Current Thread