[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

increment in xpath

Subject: increment in xpath
From: Dariusz Borowski <d.borowski@xxxxxx>
Date: Fri, 15 Jul 2005 15:43:32 +0200
xpath increment
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 kvnnen Sie eine SMS an alle
Freunde gleichzeitig schicken: http://freemail.web.de/features/?mc=021179

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.