[xep-support] "Filtered" Select and alternating background-color

Powell, Todd Todd.Powell at hq.doe.gov
Thu May 25 06:57:36 PDT 2006


Isn't this just another form of recursion?  You are "calling" the same
template again from within itself...

- Todd

-----Original Message-----
From: owner-xep-support at renderx.com
[mailto:owner-xep-support at renderx.com] On Behalf Of Volodymyr Mykhailyk
Sent: Thursday, May 25, 2006 9:44 AM
To: xep-support at renderx.com
Subject: Re: [xep-support] "Filtered" Select and alternating
background-color


>> <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
name="background-color">some_color</xsl:attribute>
>>                 </xsl:if>
>>                 [...]
>>              </fo:table-row>
>>              <xsl:apply-templates
select="following-sibling::article[1]" mode="someMode">
>>                 <xsl:with-param name="count" select="$count+1"/>
>>              </xsl:apply-templates>
>>        </xsl:when>
>>        <xsl:otherwise>
>>            <xsl:apply-templates
select="following-sibling::article[1]" mode="someMode">
>>               <xsl:with-param name="count" select="$count"/>
>>            </xsl:apply-templates>
>>        </xsl:otherwise>
>>     </xsl:choose>
>> </xsl:template>


-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo at 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



More information about the Xep-support mailing list