Sablotron - maximum recursion depth

Discussion in 'XML' started by cwig, Dec 10, 2006.

  1. cwig

    cwig Guest

    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?
     
    cwig, Dec 10, 2006
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Simon Burton

    pickle: maximum recursion depth exceeded

    Simon Burton, Nov 3, 2003, in forum: Python
    Replies:
    3
    Views:
    2,764
    Simon Burton
    Nov 4, 2003
  2. Georgy Pruss
    Replies:
    6
    Views:
    819
    Gerrit Holl
    Nov 16, 2003
  3. Sujit Marar

    Maximum recursion depth

    Sujit Marar, Jul 12, 2004, in forum: Python
    Replies:
    2
    Views:
    399
    Jeff Epler
    Jul 14, 2004
  4. globalrev

    maximum recursion depth?

    globalrev, May 28, 2008, in forum: Python
    Replies:
    6
    Views:
    408
    Jochen Schulz
    May 29, 2008
  5. Thomas Allen
    Replies:
    16
    Views:
    800
    Thomas Allen
    Feb 19, 2009
Loading...

Share This Page