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

Re: Re: Increment/decrement a variable in XSL

Subject: Re: Re: Increment/decrement a variable in XSL
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Thu, 4 Apr 2002 02:54:12 -0800 (PST)
increment variable in xslt
As Jeny, I also thought that no one on this list would seriously
propose implementing a mutable variable via an extension function.

I think that in case one goes for this, they really do not need XSLT at
all.

Cheers,
Dimitre Novatchev.

Petr Cimprich <petr at gingerall dot cz> wrote:

Hi Jeny,

Jeni Tennison wrote:

>
>(I hope you weren't suggesting using something like saxon:assign or
>writing an extension function that updated a variable... ;)
>

I would use an external variable and a set of functions (increase, 
decrease, getValue) defined using the script element from the 
http://www.exslt.org/functions namespace.

I think when you want to increment/decrement a variable, you may be 
justified to escape to a procedural language and to increment/decrement

a variable simply. XSLT is not designed for this task and all other
ways 
are more or less workarounds, IMHO.

I see this is not a "pure XSLT" solution but I think it's appropriate 
for this non-XSLT task.




__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/

 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.