[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] increment value

Subject: RE: [xsl] increment value
From: "Govil, Anoop (Contractor)" <Anoop.Govil@xxxxxxxxxxxxxxxx>
Date: Thu, 22 Jan 2004 13:14:40 -0500

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.


-----Original Message-----
From: Strolia-Davis Christopher Contr MSG/MAT
Sent: Thursday, January 22, 2004 12:54 PM
To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx'
Subject: RE: [xsl] 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