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

RE: One-based indexes in XPath

Subject: RE: One-based indexes in XPath
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Wed, 21 May 2008 18:02:10 -0400
RE:  One-based indexes in XPath
At 05:13 AM 5/21/2008, Owen wrote:
Dijkstra wrote a note "Why numbering should start at zero":

This is great. Especially the confession that this most "natural" rational argument was spurred in reaction to to an emotional outburst by a person who had supposed that a reasonable, considered decision to number from zero, then applied out of habit (probably in a context outside the proper scope of the numbering system, although we aren't told this), to be "pedantry", and therefore, by implication, to be motivated by something other than reason.

What the argument doesn't consider is that the habit of counting from zero might have been both reasonable and pedantic, since motivations need not be exclusive of one another (much as this might bother reasonable people). The argument is made that zero-based numbering is convenient and reasonable, but it does not demonstrate that the charge of pedantry was unjust.

I agree that XSLT made the right decision, while I admit that it's sometimes awkward.

And I suspect that Justin agrees that if XSLT's designers had designed it so as to avoid any offense to Javascript programmers (or to callow youth of any persuasion), it would probably be even more awkward than it is.


====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================

Current Thread


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.
First Name
Last Name
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.