[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] less than zero
I want to check if a value ( $leftmargin ) is less than 0 - check my example please. "$wert" is ok, "$leftmargin" is ok too but the xsl:if does not work.: <xsl:variable name="notesleftmargin"><xsl:value-of select="ancestor::dxl:richtext//dxl:pardef[@id=$pabid]/@leftmargin"/></xsl:v ariable> <xsl:variable name="wert" select="substring-before($notesleftmargin,'in')"/> <xsl:variable name="leftmargin" select="$wert - 1"></xsl:variable> <xsl:if test="number($leftmargin) < 0"><xsl:variable name="leftmargin" select="0"></xsl:variable></xsl:if> <xsl:attribute name="margin-left"><xsl:value-of select="concat($leftmargin,'in')"/></xsl:attribute> but this does not work. why? sascha 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
|