W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > July to September 2005

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

From: <bugzilla@wiggum.w3.org>
Date: Wed, 14 Sep 2005 18:48:49 +0000
To: www-xml-schema-comments@w3.org
Message-Id: <E1EFcJN-00007X-1t@wiggum.w3.org>


           Summary: R-192: Revisiting issue about canonical form for
           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 

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] 

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. 

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

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:50:04 UTC