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

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- edited with XML Spy v4.0.1 U (http://www.xmlspy.com) by Vladislav Gavrielov (Altova) -->
  3. <xsd:schema targetNamespace="http://www.xmlspy.com/schemas/orgchart" xmlns:ipo="http://www.altova.com/IPO" xmlns="http://www.xmlspy.com/schemas/orgchart" xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
  4.     <xsd:import namespace="http://www.altova.com/IPO" schemaLocation="address.xsd"/>
  5.     <xsd:notation name="Altova-Orgchart" public="http://www.xmlspy.com/schemas/Altova/orgchart"/>
  6.     <xsd:complexType name="DivisionType">
  7.         <xsd:sequence>
  8.             <xsd:element ref="Name"/>
  9.             <xsd:element ref="Person" maxOccurs="unbounded"/>
  10.         </xsd:sequence>
  11.     </xsd:complexType>
  12.     <xsd:element name="OrgChart">
  13.         <xsd:complexType>
  14.             <xsd:sequence>
  15.                 <xsd:element name="CompanyLogo">
  16.                     <xsd:complexType>
  17.                         <xsd:attribute name="href" type="xsd:anyURI"/>
  18.                     </xsd:complexType>
  19.                 </xsd:element>
  20.                 <xsd:element ref="Name"/>
  21.                 <xsd:element name="Office" type="OfficeType" maxOccurs="unbounded"/>
  22.             </xsd:sequence>
  23.         </xsd:complexType>
  24.     </xsd:element>
  25.     <xsd:element name="Person" type="PersonType"/>
  26.     <xsd:complexType name="PersonType">
  27.         <xsd:annotation>
  28.             <xsd:documentation>A person working for the company</xsd:documentation>
  29.         </xsd:annotation>
  30.         <xsd:sequence>
  31.             <xsd:element name="First" type="xsd:string">
  32.                 <xsd:annotation>
  33.                     <xsd:documentation>First (given) name of person</xsd:documentation>
  34.                 </xsd:annotation>
  35.             </xsd:element>
  36.             <xsd:element name="Last" type="xsd:string">
  37.                 <xsd:annotation>
  38.                     <xsd:documentation>Last (family) name of person</xsd:documentation>
  39.                 </xsd:annotation>
  40.             </xsd:element>
  41.             <xsd:element name="Title" type="xsd:string" minOccurs="0">
  42.                 <xsd:annotation>
  43.                     <xsd:documentation>Academic (or other) title</xsd:documentation>
  44.                 </xsd:annotation>
  45.             </xsd:element>
  46.             <xsd:element name="PhoneExt" type="xsd:int">
  47.                 <xsd:annotation>
  48.                     <xsd:documentation>Phone extension for direct dialing</xsd:documentation>
  49.                 </xsd:annotation>
  50.             </xsd:element>
  51.             <xsd:element ref="EMail"/>
  52.         </xsd:sequence>
  53.     </xsd:complexType>
  54.     <xsd:simpleType name="emailType">
  55.         <xsd:restriction base="xsd:string">
  56.             <xsd:pattern value="[\p{L}_-]+(\.[\p{L}_-]+)*@[\p{L}_]+(\.[\p{L}_]+)+"/>
  57.         </xsd:restriction>
  58.     </xsd:simpleType>
  59.     <xsd:element name="Department" type="DivisionType"/>
  60.     <xsd:element name="Name" type="xsd:string"/>
  61.     <xsd:complexType name="OfficeType">
  62.         <xsd:sequence>
  63.             <xsd:element ref="Name"/>
  64.             <xsd:element name="Established" type="xsd:date" minOccurs="0"/>
  65.             <xsd:element ref="Desc"/>
  66.             <xsd:element name="Address" type="ipo:US-Address"/>
  67.             <xsd:element name="Phone" type="xsd:string"/>
  68.             <xsd:element name="Fax" type="xsd:string"/>
  69.             <xsd:element ref="EMail"/>
  70.             <xsd:element name="WebStore" type="xsd:boolean"/>
  71.             <xsd:element name="CustomerSupport" type="xsd:boolean"/>
  72.             <xsd:element ref="Department" maxOccurs="unbounded"/>
  73.         </xsd:sequence>
  74.     </xsd:complexType>
  75.     <xsd:element name="EMail" type="emailType">
  76.         <xsd:annotation>
  77.             <xsd:documentation>E-Mail address on the Internet (must be in name@company.net format)</xsd:documentation>
  78.         </xsd:annotation>
  79.     </xsd:element>
  80.     <xsd:element name="Desc">
  81.         <xsd:complexType>
  82.             <xsd:sequence>
  83.                 <xsd:element ref="para" maxOccurs="unbounded"/>
  84.             </xsd:sequence>
  85.         </xsd:complexType>
  86.     </xsd:element>
  87.     <xsd:element name="strong" type="TextType"/>
  88.     <xsd:element name="italic" type="TextType"/>
  89.     <xsd:complexType name="TextType" mixed="true">
  90.         <xsd:choice minOccurs="0" maxOccurs="unbounded">
  91.             <xsd:element ref="strong"/>
  92.             <xsd:element ref="italic"/>
  93.         </xsd:choice>
  94.     </xsd:complexType>
  95.     <xsd:element name="para" type="TextType"/>
  96. </xsd:schema>
  97.