[Home] [By Thread] [By Date] [Recent Entries]
Josh.. Try the following code. This may help you <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html" omit-xml-declaration="yes" indent="yes"/> <xsl:template match="/"> <xsl:call-template name="mood"> <xsl:with-param name="max_count" select="'5'"/> <xsl:with-param name="counter" select="'0'"/> </xsl:call-template> </xsl:template> <xsl:template name="mood"> <xsl:param name="max_count"/> <xsl:param name="counter"/> <xsl:if test="$counter < $max_count"> <div class="moodbar"><img src="layout/global/pics/mood-red.gif" alt="" /></div> <xsl:call-template name="mood"> <xsl:with-param name="counter" select="($counter)+1"/> <xsl:with-param name="max_count" select="$max_count"/> </xsl:call-template> </xsl:if> </xsl:template> </xsl:stylesheet> Cheers Vasu From: Josh Campbell <josh@xxxxxxxxxx> Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx Subject: Looping using XSL Date: Wed, 02 Oct 2002 15:05:29 +1200 _________________________________________________________________ Join the world?s largest e-mail service with MSN Hotmail. http://www.hotmail.com XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|

Cart



