[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: Michael Ludwig <mlu@xxxxxxxxxxxxx>
Date: Wed, 21 May 2008 13:23:13 +0200
Re:  One-based indexes in XPath
Andrew Welch schrieb:
2008/5/20 Colin Adams <colinpauladams@xxxxxxxxxxxxxx>:
The ultimate example of zero/one based confusion is in Java when
creating a date - days are 1 based, but months are zero based, so

new GregorianCalendar(2008, 5, 20)

returns the 20th of April.  (to avoid confusion you need to use the
enum Calendar.MAY)

You made your point by falling prey to this confusion: The 20th of April, 2008 would be 2008, 3 (not 5), 20 :-)


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.