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

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xsd:schema targetNamespace="http://www.xmlspy.com/schemas/Altova/orgchart" xmlns:xsd="http://www.w3.org/2000/10/XMLSchema" xmlns="http://www.xmlspy.com/schemas/Altova/orgchart">
  3.     <xsd:notation name="Altova-Orgchart" public="http://www.xmlspy.com/schemas/Altova/orgchart"/>
  4.     <xsd:complexType name="DivisionType">
  5.         <xsd:sequence>
  6.             <xsd:element name="Name" type="xsd:string"/>
  7.             <xsd:element name="Established" type="xsd:date" minOccurs="0"/>
  8.             <xsd:element name="URL" type="xsd:uriReference" minOccurs="0"/>
  9.             <xsd:element name="Manager" type="xsd:string" minOccurs="0"/>
  10.             <xsd:element name="Desc" type="xsd:string"/>
  11.             <xsd:element ref="Person" maxOccurs="unbounded"/>
  12.         </xsd:sequence>
  13.         <xsd:attribute name="ProfitCenter" use="required">
  14.             <xsd:simpleType>
  15.                 <xsd:restriction base="xsd:NMTOKEN">
  16.                     <xsd:enumeration value="no"/>
  17.                     <xsd:enumeration value="yes"/>
  18.                 </xsd:restriction>
  19.             </xsd:simpleType>
  20.         </xsd:attribute>
  21.     </xsd:complexType>
  22.     <xsd:element name="Altova">
  23.         <xsd:complexType>
  24.             <xsd:sequence>
  25.                 <xsd:element name="Name" type="xsd:string"/>
  26.                 <xsd:element name="Division" type="DivisionType" maxOccurs="unbounded"/>
  27.             </xsd:sequence>
  28.         </xsd:complexType>
  29.     </xsd:element>
  30.     <xsd:element name="Person" type="PersonType"/>
  31.     <xsd:element name="VIP" substitutionGroup="Person">
  32.         <xsd:annotation>
  33.             <xsd:documentation>A very important person working for the company</xsd:documentation>
  34.         </xsd:annotation>
  35.         <xsd:complexType>
  36.             <xsd:complexContent>
  37.                 <xsd:extension base="PersonType">
  38.                     <xsd:sequence>
  39.                         <xsd:element name="Club" type="xsd:string">
  40.                             <xsd:annotation>
  41.                                 <xsd:documentation>Association with a VIP or royal club</xsd:documentation>
  42.                             </xsd:annotation>
  43.                         </xsd:element>
  44.                     </xsd:sequence>
  45.                     <xsd:attribute name="IQ" use="required">
  46.                         <xsd:annotation>
  47.                             <xsd:documentation>IQ of VIPs are requried to be above 120</xsd:documentation>
  48.                         </xsd:annotation>
  49.                         <xsd:simpleType>
  50.                             <xsd:restriction base="xsd:int">
  51.                                 <xsd:minInclusive value="120"/>
  52.                             </xsd:restriction>
  53.                         </xsd:simpleType>
  54.                     </xsd:attribute>
  55.                 </xsd:extension>
  56.             </xsd:complexContent>
  57.         </xsd:complexType>
  58.     </xsd:element>
  59.     <xsd:complexType name="PersonType">
  60.         <xsd:annotation>
  61.             <xsd:documentation>A person working for the company</xsd:documentation>
  62.         </xsd:annotation>
  63.         <xsd:sequence>
  64.             <xsd:element name="ID">
  65.                 <xsd:annotation>
  66.                     <xsd:documentation>Unique identifier for each person</xsd:documentation>
  67.                 </xsd:annotation>
  68.                 <xsd:simpleType>
  69.                     <xsd:restriction base="xsd:ID">
  70.                         <xsd:pattern value="\p{L}{5}\d{2}"/>
  71.                     </xsd:restriction>
  72.                 </xsd:simpleType>
  73.             </xsd:element>
  74.             <xsd:element name="Last" type="xsd:string">
  75.                 <xsd:annotation>
  76.                     <xsd:documentation>Last (family) name of person</xsd:documentation>
  77.                 </xsd:annotation>
  78.             </xsd:element>
  79.             <xsd:element name="First" type="xsd:string">
  80.                 <xsd:annotation>
  81.                     <xsd:documentation>First (given) name of person</xsd:documentation>
  82.                 </xsd:annotation>
  83.             </xsd:element>
  84.             <xsd:element name="Title" type="xsd:string" minOccurs="0">
  85.                 <xsd:annotation>
  86.                     <xsd:documentation>Academic (or other) title</xsd:documentation>
  87.                 </xsd:annotation>
  88.             </xsd:element>
  89.             <xsd:element name="PhoneExt" type="xsd:int">
  90.                 <xsd:annotation>
  91.                     <xsd:documentation>Phone extension for direct dialing</xsd:documentation>
  92.                 </xsd:annotation>
  93.             </xsd:element>
  94.             <xsd:element name="EMail" type="emailType">
  95.                 <xsd:annotation>
  96.                     <xsd:documentation>E-Mail address on the Internet (must be in name@company.net format)</xsd:documentation>
  97.                 </xsd:annotation>
  98.             </xsd:element>
  99.         </xsd:sequence>
  100.         <xsd:attribute name="Mgr" type="xsd:boolean" use="required">
  101.             <xsd:annotation>
  102.                 <xsd:documentation>Is this person employed in a managerial role</xsd:documentation>
  103.             </xsd:annotation>
  104.         </xsd:attribute>
  105.         <xsd:attribute name="Prg" type="xsd:boolean" use="required">
  106.             <xsd:annotation>
  107.                 <xsd:documentation>Is this person capable of programming</xsd:documentation>
  108.             </xsd:annotation>
  109.         </xsd:attribute>
  110.         <xsd:attribute name="Des" type="xsd:boolean" use="optional">
  111.             <xsd:annotation>
  112.                 <xsd:documentation>Does this person have design authority</xsd:documentation>
  113.             </xsd:annotation>
  114.         </xsd:attribute>
  115.     </xsd:complexType>
  116.     <xsd:simpleType name="emailType">
  117.         <xsd:restriction base="xsd:string">
  118.             <xsd:pattern value="[\p{L}_]+(\.[\p{L}_]+)*@[\p{L}_]+(\.[\p{L}_]+)+"/>
  119.         </xsd:restriction>
  120.     </xsd:simpleType>
  121. </xsd:schema>
  122.