This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: repeating elements


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]