|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: adding variables in xsl
You can't modify xsl variables once defined.
You can re-call the template with a new variable. <xsl:template name="test"> <xsl:with-param name="param"> <!-- do something --> <xsl:call-template name="test"> <xsl:param name="param"><xsl:value-of select="$param">plussomething</xsl:param> </xsl:call-template> </xsl:template> Ard Schrijvers wrote: I want to add numbers in a for each loop to a variable in xsl. something like this: $hours = $hours + select="hour" I would want hours to get its own value plus the value of the select. 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
|

Cart








