Re: XML Schema Decimal Types

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