W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > January to March 2002

potential erratum: totalDigits/fractionDigits

From: <sandygao@ca.ibm.com>
Date: Thu, 24 Jan 2002 15:45:40 -0500
To: www-xml-schema-comments@w3.org, xmlschema-dev@w3.org
Message-ID: <OF4EADE671.2EEDA168-ON85256B4B.0071D4D1@torolab.ibm.com>
Hi. In datatype spec, 4.3.11, there is an example about totalDigits. It
says the example is for numbers less than 1,000,000 with 2 fraction digits.

  <restriction base='decimal'>
    <totalDigits value='8'/>
    <fractionDigits value='2' fixed='true'/>
  </restriction>

But "fixed" means that "factionDigits" can't be assigned to other value in
derived types, not that the value has to have 2 fraction digits. So
10,000,000 is allowed by the above type.

I don't think schema datatype has the ability to construct a type
satisfying the above conditions just using totalDigits and fractionDigits.

What do you think? Is it an erratum?

Thanks,
Sandy Gao
Software Developer, IBM Canada
(1-905) 413-3255
sandygao@ca.ibm.com
Received on Thursday, 24 January 2002 15:45:50 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:15:33 UTC