W3C home > Mailing lists > Public > xmlschema-dev@w3.org > March 2005

normalized enumeration facet values

From: Kasimier Buchcik <kbuchcik@4commerce.de>
Date: Mon, 14 Mar 2005 19:02:49 +0100
Message-ID: <4235D1C9.5050105@4commerce.de>
To: xmlschema-dev@w3.org

Hi,

I stumbled over a difference between XSV 2.7 and Xerces-J 2.6.2, related
to whitespace handling of enumeration facet values. XSV seems not to use
the normalized value of the facet in this case, while Xerces does.

According to [1]: "{value} The actual value of the value [attribute]" my
reading is that the normalized value is used; is this correct?

<?xml version="1.0"?>
<foo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">  hel lo  <foo>

<?xml version="1.0"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema">
   <element name="foo">
     <simpleType>
       <restriction base="token">
         <enumeration value="hel   lo"/>
       </restriction>
     </simpleType>
   </element>
</schema>

XVS: "element content failed type check: hel lo not in enumeration
[hel lo]"

Xerces eats it.

It seems to be a glitch, since XSD does display the normalized
enumeration facet value "hel lo" in the error report. Hmm, plus
I'm not using the latest XSV, so maby a JFYI.

[1] http://www.w3.org/TR/xmlschema-2/#rf-enumeration

Regards,

Kasimier
Received on Monday, 14 March 2005 18:03:23 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:49 GMT