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
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--