W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > October to December 2001

Trailing decimal point permitted for integer?

From: <zongaro@ca.ibm.com>
Date: Fri, 26 Oct 2001 10:16:32 -0400
To: www-xml-schema-comments@w3.org
Cc: vdv@dyomedea.com
Message-ID: <OF9618135D.095D408E-ON85256AF1.004CBD35@torolab.ibm.com>

     The following issue with the "XML Schema: Datatypes" recommendation 
was first raised by Eric van der Vlist (vdv@dyomedea.com).  Is the literal "1." part of the lexical space of the integer datatype?

     According to 3.3.13 [1], "integer is ·derived· from decimal by fixing 
the value of ·fractionDigits· to be 0."  But a decimal with fractionDigits 
of 0 can still have a trailing decimal point (at least, that's my reading 
of [2]).  However, the Lexical representation described in [3] doesn't mention that a trailing decimal point is permitted.

     Does implicitly describe an additional pattern facet that is 
also applied to the decimal datatype in deriving the integer datatype, or 
is 3.3.13 intended to be a complete description, while is 
intended to be expository in nature?

     According to 3.3 [4], "the complete definitions of the ·built-in· 
·derived· datatypes are provided in Appendix A."  But the definition for 
integer that appears in the Schema for Datatype Definitions in Appendix A 
[5] does not prohibit a trailing decimal point from appearing on an 
integer value through an additional pattern facet.  So my guess is that is in error.



[1] http://www.w3.org/TR/2001/REC-xmlschema-2-20010502/#integer
[4] http://www.w3.org/TR/2001/REC-xmlschema-2-20010502/#built-in-derived
[5] http://www.w3.org/TR/2001/REC-xmlschema-2-20010502/#schema
Henry Zongaro      XML Parsers development
IBM SWS Toronto Lab   Tie Line 969-6044;  Phone (905) 413-6044
Received on Friday, 26 October 2001 10:16:38 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:08:54 UTC