1<?xml version="1.0"?>
2<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://xsdtesting" xmlns:x="http://xsdtesting" elementFormDefault="qualified">
3	<xsd:complexType name="base">
4		<xsd:choice>
5			<xsd:element name="e1" block="#all"/>
6			<xsd:element name="e3" block="substitution extension restriction"/>
7			<xsd:element name="e4" block="#all"/>
8		</xsd:choice>
9	</xsd:complexType>
10	<xsd:complexType name="testing">
11		<xsd:complexContent>
12			<xsd:restriction base="x:base">
13				<xsd:choice>
14					<xsd:element name="e1" block="substitution extension restriction"/>
15					<xsd:element name="e3" block="substitution extension restriction"/>
16					<xsd:element name="e4" block="#all"/>
17				</xsd:choice>
18			</xsd:restriction>
19		</xsd:complexContent>
20	</xsd:complexType>
21	<xsd:element name="doc" type="x:testing"/>
22</xsd:schema>
23