|
Subject: RE: [xsl] How to unflatten the source XML ? From: Jarno.Elovirta@xxxxxxxxx Date: Thu, 6 Nov 2003 08:51:14 +0200 |
Hi,
> Would you please tell me how to group fixed number (say 3) of
> consecutive node together?
<xsl:template match="*[item]">
<xsl:for-each select="item[position() mod 3 = 1]">
<group id="{position()}">
<xsl:copy-of select=". | following-sibling::item[position() < 3]"/>
</group>
</xsl:for-each>
</xsl:template>
Cheers,
Jarno - Project Pitchfork: Carrion
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] How to unflatten the source X, Herman Kwok | Thread | [xsl] problem endless rekursion, Markus Hanel |
| [xsl] How to unflatten the source X, Herman Kwok | Date | [xsl] problem endless rekursion, Markus Hanel |
| Month |