[Bug 2185] R-192: Revisiting issue about canonical form for duration

http://www.w3.org/Bugs/Public/show_bug.cgi?id=2185

           Summary: R-192: Revisiting issue about canonical form for
                    duration
           Product: XML Schema
           Version: 1.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSD Part 2: Datatypes
        AssignedTo: cmsmcq@w3.org
        ReportedBy: sandygao@ca.ibm.com
         QAContact: www-xml-schema-comments@w3.org


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

Received on Wednesday, 14 September 2005 18:49:05 UTC