<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
	targetNamespace="Dell.Bing"
	xmlns:prod="Dell.Bing">

	<xsd:element name="product" type="prod:ProductType" />

	<xsd:complexType name="ProductType">
		<xsd:sequence>
			<xsd:element name="number" type="xsd:integer" />
			<xsd:choice id="howBig" maxOccurs="5" minOccurs="2">
				<xsd:element name="size" type="prod:SizeType" />
				<xsd:element name="height" type="xsd:integer" />
			</xsd:choice>

			<xsd:choice id="howBig2" maxOccurs="5" minOccurs="2">
				<xsd:element name="size2" type="prod:SizeType" />
				<xsd:element name="height2" type="xsd:integer" />
			</xsd:choice>
		</xsd:sequence>

		<xsd:attribute name="zipCode">
			<xsd:simpleType>
				<xsd:restriction base="xsd:string">
					<xsd:pattern value="[0-9]{5}(-[0-9]{4})?" />
				</xsd:restriction>
			</xsd:simpleType>
		</xsd:attribute>

		<xsd:attribute name="effDate" type="xsd:date" />
	</xsd:complexType>

	<xsd:simpleType name="SizeType">
		<xsd:restriction base="xsd:integer">
			<xsd:minInclusive value="2" />
			<xsd:maxInclusive value="18" />
		</xsd:restriction>
	</xsd:simpleType>
</xsd:schema>
