<?xml version="1.0" encoding="UTF-8"?>
<schema targetNamespace="http://www.eclipse.org/webtools/Catalogue/test"
	xmlns="http://www.w3.org/2001/XMLSchema"
	xmlns:c="http://www.eclipse.org/webtools/Catalogue/test"
	xsi:schemaLocation="http://www.eclipse.org/webtools/Catalogue/test Catalogue.xsd ">
	<group name="test">
		<sequence>
			<element name="test1"></element>
		</sequence>
	</group>
	<complexType name="PublicationType">
		<sequence>
			<element name="title" type="string"></element>
			<element name="author" type="string" minOccurs="0"
				maxOccurs="unbounded">
			</element>
			<element name="date" type="gYear"></element>
		</sequence>
	</complexType>

	<complexType name="BookType">
		<complexContent>
			<extension base="c:PublicationType">
				<sequence>
					<element name="isbn" type="string" />
					<element name="publisher" type="string" />
				</sequence>
			</extension>
		</complexContent>
	</complexType>

	<complexType name="MagazineType">
		<complexContent>
			<restriction base="c:PublicationType">
				<sequence>
					<element name="title" type="string" />
					<element name="author" type="string" minOccurs="0"
						maxOccurs="0" />
					<element name="date" type="gYear"></element>
				</sequence>
			</restriction>
		</complexContent>
	</complexType>

	<element name="Publication" type="c:PublicationType"
		abstract="true">
	</element>

	<element name="Book" type="c:BookType"
		substitutionGroup="c:Publication">
	</element>

	<element name="Magazine" type="c:MagazineType"
		substitutionGroup="c:Publication">
	</element>

	<element name="Catalogue">
		<complexType>
			<sequence>
				<element ref="c:Publication" maxOccurs="unbounded"></element>
			</sequence>
		</complexType>
	</element>

</schema>