<?xml version="1.0" encoding="Shift_JIS" ?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
	<xsd:element name="books">
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element name="book" type="book_type"
					minOccurs="0" maxOccurs="unbounded" />
			</xsd:sequence>
			<xsd:attribute name="name" type="xsd:string" use="required" />
		</xsd:complexType>
	</xsd:element>
	<xsd:complexType name="book_type">
		<xsd:sequence>
			<xsd:element name="title">
				<xsd:simpleType>
					<xsd:restriction base="xsd:string">
						<xsd:maxLength value="30" />
						<xsd:minLength value="5" />
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
			<xsd:element name="author" type="xsd:string" />
			<xsd:element name="published" type="xsd:string" />
			<xsd:element name="price" type="xsd:positiveInteger" />
			<xsd:element name="publishDate" type="xsd:date" />
			<xsd:element name="category" type="xsd:string" />
			<xsd:element name="keywords" type="xsd:string" />
		</xsd:sequence>
		<xsd:attribute name="isbn" type="xsd:string" use="required" />
	</xsd:complexType>
</xsd:schema>
