Extension and all-group

Hello!

This question was raised at news:microsoft.public.dotnet.xml newsgroup - 
is the following schema valid? .NET gives errors, while XML Spy and W3C 
validator say okay.

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" 
elementFormDefault="qualified" attributeFormDefault="unqualified">
	<xs:element name="root">
		<xs:complexType>
			<xs:choice>
				<xs:element name="element0" type="derivedType"/>
			</xs:choice>
		</xs:complexType>
	</xs:element>
	<xs:complexType name="baseType">
		<xs:all minOccurs="0">
			<xs:element name="element1" minOccurs="0"/>
			<xs:element name="element2" minOccurs="0"/>
		</xs:all>
	</xs:complexType>
	<xs:complexType name="derivedType">
		<xs:complexContent>
			<xs:extension base="baseType">
				<xs:all>
					<xs:element name="element3"/>
					<xs:element name="element4"/>
				</xs:all>
			</xs:extension>
		</xs:complexContent>
	</xs:complexType>
</xs:schema>

-- 
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel

Received on Thursday, 30 January 2003 19:50:53 UTC