This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 2138 - R-147: Lexical form of duration components
Summary: R-147: Lexical form of duration components
Status: CLOSED FIXED
Alias: None
Product: XML Schema
Classification: Unclassified
Component: Datatypes: XSD Part 2 (show other bugs)
Version: 1.0 only
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: C. M. Sperberg-McQueen
QA Contact: XML Schema comments list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-12 15:23 UTC by Sandy Gao
Modified: 2009-04-21 19:25 UTC (History)
0 users

See Also:


Attachments

Description Sandy Gao 2005-09-12 15:23:52 UTC
3.2.6.1 says "The values of the Year, Month, Day, Hour and Minutes components 
are not restricted but allow an arbitrary integer. Similarly, the value of the 
Seconds component allows an arbitrary decimal."

What exactly is the lexical form of arbitrary integer and arbitrary decimal? 
Does it mean the lexical form of the "decimal" and "integer" datatypes as 
defined in section 3.2.3 and 3.3.13? Apparently not since it says "P-1347M" is 
not allowed even though "-1347" is a perfectly good integer. If not, what does 
it mean?

Specifically, which of the following are allowed?


(a) P+1Y
(b) P-1Y
(c) P-0Y
(d) P.1S
(e) P1.S
ISO 8601 allows only a sequence of digits, but since ISO 8601 is not cited 
normatively a reader cannot rely on that. The provision of fractional sections 
goes beyond what ISO 8601:1988 allows. However, according to my (draft and thus 
perhaps no longer correct) copy, ISO 8601:2000 does not allow any of (d) or (e) 
(even though they are valid instances of the XML Schema decimal data type). 

See:
http://lists.w3.org/Archives/Public/www-xml-schema-comments/2002AprJun/0049.html
Comment 1 Sandy Gao 2005-09-12 15:24:23 UTC
http://lists.w3.org/Archives/Public/www-xml-schema-comments/2002AprJun/0077.html

Resolution:
Discussed at the May 31 telecon. The WG resolved to to classify R-147 as an 
error with erratum, and instruct the editors to draft an erratum along the 
lines specified. 

Proposed text:
http://lists.w3.org/Archives/Member/w3c-xml-schema-ig/2002Jun/0013.html 

Text approved at June 14 telecon:
http://lists.w3.org/Archives/Member/w3c-xml-schema-ig/2002Jul/0009.html 

Erratum E2-23 added.