Discussion Locked

reassigning and passing a variable as parameter in xsl

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I've the following structure of xml file

i'm accessing all the flight segments using the for-each loop but i need to maintain the arrival date of the previous flightsegment.I 'm trying the following code

it works fine for the first attempt but keep on retaining the value of the variable.
if someone can help me on this..plz
thanku

1 reply

by kcollins

I know it seems crazy, but once you have assigned a value to a variable in XSLT, you cannot reassign it to a new value! Maybe they should have called it instead.

My suggestion would be to get rid of the variable and just use the statement in every place that you need that value.

This discussion is closed to new replies.