Sablotron - maximum recursion depth

C

cwig

The following code fails:


<?xml version="1.0" encoding="iso-8859-1"?>

<!-- Based on a template found here:
http://www.stylusstudio.com/xsllist/200303/post91230.html -->

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:eek:utput method="html"/>

<xsl:variable name="limit" select="500"/>

<xsl:template match="/">
<html>
<head>
</head>
<body>
<xsl:call-template name="recurse"/>
</body>
</html>
</xsl:template>

<xsl:template name="recurse">
<xsl:param name="iteration" select="$limit"/>
<xsl:if test="$iteration div 10 = floor($iteration div 10)">
<xsl:value-of select="concat($limit + 1 - $iteration,' ')"/>
</xsl:if>
<xsl:if test="$iteration">
<xsl:call-template name="recurse">
<xsl:with-param name="iteration" select="$iteration - 1"/>
</xsl:call-template>
</xsl:if>
</xsl:template>


</xsl:stylesheet>


It is possible to alter the maximum resursion depth?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,045
Latest member
DRCM

Latest Threads

Top