Altova Mailing List Archives

Re: Add number to a variable

From: Oleg Tkachenko <oleg@--_----_---------------.--->
Date: 9/11/2003 1:04:00 PM
Fred ... V wrote:

> I'm using IE6 too !
> You have the right result of the addition ???
> My field $var_height is consider as a string ...

Probably we are using different source documents as you didn't provide yours. 
Here are my test:

<?xml-stylesheet title="blues" type="text/xsl" href="style.xsl"?>

<xsl:stylesheet version="1.0" xmlns:xsl="">
     <xsl:template match="/">
             <xsl:variable name="var_height">
                 <xsl:value-of select="height"/>
             <xsl:variable name="total_height" select="$var_height + 20"/>
             <xsl:value-of select="$total_height"/>

Oleg Tkachenko
Multiconn Technologies, Israel


These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.