[Home] [By Thread] [By Date] [Recent Entries]
Hi Kenny,
Presumably the recursive template that creates the three td elements is inside the template that creates the tr elements. (I don't know how else you'd do it. ;-) If so, each time the "inner" template is called (by an iteration of the "outer" template), you can pass a parameter through to carry the count of the outer iteration. Does that make sense? <xsl:template name="outer">
<xsl:param name="count" select="0"/>
....
<xsl:call-template name="inner">
<xsl:with-param name="outer-count" select="$count"/>
</xsl:call-template>
<xsl:if test="$count < $max-count)">
<xsl:call-template name="outer">
<xsl:with-param name="count" select="$count + 1"/>
</xsl:call-template>
</xsl:if>
</xsl:template>I hope I understood the question.... Cheers, Wendell At 02:50 PM 7/16/2004, you wrote: I have already posted a question on how to generate dynamic attribute values within a recursive template, but I have to admit that I got a bit confused when reading my own posting, so I retry with a simplified version of my problem. ====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
|

Cart



