W3C home > Mailing lists > Public > xmlschema-dev@w3.org > January 2002


From: Gregory Khanlarov <gregory@creativescience.com>
Date: Thu, 10 Jan 2002 15:15:47 -0800
Message-ID: <006f01c19a2c$bc670070$410a0a0a@JMachine>
To: <xmlschema-dev@w3.org>
Dear XML Schema gurus,

Can anyone explain me in detail how to deal with whitespace facet.

Let's consider 'hexBinary' type.
For 'hexBinary' type the spec says the following:

<simpleType name="binary" id="hexBinary">
  <restriction base="anySimpleType">
    <whiteSpace value="collapse"/>

Suppose, I have the following two XML fragments (the schema for element 'data' defines that it is of type 'hexBinary').

Example 1:

Example 2:

The first XML snippet is definitely valid. How about the second one ?
The definition of the 'hexBinary' type states that the whitespace value is collapse. Does it mean that the second XML snippet is invalid (since it has CR characters) or the XML validator must perform value normalization ('collapse') of the 'data' element before validation ?

Received on Thursday, 10 January 2002 18:12:22 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:54 UTC