xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

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


Subject: RE: running a for loop (eg.1 to 10) using XSL
From: "Krishnamurthy, Rama" <RKrishnamurthy@xxxxxxxx>
Date: Wed, 30 Aug 2000 12:40:10 -0400

> you haven't declared $currentnum to be a parameter of your template,
> the first line should be
> <transform:param name="currentnum"/>
> 
	Here it is again.....

	<transform:template name="recur">
		<transform:param name="currentnum">1</transform:param>
		<transform:if test="not($currentnum = 10)">
			<transform:value-of select="$currentnum"/>
			<transform:call-templates name="recur">
				<transform:with-param name="currentnum">
					<transform:value-of
select="$currentnum + 1"/>
				</transform:with-param>
			</transform:call-templates>
		</transform:if>
	</transform:template>

	Still not working.... The value '1' get displayed by the line
	<transform:param name="currentnum">1</transform:param>
	 
	and not by
	<transform:value-of select="$currentnum"/>

	What should I do?


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



Current Thread
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor