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
Cc:
Message-Id: <E1EFcJN-00007X-1t@wiggum.w3.org>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:13:09 GMT