|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: increment value
Hello Chris, I have similar problem and have tried to implement recursive template but when I used call-template, I am always at the root node. How do you traverse the node. I wished there was a next() function just like there is last(). How do you go to next node with each recursive call to the template? Do you have a generic example of a recursive template? That will be helpful to me and the original author of this post. Thanks. Anoop -----Original Message----- From: Strolia-Davis Christopher Contr MSG/MAT [mailto:Christopher.Strolia-Davis@xxxxxxxxxxxx] Sent: Thursday, January 22, 2004 12:54 PM To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx' Subject: RE: increment value > > How do I increment a variable to add to the string? > Technically, this is not possible in XSL, as variables cannot be changed once assigned. However, you may be able to find an alternate method to get these values using something like position() or (and I don't have a ready made example for this, so bear with me) the one way I have found for doing anything similar with variables is to use recursive template calls. I'm not sure,at the moment, how I would apply this to your situation, however. Chris Strolia-Davis Database Specialist Contractor - CDO Technologies Inc. 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








