Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


normalized enumeration facet values

From: Kasimier Buchcik <kbuchcik@---------.-->
To: xmlschema-dev@--.---
Date: 3/14/2005 8:03:00 PM
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

From Farid.Mahini@L... Mon Mar 14 19:05:20 2005
Received: from lisa.w3.org 


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent