RE: [xsl] repeating elements

Subject: RE: [xsl] repeating elements
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Tue, 26 Mar 2002 14:21:56 -0000
> 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@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx 
> 
> <?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


Current Thread