xsl-list
[Top] [All Lists]

RE: setting variables in xslt

2002-11-21 01:53:26
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



<Prev in Thread] Current Thread [Next in Thread>