This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: repeating elements
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Tue, 26 Mar 2002 14:21:56 -0000
- Subject: RE: [xsl] repeating elements
- Reply-to: xsl-list at lists dot mulberrytech dot com
> How can i copy everything between the <cell> tag more than once?
<xsl:template match="cell">
<xsl:copy-of select="*"/>
<xsl:copy-of select="*"/>
</xsl:template>
Michael Kay
Software AG
home: Michael.H.Kay@ntlworld.com
work: Michael.Kay@softwareag.com
>
> <?xml version="1.0"?>
> <row>
> <cell>
> <data atr="1">9</data>
> <namedcell name="A"/>
> <data atr="2">9</data>
> <namedcell name="B"/>
> </cell>
> </row>
>
> Should become:
>
> <?xml version="1.0"?>
> <row>
> <cell>
> <data atr="1">9</data>
> <namedcell name="A"/>
> <data atr="2">9</data>
> <namedcell name="B"/>
> <data atr="1">9</data>
> <namedcell name="A"/>
> <data atr="2">9</data>
> <namedcell name="B"/>
> </cell>
> </row>
>
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list