This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Incrementation i=i+1
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] Incrementation i=i+1
- From: David Carlisle <davidc at nag dot co dot uk>
- Date: Thu, 1 Feb 2001 09:36:49 GMT
- References: <200102010022020550.03408976@mailhost.rz.uni-karlsruhe.de><200102010752470750.00037FA5@mailhost.rz.uni-karlsruhe.de><200102010808080740.00118DCC@mailhost.rz.uni-karlsruhe.de><200102010813190070.00164A1F@mailhost.rz.uni-karlsruhe.de><200102010821370680.001DE639@mailhost.rz.uni-karlsruhe.de><200102010824010640.002018A9@mailhost.rz.uni-karlsruhe.de> <200102010836570410.002BEF5B@mailhost.rz.uni-karlsruhe.de>
- Reply-To: xsl-list at lists dot mulberrytech dot com
> 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