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: [xsl] Incrementation i=i+1


Subject: Re: [xsl] Incrementation i=i+1
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 1 Feb 2001 09:36:49 GMT



> Is there something in xsl for incrementing
> a number like i = i + 1 ?

You can have <xsl:value-of select="$i + 1"/> but you can't have 
i = i + 1 (unless 0 = 1 and mathematics is inconsistent)


> I need to use that as a function for <a href="link-to-somewhere?para=i>Link</a>

You need to generate output numbers as a function of the input (eg using
position() or count() not as a function of the last number output.
This is a general feature of declarative languages.

David


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



Current Thread
Keywords
xsl
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