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

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <schema targetNamespace="http://www.example.com/IPO" xmlns:ipo="http://www.example.com/IPO" xmlns="http://www.w3.org/2000/10/XMLSchema">
  3.     <annotation>
  4.         <documentation>
  5.    Addresses for International Purchase order schema
  6.    Copyright 2000 Example.com. All rights reserved.
  7.   </documentation>
  8.     </annotation>
  9.     <complexType name="Address">
  10.         <sequence>
  11.             <element name="name" type="string"/>
  12.             <element name="street" type="string"/>
  13.             <element name="city" type="string"/>
  14.         </sequence>
  15.     </complexType>
  16.     <complexType name="US-Address">
  17.         <complexContent>
  18.             <extension base="ipo:Address">
  19.                 <sequence>
  20.                     <element name="state" type="ipo:US-State"/>
  21.                     <element name="zip" type="positiveInteger"/>
  22.                 </sequence>
  23.             </extension>
  24.         </complexContent>
  25.     </complexType>
  26.     <complexType name="UK-Address">
  27.         <complexContent>
  28.             <extension base="ipo:Address">
  29.                 <sequence>
  30.                     <element name="postcode" type="ipo:UK-Postcode"/>
  31.                 </sequence>
  32.                 <attribute name="export-code" type="positiveInteger" use="fixed" value="1"/>
  33.             </extension>
  34.         </complexContent>
  35.     </complexType>
  36.     <!-- other Address derivations for more countries -->
  37.     <simpleType name="US-State">
  38.         <restriction base="string">
  39.             <enumeration value="AK"/>
  40.             <enumeration value="AL"/>
  41.             <enumeration value="AR"/>
  42.         </restriction>
  43.         <!-- and so on ... -->
  44.     </simpleType>
  45.     <simpleType name="UK-Postcode">
  46.         <restriction base="string">
  47.             <enumeration value="126"/>
  48.             <enumeration value="125"/>
  49.             <enumeration value="124"/>
  50.         </restriction>
  51.         <!-- and so on ... -->
  52.     </simpleType>
  53.     <!-- simple type definition for UK-Postcode -->
  54. </schema>
  55.