xsl-list
[Top] [All Lists]

Re: variable incrementing in XSLT -- XSLT spec

2003-06-27 10:11:19
Exactly! Michael Kay goes explains this very well in his book, "XSLT
Programmer's Reference". Functional programming is a good thing (even
if you have to adjust the way you develop solutions to problems). The
future of XSLT is harmed greatly if one compromises on this point. Why
not use another language if you MUST alter the value of your variables?

(I also thought Java was complete with java.lang.*, java.io.*, and
java.net.* but then I digress...)

"Jim Fuller" <jim(_dot_)fuller(_at_)stuartlawrence(_dot_)com> writes:

this is not an omitted feature !

remember the original def of the word 'variable' in the context of pure 
number theory, and that combined with no side effects in a fp language is the 
'reason' why we have such behavior.

cheers, jim fuller

-----Original Message-----
From: Mukul [mailto:mukulw3(_at_)yahoo(_dot_)com]
Sent: 27 June 2003 17:11
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] variable incrementing in XSLT -- XSLT spec


Hello ,
  We all know that XSLT does not allow incrementing a
variable after declaring it. Myself and many of us
fell that it a major handicap in writing programs
easily in XSLT. To simulate the variables 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. I am curious why
this restriction is imposed in XSLT specification.

Regards,
Mukul

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


This e-mail and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. If 
you are not the intended recipient please contact the sender immediately. Any 
disclosure, copying, distribution or any other use of this communication is 
strictly prohibitedand may be unlawful. Stuart Lawrence Marketing 
Communications Limited reserves the right to monitor and intercept 
communications for unlawful business purposes.

This also confirms that this message has been swept for viruses, although 
Stuart Lawrence Marketing Communications Limited accepts no responsibility 
for any loss or damage resulting directly or indirectly from the use of this 
email or contents.

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>