[xsl] Creating Sequences

Subject: [xsl] Creating Sequences
From: Jeff Sese <jsese@xxxxxxxxxxxx>
Date: Thu, 20 Jul 2006 19:14:45 +0800
Hi!

I'm trying to do a for-each loop using a sequence which is based on two variable that holds the start and end of the sequence:

<xsl:variable name="min" as="xs:integer" select="1"/>
<xsl:variable name="max" as="xs:integer" select="5"/>

<xsl:for-each  select="$min to $max">
   <xsl:value-of select-"."/>
</xsl:for-each>

but i get a can convert a NaN to an integer error message. whats wrong with my code?

thanks,
-- Jeff

Current Thread