home *** CD-ROM | disk | FTP | other *** search
/ PC User 2001 August / APC_Aug2001_CD2.iso / features / web_dev / files / xmlspy35.exe / Main / ipo.xsd < prev    next >
Encoding:
Extensible Markup Language  |  2001-06-19  |  1.6 KB  |  50 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <schema targetNamespace="http://www.example.com/IPO" xmlns="http://www.w3.org/2000/10/XMLSchema" xmlns:ipo="http://www.example.com/IPO">
  3.     <annotation>
  4.         <documentation>
  5.    International Purchase order schema for Example.com
  6.    Copyright 2000 Example.com. All rights reserved.
  7.   </documentation>
  8.     </annotation>
  9.     <!-- include address constructs -->
  10.     <include schemaLocation="address.xsd"/>
  11.     <element name="purchaseOrder" type="ipo:PurchaseOrderType"/>
  12.     <element name="comment" type="string"/>
  13.     <complexType name="PurchaseOrderType">
  14.         <sequence>
  15.             <element name="shipTo" type="ipo:Address"/>
  16.             <element name="billTo" type="ipo:Address"/>
  17.             <element ref="ipo:comment" minOccurs="0"/>
  18.             <element name="Items" type="ipo:Items"/>
  19.         </sequence>
  20.         <attribute name="orderDate" type="date"/>
  21.     </complexType>
  22.     <complexType name="Items">
  23.         <sequence>
  24.             <element name="item" minOccurs="0" maxOccurs="unbounded">
  25.                 <complexType>
  26.                     <sequence>
  27.                         <element name="productName" type="string"/>
  28.                         <element name="quantity">
  29.                             <simpleType>
  30.                                 <restriction base="positiveInteger">
  31.                                     <maxExclusive value="100"/>
  32.                                 </restriction>
  33.                             </simpleType>
  34.                         </element>
  35.                         <element name="price" type="decimal"/>
  36.                         <element ref="ipo:comment" minOccurs="0"/>
  37.                         <element name="shipDate" type="date" minOccurs="0"/>
  38.                     </sequence>
  39.                     <attribute name="partNum" type="ipo:Sku"/>
  40.                 </complexType>
  41.             </element>
  42.         </sequence>
  43.     </complexType>
  44.     <simpleType name="Sku">
  45.         <restriction base="string">
  46.             <pattern value="\d{3}-[A-Z]{2}"/>
  47.         </restriction>
  48.     </simpleType>
  49. </schema>
  50.