[Bug 2220] R-228: Suggestion for changes in fractionDigits example in part 2

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

           Summary: R-228: Suggestion for changes in fractionDigits example
                    in part 2
           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


The value of totalDigits at the example [1] 

<simpleType name='celsiusBodyTemp'>
  <restriction base='decimal'>
    <totalDigits value='4'/>
    <fractionDigits value='1'/>
    <minInclusive value='36.4'/>
    <maxInclusive value='40.5'/>
  </restriction>
</simpleType>

should probably be 3 -- if at all present. The presence of both minInclusive 
and maxInclusive make totalDigits superfluous. The fractionDigits set to 1 
means that only one digit after the decimal point is allowed. 

Considering the other three facets all valid values have at max 3 digits. 

Also ,the magnitude of a (live) person's body temperature on the Celsius scale 
would probably go up to 42 Celsius... 

[1] http://www.w3.org/TR/2004/PER-xmlschema-2-20040318/#rf-fractionDigits 

See:
http://lists.w3.org/Archives/Public/www-xml-schema-comments/2003JulSep/0033.html

Received on Wednesday, 14 September 2005 19:20:43 UTC