[Mono-list] Issues in XmlSchema.XmlSchemaElement

Atsushi Eno atsushi@ximian.com
Wed, 07 Jan 2004 13:34:34 +0900


Hello,

> indicated, only getting other simple type compilation error (I haven't 
> look into that detail).

In JDFTypes.xsd, there are such schema components:

<xs:simpleType name="LabColor">
	<xs:restriction base="jdftyp:NumberList">
		<xs:length value="3" fixed="true"/>
		<xs:whiteSpace value="collapse"/>
	</xs:restriction>
</xs:simpleType>

<xs:simpleType name="NumberList">
	<xs:list itemType="jdftyp:number"/>
</xs:simpleType>

Here LabColor derives NumberList by restriction.
However, XML Schema structures 3.14.6 "Derivation Valid (Restriction, 
Simple)" denotes:

   2 If the {variety} is list, then all of the following must be true:
     2.2 Only length, minLength, maxLength, pattern and enumeration
         facet components are allowed among the {facets}.

So here xs:whitespace facet is invalid.

MS.NET fails to reject this schema, if my speculation is correct.

Atsushi Eno