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

Re: variable incrementing in XSLT -- XSLT spec

Subject: Re: variable incrementing in XSLT -- XSLT spec
From: "Dimitre Novatchev" <dnovatchev@xxxxxxxxx>
Date: Fri, 27 Jun 2003 20:45:42 +0200
updatable variable in xsl
"Mukul" <mukulw3@xxxxxxxxx> wrote in message
news:20030627161043.23348.qmail@xxxxxxxxxxxxxxxxxxxxxxxxxx
> Hello ,
>   We all know that XSLT does not allow incrementing a
> variable after declaring it.

More precisely, this is not possible by definition.

> Myself and many of us
> fell that it a major handicap in writing programs
> easily in XSLT. To simulate the variables

Do not try to "simulate" updatable variables in XSLT -- you have to change
your way of thinking.

> we have to
> use recursion and many sophisticated techniques. If
> there is a feature of full scale variables in XSLT, it
> would make programming really easy.

If what you understand by "programming" is not easy in XSLT, then just do
not use XSLT or change your understanding on what "programming" is.

> I am curious why
> this restriction is imposed in XSLT specification.

Read any book on functional programming.




=====
Cheers,

Dimitre Novatchev.
http://fxsl.sourceforge.net/ -- the home of FXSL




 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.