This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: XSL variable...
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: XSL variable...
- From: Thorbjørn Ravn Andersen <TRA at stibo dot dk>
- Date: Thu, 22 Jun 2000 13:48:53 +0200
- Reply-To: xsl-list at mulberrytech dot com
> 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>
Really? Does this mean that a variable is evaluated every time it is accessed? I thought it was evaluated when it was defined, and then static while in scope.
--
Thorbjørn
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list