[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Q - Value of param doesn't change !
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
|
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
|