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

RE: Incrementation i=i+1

Subject: RE: Incrementation i=i+1
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Fri, 2 Feb 2001 11:27:38 -0000
xslt incrementation
> Is there something in xsl for incrementing
> a number like i = i + 1 ?
>
> I need to use that as a function for <a
> href="link-to-somewhere?para=i>Link</a>

XSLT doesn't have an assignment statement, if you want to understand why,
read Chapter 8 of my XSLT Programmer's Reference.

You can achieve nearly all numbering requirements using either
<xsl:number/>, count(), or position(). In the rare cases where these aren't
adequate, you can achieve the required effect using a two-stage
transformation, or a recursive template that calls itself with a parameter:

<xsl:with-param name="i" select="$i+1"/>

Mike Kay


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


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.