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]

Re: Incrementation i=i+1





> 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


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