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

2e: example at fractionDigits should have 3 as totalDigits

From: Anli Shundi <ashundi@tibco.com>
Date: Mon, 4 Aug 2003 18:23:31 -0400
To: "W3c Xml-Schema Comments" <www-xml-schema-comments@w3.org>
Cc: "Ashok Malhotra" <ashokma@microsoft.com>, "Dave Peterson" <davep@acm.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.



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

Anli Shundi
TIBCO Software Inc.
Received on Monday, 4 August 2003 18:23:42 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:09:00 UTC