[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
You can't modify xsl variables once defined.
You can re-call the template with a new variable.
<!-- 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:
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Re: [xsl] adding variables in xsl
Subject: Re: [xsl] adding variables in xsl From: Ivan Rubin <iayma@xxxxxxxxxxxx> Date: Tue, 12 Mar 2002 10:13:57 -0300 |
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.
Is it also possible to add numbers like 0.25 ( not integers)
Thanks!!!
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] adding variables in xsl, Ard Schrijvers | Thread | RE: [xsl] adding variables in xsl, Michael Kay |
RE: [xsl] What are we doing with XM, Bryan Rasmussen | Date | [xsl] Selective escaping of special, Kyrre Wathne |
Month |
Keywords