Subject: Re: [xsl] Wrap changing element sequence into container: with 'for-each-group'? From: Yves Forkl <Y.Forkl@xxxxxx> Date: Wed, 31 Jan 2007 17:26:26 +0100 |
<xsl:template match="root"> <xsl:copy> <xsl:apply-templates/> </xsl:copy> </xsl:template>
<xsl:template match="flatsequence"> <hierarchy>
<xsl:for-each-group select="b|c" group-adjacent="1"> <container1> <xsl:copy-of select="current-group()"/> </container1> </xsl:for-each-group>
<xsl:for-each-group select="g|h|i" group-adjacent="1"> <container2> <xsl:copy-of select="current-group()"/> </container2> </xsl:for-each-group>
</hierarchy> </xsl:template>
<xsl:template match="a|d|e|f|g|h|i|j"> <xsl:copy> <xsl:apply-templates/> </xsl:copy> </xsl:template>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Wrap changing element seq, David Carlisle | Thread | Re: [xsl] Wrap changing element seq, David Carlisle |
Re: [xsl] ALWAYS assignment of XSL , Andrew Welch | Date | Re: [xsl] Wrap changing element seq, David Carlisle |
Month |