This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

running a for loop (eg.1 to 10) using XSL



Hi all,
  I'm trying to run a loop say for Eg. from 1 to 10. in XSL.

I'm using the following syntax, but it is not working.

	<xsl:for-each select="$npages">
		<xsl:value-of select="."/>
	</xsl:for-each>

where
  'npages' is a parameter in which I've stored the maximum number of times
the loop should run.

Can you tell me the correct syntax please?

Thanks.
Rama.


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]