Subject: Q - Value of param doesn't change !
From: Ahsan Ali <doubleletter@xxxxxxxxx>
Date: Tue, 31 May 2005 12:59:32 +0400
|
For this code,
<xsl:call-template name="JrnyTm">
<xsl:with-param name="hrs" select="number(format-number(JrnyTm div 60,
'#'))"/>
<xsl:with-param name="mins" select="JrnyTm -
(number(format-number(JrnyTm div 60, '#')) * 60)"/>
</xsl:call-template>
<xsl:template name="JrnyTm" >
<xsl:param name="hrs" />
<xsl:param name="mins" />
<xsl:value-of select="concat($hrs, ' hrs ', $mins, ' mins')"/>
</xsl:template>
The call template code is inside a for-each element. So, ideally, it
should change its JrnyTm value everytime, right ? Well..it looks like
once the xsl:param [hrs] is set to 7, it stays that ! It looks as if
the select expression is not being evaluated for every element..
Any ideas ?
Regards, Ahsan
|