home *** CD-ROM | disk | FTP | other *** search
/ Internet Magazine 2002 December / INTERNET97.ISO / pc / software / windows / building / xmlspy / setup44.exe / Data1.cab / F1238_ipo.xsd < prev    next >
Encoding:
Extensible Markup Language  |  2001-07-14  |  1.8 KB  |  51 lines

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