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

RE: increment value

Subject: RE: increment value
From: "Govil, Anoop (Contractor)" <Anoop.Govil@xxxxxxxxxxxxxxxx>
Date: Thu, 22 Jan 2004 13:14:40 -0500
incrementing values in xslt
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


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.