This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: A Counter Variable in XSLT?
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] A Counter Variable in XSLT?
- From: Manu KY <manu_kry at yahoo dot com>
- Date: Fri, 05 Oct 2001 19:28:45 +0530
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hi,
You cannot change the values of variables in XSLT .
Manu
>Greetings,
>
>I want to create a "counter variable" - one that I can increment
>within a stylesheet. Something like:
>
> <xsl:variable name="matchNumber" select="'0'"/>
>
> (and later...)
>
> <xsl:value-of select="$matchNumber++"/>
>
>I know $matchNumber++ won't work, but is there anyway to do this
>in XSLT, or do I have to use an extension? (I am currently using
>Xalan)
>
>Thank you,
>
>Grant Mc Auley
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list