xsl-list
[Top] [All Lists]

[xsl] Creating Sequences

2006-07-20 04:15:09
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


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>