This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: less than zero
i see, thank you!
Sascha
----- Original Message -----
From: "Joerg Heinicke" <joerg.heinicke@gmx.de>
> <xsl:variable name="correct-leftmargin">
> <xsl:choose>
> <xsl:when test="number($leftmargin) < 0">0</xsl:when>
> <xsl:otherwise><xsl:value-of select="$leftmargin"/></xsl:otherwise>
> </xsl:choose>
> </xsl:variable>
>
> Furthermore you can not reassign a value to a variable. Therefore I
changed
> the name of the second one.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list