Subject: Re: [xsl] repeating elements From: "cutlass" <cutlass@xxxxxxxxxxx> Date: Tue, 26 Mar 2002 13:36:15 -0000 |
----- Original Message ----- From: "Joeri Belis" <joeri.belis@xxxxxxxxxxxx> > 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] repeating elements, Joeri Belis | Thread | RE: [xsl] repeating elements, Michael Kay |
Re: [xsl] select the correct value , Jakub . Valenta | Date | [xsl] problem big files >1Mo, Philippe Pithon |
Month |