|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: XSL iteration
in case you do want xslt not ie5...
the following is untested but probably works.
On each pass it applies templates with i set to some value between 1 and
10.
David
<xsl:template match="/">
<xsl:call-template name="for">
<xsl:with-param name="from" select="1"/>
<xsl:with-param name="to" select="10"/>
</xsl:call-template>
</xsl:template>
<xsl:template name="for">
<xsl:param name="from" />
<xsl:param name="to" />
<xsl:if test="$from <= $to">
<xsl:apply-templates>
<xsl:with-param name="i" select="$from"/>
</xsl:apply-templates>
<xsl:call-template name="for">
<xsl:with-param name="from" select="$from+1"/>
<xsl:with-param name="to" select="$to"/>
</xsl:call-template>
</xsl:if>
</xsl:template>
and then just define your templates to have a parameter named "i"
which you can test for....
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








