RE: [xsl] setting variables in xslt

Subject: RE: [xsl] setting variables in xslt
From: Jarno.Elovirta@xxxxxxxxx
Date: Thu, 21 Nov 2002 10:53:26 +0200
Hi,

> if i have:
> 
> <><><><><><><><><><><><><><><><><><><><><><><><>
>  <xsl:when test="$iTimeZoneOffset= '-1'">
> 
> </xsl:when>
> <><><><><><><><><><><><><><><><><><><><><><><><>
> 
> how can i set $iTimeZoneOffset to another variable say iCurrentOffset

You can't, variables as immutable in XSLT. Instead, you could e.g. set a variable $_iTimeZoneOffset based on the test to either $iTimeZoneOffset or $iCurrentOffset.

Jarno - Blutengel: Seelenschmerz

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


Current Thread