|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: running a for loop (eg.1 to 10) using XSL
> 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|






