- From: <bugzilla@wiggum.w3.org>
- Date: Thu, 05 Apr 2007 01:57:07 +0000
- To: www-xml-schema-comments@w3.org
- CC:
http://www.w3.org/Bugs/Public/show_bug.cgi?id=4451 Summary: decimal canonical mapping inconsistency Product: XML Schema Version: 1.1 only Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: Datatypes: XSD Part 2 AssignedTo: cmsmcq@w3.org ReportedBy: davep@iit.edu QAContact: www-xml-schema-comments@w3.org In 3.3.3.1 we assert: The ·canonical representation· for decimal is defined by prohibiting certain options from the Lexical Mapping (§3.3.3.1). Specifically, the preceding optional "+" sign is prohibited. The decimal point is required. Leading and trailing zeroes are prohibited subject to the following: there must be at least one digit to the right and to the left of the decimal point which may be a zero. however, the canonical mapping algorithm says: 1. If d is an integer, then return ·noDecimalPtCanonicalMap·(d). So according to the canonical mapping, the canonical representation of 3 is '3', in decimal as well as the derived integer datatype. I suspect the wording in 3.3.3.1 is in error, inherited from 1.0, but I haven't searched the WG minutes to be sure.
Received on Thursday, 5 April 2007 01:57:13 UTC