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 2185 - R-192: Revisiting issue about canonical form for duration
Summary: R-192: Revisiting issue about canonical form for duration
Status: ASSIGNED
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: XML Schema WG
QA Contact: XML Schema comments list
URL:
Whiteboard:
Keywords: needsReview
Depends on:
Blocks:
 
Reported: 2005-09-14 18:48 UTC by Sandy Gao
Modified: 2007-03-29 18:48 UTC (History)
0 users

See Also:


Attachments

Description Sandy Gao 2005-09-14 18:48:49 UTC
This mail is in response to the WG's decision on R-173.

John Mercado asked what the canonical lexical representation of duration is; 
the WG decided that there is no need to specify it, since there is only one 
lexical representation per value. This reply seems to contradict the 
recommendation:

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. [section 3.2.6.1] 

Thus, for example, "P1Y" and "P1Y0M" are alternative lexical representations 
for the same value. Furthermore, according to erratum E2-23, leading zeroes are 
permitted in each field, making "P01Y" a third alternative. 

Mercado's question is pertinent. 

See:
http://lists.w3.org/Archives/Public/www-xml-schema-comments/2002OctDec/0131.html
Comment 1 Sandy Gao 2005-09-14 18:49:10 UTC
Discussed and classified at the 2003-11-21 telecon. Ashok to prepare text.

Resolution:
Proposed text:
http://lists.w3.org/Archives/Member/w3c-xml-schema-ig/2003Nov/0053.html 

DaveP's comments:
http://lists.w3.org/Archives/Member/w3c-xml-schema-ig/2003Dec/0011.html