Sablotron - maximum recursion depth

cwig

Usenet Archive
Joined
Dec 10, 2006
Messages
1
Reaction score
0
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

No members online now.

Forum statistics

Threads
548,049
Messages
3,104,246
Members
248,133
Latest member
DujonT

Latest Threads

Top