Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Adding values to a variable Adding values to a variableTo: NULL Date: 12/12/2007 10:15:00 AM Hi I am using XSL Version 2 I am trying to use this code to add a value (say 100) to the variable summation <xsl:variable name="summation">0</xsl:variable> <xsl:template match="csv:csv"> <xsl:element name="csv:csv"> <xsl:for-each select="/csv:csv/csv:line"> <xsl:variable name=" summation " select="$summation + 100"/> <xsl:value-of select="$summation "/> </xsl:for-each> </xsl:element> </xsl:template> The value printed by value-of statement is always 100. I need the variable summation to accumulate the values added to it thanks in advance Mahmoud | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
