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">
<xslutput 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">
<xslaram 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?
<?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">
<xslutput 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">
<xslaram 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?