RE: [xsl] Re: Re: Increment/decrement a variable in XSL

Subject: RE: [xsl] Re: Re: Increment/decrement a variable in XSL
From: "Julian Reschke" <julian.reschke@xxxxxx>
Date: Thu, 4 Apr 2002 15:07:30 +0200
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Petr Cimprich
> Sent: Thursday, April 04, 2002 2:41 PM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re: [xsl] Re: Re: Increment/decrement a variable in XSL
> Dimitre Novatchev wrote:
> >While I'm not a fan of EXSL, I feel offended for them -- they never
> >intended to propose extension functions for incrementing an
> >xsl:variable -- or am I wrong Jeny?
> >
> Frankly, I'm not sure about intentions of EXSLTers, but since both WD
> 1.1 and 2.0 introduce an additional type of external object to be used
> with extensions, the idea of mutable variable isn't so surprising to me.
> xsl:variable can either be bound to an external object with one or more
> mutable properties or you don't need xsl:variable at all. Nobody speaks
> of incrementing an xsl:variable.

The fact that you *can* access external stateful objects doesn't change
XSLT's nature. So you can't rely on a specific execution order, so using
this as incremental counter is doomed to fail at some point.

 XSL-List info and archive:

Current Thread