[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: RE: Incrementing number in a for loop ??

Subject: RE: RE: Incrementing number in a for loop ??
From: Dipesh Khakhkhar <dkhakhkh@xxxxxxxxxxxxxxx>
Date: Sat, 2 Aug 2003 20:09:29 -0400
incrementing a parameter in xsl
Hi,

yeah i got it done. Two days back ken got my problem and sent a snippet of 
code to do the same.

Well to give certain number of quotes i have to count the number of fields i m 
having in my database. As i was creating a file which i was feeding to a 
control file which was then sent to sql server. This
number varies if i few more fields are added to the database. I was hardcoding 
it instead of writing it programmactially. I had done the same in other 
languages numerous times but not in xsl. So finally problems is solved.

Well i will try to implement the way you had said too.
Thanks,

Regards,
Dipesh
>
>Date: Wed, 30 Jul 2003 21:27:00 -0400
>From: cknell@xxxxxxxxxx
>Subject: 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
>
>


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.