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