This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: repeating elements
- From: "cutlass" <cutlass at secure0 dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Tue, 26 Mar 2002 13:36:15 -0000
- Subject: Re: [xsl] repeating elements
- References: <018201c1d4c9$060f1010$15c809c6@PCJOERI01>
- Reply-to: xsl-list at lists dot mulberrytech dot com
----- Original Message -----
From: "Joeri Belis" <joeri.belis@nollekens.be>
> How can i copy everything between the <cell> tag more than once?
>
> <?xml version="1.0"?>
> <row>
> <cell>
> <data atr="1">9</data>
> <namedcell name="A"/>
> <data atr="2">9</data>
> <namedcell name="B"/>
> </cell>
> </row>
>
u could always use the <xsl:copy-of select="cell"/> tag... multiple times
either with a matching template, named template, or xsl:for-each.....u could
also place what u want repeated in a variable <xsl:variable name="cellstuff"
select="cell"/> and manipulate that.
there are also various discussions about repeat template in the archives of
this list.
cheers, jim fuller
> 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