Re: [xsl] XSLT: Taking Value of One Attribute and Smearing it Across multiple times

Subject: Re: [xsl] XSLT: Taking Value of One Attribute and Smearing it Across multiple times
From: Torsten Schaßan <schassan@xxxxxx>
Date: Fri, 04 May 2007 15:51:18 +0200
Hi Rex,

When I run the script as you had provided, I am merely getting an output as:

100100,

you were right, this is correct:


<xsl:when test="$start &lt; $end">
<xsl:value-of select="$value"/>
<xsl:text>, </xsl:text>
<xsl:call-template name="recursion">
<xsl:with-param name="start"><xsl:value-of select="$start + 1"/></xsl:with-param>
<xsl:with-param name="end"><xsl:value-of select="$end"/></xsl:with-param>
<xsl:with-param name="value"><xsl:value-of select="$value"/></xsl:with-param>
</xsl:call-template>
</xsl:when>


(i.e. first output the comma, then call the template.
However for George, I am getting the right output. I am unfamiliar
with the recursive templates and so am trying to understand both of
your responses.
I do not! I get only n-1 times the value. Do I count wrong?

Best, Torsten

Current Thread