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: A Counter Variable in XSLT?


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


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