Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Sablotron - maximum recursion depth

Reply
Thread Tools

Sablotron - maximum recursion depth

 
 
cwig
Guest
Posts: n/a
 
      12-10-2006
The following code fails:


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

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

<xsl:stylesheet version="1.0"
xmlnssl="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?

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"Maximum recursion depth exceeded"...why? Thomas Allen Python 16 02-19-2009 07:58 PM
maximum recursion depth? globalrev Python 6 05-29-2008 08:41 PM
Maximum recursion depth Sujit Marar Python 2 07-14-2004 12:51 PM
RuntimeError 'maximum recursion depth exceeded' Georgy Pruss Python 6 11-16-2003 09:28 AM
pickle: maximum recursion depth exceeded Simon Burton Python 3 11-04-2003 01:34 AM



Advertisments