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>
Hello,

     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 3.2.3.1 [2]).  However, the Lexical representation described in 
3.3.13.1 [3] doesn't mention that a trailing decimal point is permitted.

     Does 3.3.13.1 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 3.3.13.1 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 
3.3.13.1 is in error.

Thanks,

Henry

[1] http://www.w3.org/TR/2001/REC-xmlschema-2-20010502/#integer
[2] 
http://www.w3.org/TR/2001/REC-xmlschema-2-20010502/#decimal-lexical-representation
[3] 
http://www.w3.org/TR/2001/REC-xmlschema-2-20010502/#integer-lexical-representation
[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
mailto:zongaro@ca.ibm.com
Received on Friday, 26 October 2001 10:16:38 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:12:57 GMT