dmichael/amazon-mws

View on GitHub
examples/xsd/Product/Beauty.xsd

Summary

Maintainability
Test Coverage
<?xml version="1.0"?>
<!-- Revision="$Revision: #C_1 $" -->
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
    <!--
    $Date: 2012/03/22 $
    AMAZON.COM CONFIDENTIAL.  This document and the information contained in it are
    confidential and proprietary information of Amazon.com and may not be reproduced, 
    distributed or used, in whole or in part, for any purpose other than as necessary 
    to list products for sale on the www.amazon.com web site pursuant to an agreement 
    with Amazon.com.
    -->
    <xsd:include schemaLocation="amzn-base.xsd"/>
    <xsd:element name="Beauty">
        <xsd:complexType>
            <xsd:sequence>
                <xsd:element name="ProductType">
                    <xsd:complexType>
                        <xsd:choice>
                            <xsd:element ref="BeautyMisc"/>
                        </xsd:choice>
                    </xsd:complexType>
                </xsd:element>
                <xsd:element name="BatteryTypeLithiumIon" type="xsd:positiveInteger" minOccurs="0"/>
                <xsd:element name="BatteryTypeLithiumMetal" type="xsd:positiveInteger" minOccurs="0"/>
                <xsd:element name="LithiumBatteryEnergyContent" type="xsd:decimal" minOccurs="0"/>
                <xsd:element name="LithiumBatteryPackaging" minOccurs="0">
                    <xsd:simpleType>
                        <xsd:restriction base="xsd:string">
                            <xsd:enumeration value="batteries_contained_in_equipment"/>
                            <xsd:enumeration value="batteries_only"/>
                            <xsd:enumeration value="batteries_packed_with_equipment"/>
                        </xsd:restriction>
                    </xsd:simpleType>
                </xsd:element>
                <xsd:element name="LithiumBatteryVoltage" type="xsd:decimal" minOccurs="0"/>
                <xsd:element name="LithiumBatteryWeight" type="xsd:decimal" minOccurs="0"/>
                <xsd:element name="NumberOfLithiumIonCells" type="xsd:positiveInteger" minOccurs="0"/>
                <xsd:element name="NumberOfLithiumMetalCells" type="xsd:positiveInteger"
                    minOccurs="0"/>
                <xsd:element name="PlugType" type="HundredString" minOccurs="0"/>
                <xsd:element name="SpecificUsesForProduct" type="StringNotNull" minOccurs="0"  maxOccurs="2"/>
                <xsd:element name="SunProtection" type="SunProtectionDimension" minOccurs="0"/>        
                <xsd:element name="Voltage" type="VoltageDecimalDimension" minOccurs="0"/>
                <xsd:element name="Wattage" type="WattageDimension" minOccurs="0"/>                    
            </xsd:sequence>
        </xsd:complexType>
    </xsd:element>
    <xsd:element name="BeautyMisc">
        <xsd:complexType>
            <xsd:sequence>
                <xsd:element name="VariationData" minOccurs="0">
                    <xsd:complexType>
                        <xsd:sequence>
                            <xsd:element name="Parentage">
                                <xsd:simpleType>
                                    <xsd:restriction base="xsd:string">
                                        <xsd:enumeration value="parent"/>
                                        <xsd:enumeration value="child"/>
                                    </xsd:restriction>
                                </xsd:simpleType>
                            </xsd:element>
                            <xsd:element name="VariationTheme" minOccurs="0">
                                <xsd:simpleType>
                                    <xsd:restriction base="xsd:string">
                                        <xsd:enumeration value="Size"/>
                                        <xsd:enumeration value="Capacity"/>
                                        <xsd:enumeration value="Color"/>
                                        <xsd:enumeration value="Size-Color"/>
                                        <xsd:enumeration value="Scent"/>
                                        <xsd:enumeration value="Size-Scent"/>
                                        <xsd:enumeration value="PatternName"/>
                                        <xsd:enumeration value="Size-UnitCount"/>
                                    </xsd:restriction>
                                </xsd:simpleType>
                            </xsd:element>
                            <xsd:element name="Size" type="StringNotNull" minOccurs="0"/>
                            <xsd:element name="Color" type="StringNotNull" minOccurs="0"/>
                            <xsd:element name="ColorMap" type="StringNotNull" minOccurs="0"/>
                            <xsd:element name="Scent" type="StringNotNull" minOccurs="0"/>
                            <xsd:element name="Capacity" type="VolumeDimension" minOccurs="0"/>
                        </xsd:sequence>
                    </xsd:complexType>
                </xsd:element>
                <xsd:element name="UnitCount" minOccurs="0">
                    <xsd:complexType>
                        <xsd:simpleContent>
                            <xsd:extension base="xsd:positiveInteger">
                                <xsd:attribute name="unitOfMeasure" type="StringNotNull"
                                    use="required"/>
                            </xsd:extension>
                        </xsd:simpleContent>
                    </xsd:complexType>
                </xsd:element>
                <!-- Count represents the number of individually packaged items (a.k.a. 
                            units) included, such that each item is the smallest unit with a 
                            scannable bar code (UPC / EAN), and each item is packaged for 
                            individual sale.  For example, a box of 12 bottles of shampoo, each
                            of which can be sold individually, would have a Count of 12. -->
                <xsd:element name="Count" type="xsd:positiveInteger" minOccurs="0"/>
                <!-- NumberOfItems represents the number of discrete items included, 
                            such that the items are not packaged for individual sale.  For example, 
                            a bag of 100 cotton balls would have a NumberOfItems of 100.  
                            A box of 10 individually packaged bags, each with 100 cotton balls, would 
                            have a Count of 10 and a NumberOfItems of 1000.  -->
                <xsd:element name="NumberOfItems" type="xsd:positiveInteger" minOccurs="0"/>                            
                <xsd:element name="BatteryAverageLife" type="PositiveNonZeroDimension" minOccurs="0"/>
                <xsd:element name="BatteryCellComposition" type="BatteryCellTypeValues" minOccurs="0"/>                                
                <xsd:element name="BatteryAverageLifeStandby" type="PositiveNonZeroDimension"
                    minOccurs="0"/>
                <xsd:element name="BatteryChargeTime" type="PositiveNonZeroDimension" minOccurs="0"/>
                <xsd:element name="BatteryDescription" type="StringNotNull" minOccurs="0"/>
                <xsd:element name="BatteryFormFactor" type="StringNotNull" minOccurs="0"/>    
                <xsd:element name="BatteryPower" type="BatteryPowerIntegerDimension" minOccurs="0"/>                
                <xsd:element name="DisplayLength" type="LengthDimension" minOccurs="0"/>
                <xsd:element name="DisplayWeight" type="WeightDimension" minOccurs="0"/>
                <xsd:element name="DisplayVolume" type="VolumeDimension" minOccurs="0"/>
                <xsd:element name="SkinType" type="String" minOccurs="0" maxOccurs="5"/>
                <xsd:element name="SkinTone" type="StringNotNull" minOccurs="0" maxOccurs="5"/>
                <xsd:element name="HairType" type="String" minOccurs="0" maxOccurs="5"/>
                <xsd:element name="IncludedComponents" type="StringNotNull" minOccurs="0"/>
                <xsd:element name="Ingredients" minOccurs="0">
                    <xsd:simpleType>
                        <xsd:restriction base="xsd:normalizedString">
                            <xsd:maxLength value="1500"/>
                        </xsd:restriction>
                    </xsd:simpleType>
                </xsd:element>
                <xsd:element name="ManufacturerWarrantyType" type="StringNotNull" minOccurs="0"/>
                <xsd:element name="MaterialType" type="LongStringNotNull" minOccurs="0"
                    maxOccurs="3"/>
                <xsd:element name="MfrWarrantyDescriptionLabor" type="SuperLongStringNotNull"
                    minOccurs="0"/>
                <xsd:element name="MfrWarrantyDescriptionParts" type="SuperLongStringNotNull"
                    minOccurs="0"/>
                <xsd:element name="Indications" type="LongStringNotNull" minOccurs="0"/>
                <xsd:element name="Directions" type="LongStringNotNull" minOccurs="0"/>
                <xsd:element name="Warnings" type="LongStringNotNull" minOccurs="0"/>
                <xsd:element name="ItemForm" type="String" minOccurs="0"/>
                <xsd:element name="ItemPackageQuantity" type="PositiveInteger" default="1" minOccurs="0"/>
                <xsd:element name="Flavor" type="StringNotNull" minOccurs="0"/>
                <xsd:element name="Coverage" type="String" minOccurs="0"/>
                <xsd:element name="FinishType" type="String" minOccurs="0" maxOccurs="5"/>
                <xsd:element name="ItemSpecialty" type="String" minOccurs="0" maxOccurs="5"/>
                <xsd:element name="PatternName" type="String" minOccurs="0"/>
                <xsd:element name="PowerSource" type="StringNotNull" minOccurs="0"/>
                <xsd:element name="IsAdultProduct" type="xsd:boolean" minOccurs="0"/>
                <xsd:element name="TargetGender" minOccurs="0">
                    <xsd:simpleType>
                        <xsd:restriction base="StringNotNull">
                            <xsd:enumeration value="male"/>
                            <xsd:enumeration value="female"/>
                            <xsd:enumeration value="unisex"/>
                        </xsd:restriction>
                    </xsd:simpleType>
                </xsd:element>
                <xsd:element name="CountryOfOrigin" minOccurs="0">
                    <xsd:simpleType>
                        <xsd:restriction base="xsd:string">
                            <xsd:length value="2" fixed="true"/>
                        </xsd:restriction>
                    </xsd:simpleType>
                </xsd:element>
                <xsd:element name="SellerWarrantyDescription" type="SuperLongStringNotNull" minOccurs="0"/>
                <xsd:element name="SizeMap" type="StringNotNull" minOccurs="0"/>
                <xsd:element ref="Battery" minOccurs="0"/>
                <xsd:element name="BrandRegionOfOrigin" type="StringNotNull" minOccurs="0"/>
            </xsd:sequence>
        </xsd:complexType>
    </xsd:element>
</xsd:schema>