- From: Anli Shundi <ashundi@tibco.com>
- Date: Fri, 05 Sep 2003 11:32:37 -0400
- To: tpchan@itsd.gov.hk, xmlschema-dev@w3.org
"12." is a valid decimal as is ".12", too. Errata [1] clarified that "12." is not a valid integer but it does remain a valid decimal. I think the spec should have included such an example, though. [1] http://www.w3.org/2001/05/xmlschema-rec-comments#pfiinteger Anli Shundi TIBCO Software Inc. www.tibco.com > -----Original Message----- > From: xmlschema-dev-request@w3.org > [mailto:xmlschema-dev-request@w3.org]On Behalf Of tpchan@itsd.gov.hk > Sent: Friday, September 05, 2003 4:13 AM > To: xmlschema-dev@w3.org > Subject: Decimal validation of '12.' > > > > Consider the schema definition of the following field > > <xs:simpleType name="N14.2Type" id="CC0010"> > <xs:restriction base="xs:decimal"> > <xs:totalDigits value="13"/> > <xs:fractionDigits value="2"/> > </xs:restriction> > > > For an input of '12.' XML spy v5 consider it not valid But > xerces consider > it is ok, > > From the W3c spec, it is mentioned that: > > If the fractional part is zero, the period and following zero(es) can be > omitted. For example: -1.23, 12678967.543233, +100000.00, 210. > > The question is, does it means both the period and following zeros have to > be omitted together or if just the following zeros is omitted, it is still > ok ? > > Thank you. > > > > >
Received on Friday, 5 September 2003 12:26:42 UTC