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

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

From: <bugzilla@wiggum.w3.org>
Date: Wed, 14 Sep 2005 19:20:37 +0000
To: www-xml-schema-comments@w3.org
Message-Id: <E1EFco9-0001Be-7D@wiggum.w3.org>


           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'/>

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 

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

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