You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Howard Goldberg <HG...@cstlink.com> on 2000/07/27 21:18:30 UTC

?bug--validation of typed lists

Version xerces 1.1.3

Parser does not seem to correctly validate lists derived from enumerators.  
Expecting a validation error from the document instance against the given
schema.

<xsd:schema xmlns:xsd="http://www.w3.org/1999/XMLSchema">

<xsd:simpleType name="EnumType" base="xsd:string">
	<xsd:enumeration value="v1"/>
	<xsd:enumeration value="v2"/>
	<xsd:enumeration value="v3"/>
</xsd:simpleType>

<xsd:simpleType name="EnumList" base="EnumType" derivedBy="list"/> 

<xsd:element name="IEnum" type="EnumList"/>

</xsd:schema>

D:\>java dom.DOMWriter -v test3.xml
test3.xml:
<?xml version="1.0" encoding="UTF-8"?>
<IEnum xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xsi:noNamespaceSche
maLocation="test3.xsd">

v1 v2 v3 v4
</IEnum>

Regards,
Howard
 <<Howard S Goldberg MD.vcf>>