<?xml version='1.0' encoding='utf-8'?>
<xsd:schema xmlns:xsd="http://www.w3.org/1999/XMLSchema">

<xsd:element name="Catalog" type="CatalogType"/>

	<xsd:complexType name="CatalogType">
<xsd:element name="product" type="ProductType"/>
<xsd:attribute name="partNum" type="PartType"/>
<xsd:attribute name="onSaleDate" type="xsd:date"/>
</xsd:complexType>

	<xsd:complexType name="ProductType">
<xsd:element name="productName" type="xsd:string"/>

	<xsd:element name="quantity_in_stock">

	<xsd:simpleType base="xsd:positiveInteger">
<xsd:maxExclusive value="500"/>
</xsd:simpleType>
</xsd:element>
<xsd:element name="price" type="xsd:decimal"/>
<xsd:element name="description" type="xsd:string" minOccurs="0"/>
</xsd:complexType>

	<xsd:simpleType name="PartType" base="xsd:string">
<xsd:pattern value="\[A-Z]{3}-[A-Z]{3}d{3}"/>
</xsd:simpleType>
</xsd:schema>