<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">

  <xsd:element name="stockItem" type="stockItemType"/>

  <xsd:complexType name="stockItemType">
    <xsd:sequence>
      <xsd:element name="itemName" type="xsd:string"/>
      <xsd:element name="quantityOnHand">
        <xsd:simpleType>
         <xsd:restriction base="xsd:nonNegativeInteger">
           <xsd:maxExclusive value="100"/>
         </xsd:restriction>
       </xsd:simpleType>
       </xsd:element>
      </xsd:sequence>
      <xsd:attribute name="itemNumber" type="xsd:int" use="required"/>
   </xsd:complexType>

 </xsd:schema>
