|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: XSL variable...
> 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:choose>
<xsl:when test="some condition">0</xsl:when>
<xsl:otherwise>1</xsl:otherwise>
</xsl:choose>
</xsl:variable>
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








