|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: repeating elements
----- 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








