xsl-list
[Top] [All Lists]

Re: [xsl] Confused using a loop...

2007-03-28 08:07:30

op> <xsl:param name="i">1</xsl:param>

me> <xsl:param name="i" select="1"/>

md> Wouldn't that be <xsl:param name="i" select="'1'"/>?

The last of those would make $i a string valued  variable, which is a bit
more effieicent than the result tree fragment of the original, but it
still means the string has to be parsed as a decimal literal when used
in something like
        <xsl:with-param name="i" select="$i + 1"/>

With the form I used $i is directly a number (xslt1) or equivalently a
double in xslt2.

David

--~------------------------------------------------------------------
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>
--~--