[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Incrementing number in a for loop ??
Variables, once declared, cannot be changed. You could pass the old value to the called template with a parameter and declare a variable inside the template which adds one to the value passed as a parameter when the template is called recursively, but probably there's a better way to achieve the result. We could tell more if you supply a stripped-down example of your source XML and your stylesheet. -- Charles Knell cknell@xxxxxxxxxx - email -----Original Message----- From: Dipesh Khakhkhar <dkhakhkh@xxxxxxxxxxxxxxx> Sent: Wed, 30 Jul 2003 19:56:22 -0400 To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Incrementing number in a for loop ?? Hi, I am creating a text output from xml and at some places i have to give hardcoded special characters. Is is possible to declare a variable having numerical value and incrementing it using expression inside for loop ? If somebody can throw some light on this issue i would be grateful. Regards, Dipesh 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
|