xsl-list
[Top] [All Lists]

increment in xpath

2005-07-15 06:43:32

Hey there!

Is it possible to build an increment in xsl like in Java?

Java example:
=========================
int k = 0;

for(int i = 0; i < 20; i++) {
    System.out.println("k is: "+k);
    k += 3;
}
=========================


I'm looking for something like that in XSL:
=========================
<xsl:varible name="k" select="0" />
<xsl:for-each select="myList">
    Increment: <xsl:value-of select="number($k)+3" />
</xsl:for-each>
=========================

Thanks for help!
Dariusz


_________________________________________________________________________
Mit der Gruppen-SMS von WEB.DE FreeMail können Sie eine SMS an alle 
Freunde gleichzeitig schicken: http://freemail.web.de/features/?mc=021179




--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>