RE: XSL variable...

Subject: RE: XSL variable...
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Thu, 22 Jun 2000 12:00:47 +0100
> in one template I wrote
> 	<xsl:variable name="wasLeft" select="'0'"/>
> In other one
> 	<xsl:variable name="wasLeft" select="'1'"/>
These are two different variables, and any reference to $wasLeft will have
only one of these declarations in scope.

You need to declare a single variable, and set its value conditionally:

<xsl:variable name="wasLeft">
    <xsl:when test="some condition">0</xsl:when>

Mike Kay

 XSL-List info and archive:

Current Thread