This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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) &lt; 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]