<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
No, it just look like recursion.<br>
>From point of view of C, Java, or any other functional language it is
recursion. But XSLT is procedure language.<br>
In XSLT your always call one template from another. And since my
experience such logic never cause stack overflow :), even on 1000 page
or grater document.<br>
--BS<br>
Powell, Todd wrote:
<blockquote
 cite="mid12540AEF7AE4114AA1AE4D1F5DF432760D023B@HQGTNEX1.doe.local"
 type="cite">
  <pre wrap="">Isn't this just another form of recursion?  You are "calling" the same
template again from within itself...

- Todd

-----Original Message-----
From: <a class="moz-txt-link-abbreviated" href="mailto:owner-xep-support@renderx.com">owner-xep-support@renderx.com</a>
[<a class="moz-txt-link-freetext" href="mailto:owner-xep-support@renderx.com">mailto:owner-xep-support@renderx.com</a>] On Behalf Of Volodymyr Mykhailyk
Sent: Thursday, May 25, 2006 9:44 AM
To: <a class="moz-txt-link-abbreviated" href="mailto:xep-support@renderx.com">xep-support@renderx.com</a>
Subject: Re: [xep-support] "Filtered" Select and alternating
background-color


  </pre>
  <blockquote type="cite">
    <blockquote type="cite">
      <pre wrap="">&lt;fo:table-body&gt;
    &lt;xsl:apply-templates select="article[1]" mode="someMode"&gt;
        &lt;xsl:with-param name="count" select="1"/&gt;
    &lt;/xsl:apply-templates&gt;
&lt;fo:table-body/&gt;

&lt;xsl:template match="article" mode="someMode"&gt;
    &lt;xsl:param name="count"/&gt;
    &lt;xsl:choose&gt;
       &lt;xsl:when test="all_condition_that_you_have"&gt;
            &lt;fo:table-row page-break-inside="avoid"&gt; 
                &lt;xsl:if test="($count mod 2) = 0"&gt;
                   &lt;xsl:attribute
      </pre>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->name="background-color"&gt;some_color&lt;/xsl:attribute&gt;
  </pre>
  <blockquote type="cite">
    <blockquote type="cite">
      <pre wrap="">                &lt;/xsl:if&gt;
                [...]
             &lt;/fo:table-row&gt;
             &lt;xsl:apply-templates
      </pre>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->select="following-sibling::article[1]" mode="someMode"&gt;
  </pre>
  <blockquote type="cite">
    <blockquote type="cite">
      <pre wrap="">                &lt;xsl:with-param name="count" select="$count+1"/&gt;
             &lt;/xsl:apply-templates&gt;
       &lt;/xsl:when&gt;
       &lt;xsl:otherwise&gt;
           &lt;xsl:apply-templates
      </pre>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->select="following-sibling::article[1]" mode="someMode"&gt;
  </pre>
  <blockquote type="cite">
    <blockquote type="cite">
      <pre wrap="">              &lt;xsl:with-param name="count" select="$count"/&gt;
           &lt;/xsl:apply-templates&gt;
       &lt;/xsl:otherwise&gt;
    &lt;/xsl:choose&gt;
&lt;/xsl:template&gt;
      </pre>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->

-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to <a class="moz-txt-link-abbreviated" href="mailto:majordomo@renderx.com">majordomo@renderx.com</a> from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service <a class="moz-txt-link-freetext" href="http://www.renderx.com/terms-of-service.html">http://www.renderx.com/terms-of-service.html</a>

  </pre>
</blockquote>
<br>
</body>
</html>
-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html