W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > April to June 2004

Re: XML Schema Decimal Types

From: Dave Peterson <davep@iit.edu>
Date: Sun, 18 Apr 2004 19:39:54 -0400
Message-Id: <a05210609bca8c09d1760@[192.168.0.2]>
To: www-xml-schema-comments@w3.org
Cc: David Grant <david@davidjonathangrant.info>

I don't see that anyone ever responded to your question about whitespace
on numeric datatypes.

The whitespace facet applies; it is forced to "collapse" for all non-string
datatypes.  This means that any whitespace fore or aft of the actual
numeral that occurs in the document being validated will be stripped
before the numeral is even checked to see if it is a legitimate lexical
representation for the particular datatype involved.

Let me repeat:  The whitespace is stripped fore and aft *before checking
to see if the lexical representation resulting (the numeral itself) is
acceptable*.

There is no way to have whitespace in the middle of the numeral removed
before checking.  If the resulting lexical representation is '1. 94', it
is not acceptable and will generate a validity error.
-- 
Dave Peterson
SGMLWorks!

davep@iit.edu
Received on Sunday, 18 April 2004 19:40:55 UTC

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