[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Confused using a loop...

Subject: Re: Confused using a loop...
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 28 Mar 2007 16:07:00 +0100
Re:  Confused using a loop...
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.


Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.