<xsl:call-template name="rec"/>
You have not set the $i parameter on this call so you will never execute
the code inside this test <xsl:if test="$i > 0 ">
use
<xsl:call-template name="rec">
<xsl:with-param name="i" select="1001"/>
</xsl:call-template>
David
--
http://www.dcarlisle.demon.co.uk/matthew
________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list