W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > January to March 2001

Lexical value of "duration" type.

From: Kohsuke KAWAGUCHI <kohsuke.kawaguchi@eng.sun.com>
Date: Mon, 19 Mar 2001 16:53:49 -0800
To: www-xml-schema-comments@w3.org
Message-Id: <20010319164831.6A67.KOHSUKE.KAWAGUCHI@eng.sun.com>

Dear XML Schema WG members,

I sent the original post in January, but I think the wording of PR is
still confusing.

In section of part 2,

The first bullet says
> The lowest order items may be omitted. If omitted their value is
> assumed to be zero. 

It seems to me that this statement implies that only the lowest order
items can be omitted.

However, the third bullet says the opposite:

> If the number of years, months, days, hours, minutes, or seconds in any
> expression equals zero, the number and its corresponding designator may
> be omitted. However, at least one number and its designator must be
> present

This statement can be interpreted that any items can be omitted as long
as at least one is present.
If the third is true, why do we need the first bullet?

And the second bullet is also confusing. In the second paragraph of
section, the spec says

> the value of the Seconds component allows an arbitrary decimal

Of course, this should implies that the other items cannot have decimal
fractions. However, the second bullet says

> The lowest order item may have a decimal fraction.

What does it mean by "the lowest order item"?  I guess it's the right
most number that is present, but if so, these two statements are inconsistent.

And if "the lowest order item" just means the seconds component, this
bullet should be removed.

E-Mail: k-kawa@bigfoot.com
Received on Monday, 19 March 2001 19:53:47 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:49:54 UTC