AW: [xsl] using global variables in templates

Subject: AW: [xsl] using global variables in templates
From: "Felix, Peter" <peter.felix@xxxxxxxxxx>
Date: Thu, 12 Sep 2002 11:21:52 +0200
Hi Tom

I have a flat file with n lines witch have comma separated values.
Now each template call handles a line. I want to use a value from the last
line to compare it with the value from the actual line.

Thanks
Peter

-----Ursprüngliche Nachricht-----
Von: TSchutzerWeissmann@xxxxxxxxxxxxxxxx
[mailto:TSchutzerWeissmann@xxxxxxxxxxxxxxxx]
Gesendet: Donnerstag, 12. September 2002 10:59
An: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Betreff: RE: [xsl] using global variables in templates


Hi Peter
> I want to store a value in a global variable each time a template is
> executed. I need this value when the template is executed the 
> next time. Is
> there a way to do this.

	You're essentially asking if you can reassign variable values
in xslt and the answer to that is no. Variables in xslt are set once
and that's it.

	On the other hand, there's bound to be an xslt way of doing
what you want, perhaps using recursion. What is it you want to do?

TOm

 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