home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 October / PCWorld_2000-10_cd1.bin / Software / TemaCD / xmlspy / xmlspy30c.exe / Main / icon.xsd < prev    next >
Encoding:
Extensible Markup Language  |  2000-09-11  |  4.7 KB  |  111 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- edited with XML Spy v3.0.2 NT (http://www.xmlspy.com) by Bill Winkler (Icon) -->
  3. <!--W3C Schema generated by XML Spy v3.0 NT (http://www.xmlspy.com)-->
  4. <!DOCTYPE xsd:schema PUBLIC "-//W3C//DTD XMLSCHEMA 19991216//EN" "" [
  5.     <!ENTITY % p 'xsd:'>
  6.     <!ENTITY % s ':xsd'>
  7. ]>
  8. <xsd:schema xmlns:xsd="http://www.w3.org/1999/XMLSchema" xmlns="http://www.xmlspy.com/schemas/icon/orgchart" targetNamespace="http://www.xmlspy.com/schemas/icon/orgchart">
  9.     <xsd:notation name="Icon-Orgchart" public="http://www.xmlspy.com/schemas/icon/orgchart"/>
  10.     <xsd:complexType name="DivisionType" content="elementOnly">
  11.         <xsd:sequence>
  12.             <xsd:element name="Name" type="xsd:string"/>
  13.             <xsd:element name="Established" type="xsd:year" minOccurs="0" maxOccurs="1"/>
  14.             <xsd:element name="URL" type="xsd:uriReference" minOccurs="0" maxOccurs="1"/>
  15.             <xsd:element name="Manager" type="xsd:string" minOccurs="0" maxOccurs="1"/>
  16.             <xsd:element name="Desc" type="xsd:string"/>
  17.             <xsd:element name="Person" type="PersonType" minOccurs="0" maxOccurs="unbounded"/>
  18.         </xsd:sequence>
  19.         <xsd:attribute name="ProfitCenter" use="required">
  20.             <xsd:simpleType base="xsd:NMTOKEN">
  21.                 <xsd:enumeration value="no"/>
  22.                 <xsd:enumeration value="yes"/>
  23.             </xsd:simpleType>
  24.         </xsd:attribute>
  25.     </xsd:complexType>
  26.     <xsd:element name="Icon">
  27.         <xsd:complexType content="elementOnly">
  28.             <xsd:sequence>
  29.                 <xsd:element name="Division" type="DivisionType" minOccurs="1" maxOccurs="unbounded"/>
  30.             </xsd:sequence>
  31.             <xsd:attribute name="xmlns" type="xsd:uriReference" use="fixed" value="http://www.xmlspy.com/schemas/icon/orgchart"/>
  32.             <xsd:attribute name="xmlns:xsi" type="xsd:uriReference" use="fixed" value="http://www.w3.org/1999/XMLSchema-instance"/>
  33.             <xsd:attribute name="xsi:schemaLocation" type="xsd:string" use="default" value="http://www.xmlspy.com/schemas/icon/orgchart
  34. C:\xml\test\schema\icon2.xsd"/>
  35.         </xsd:complexType>
  36.     </xsd:element>
  37.     <xsd:complexType name="PersonType" content="elementOnly">
  38.         <xsd:annotation>
  39.             <xsd:documentation>A person working for the company</xsd:documentation>
  40.         </xsd:annotation>
  41.         <xsd:sequence>
  42.             <xsd:element name="ID">
  43.                 <xsd:annotation>
  44.                     <xsd:documentation>Unique identifier for each person</xsd:documentation>
  45.                 </xsd:annotation>
  46.                 <xsd:simpleType base="xsd:ID">
  47.                     <xsd:pattern value="\p{L}{5}\d{2}"/>
  48.                 </xsd:simpleType>
  49.             </xsd:element>
  50.             <xsd:element name="LastName">
  51.                 <xsd:annotation>
  52.                     <xsd:documentation>Last (family) name of person</xsd:documentation>
  53.                 </xsd:annotation>
  54.                 <xsd:simpleType base="xsd:string">
  55.                     <xsd:minLength value="1"/>
  56.                     <xsd:maxLength value="20"/>
  57.                 </xsd:simpleType>
  58.             </xsd:element>
  59.             <xsd:element name="FirstName" type="xsd:string">
  60.                 <xsd:annotation>
  61.                     <xsd:documentation>First (given) name of person</xsd:documentation>
  62.                 </xsd:annotation>
  63.             </xsd:element>
  64.             <xsd:element name="Title" minOccurs="0" maxOccurs="1">
  65.                 <xsd:annotation>
  66.                     <xsd:documentation>Academic (or other) title</xsd:documentation>
  67.                 </xsd:annotation>
  68.                 <xsd:simpleType base="xsd:string">
  69.                     <xsd:maxLength value="10"/>
  70.                     <xsd:enumeration value="Dr."/>
  71.                     <xsd:enumeration value="Ing."/>
  72.                     <xsd:enumeration value="Dipl.-Ing."/>
  73.                     <xsd:enumeration value="Prof."/>
  74.                 </xsd:simpleType>
  75.             </xsd:element>
  76.             <xsd:element name="PhoneExt" default="0">
  77.                 <xsd:annotation>
  78.                     <xsd:documentation>Phone extension for direct dialing</xsd:documentation>
  79.                 </xsd:annotation>
  80.                 <xsd:simpleType base="xsd:integer">
  81.                     <xsd:minInclusive value="0"/>
  82.                     <xsd:maxInclusive value="99"/>
  83.                 </xsd:simpleType>
  84.             </xsd:element>
  85.             <xsd:element name="EMail" type="emailType" default="office@icon.at">
  86.                 <xsd:annotation>
  87.                     <xsd:documentation>E-Mail address on the Internet (must be in name@company.net format)</xsd:documentation>
  88.                 </xsd:annotation>
  89.             </xsd:element>
  90.         </xsd:sequence>
  91.         <xsd:attribute name="Mgr" type="xsd:boolean" use="required">
  92.             <xsd:annotation>
  93.                 <xsd:documentation>Is this person employed in a managerial role</xsd:documentation>
  94.             </xsd:annotation>
  95.         </xsd:attribute>
  96.         <xsd:attribute name="Prg" type="xsd:boolean" use="required">
  97.             <xsd:annotation>
  98.                 <xsd:documentation>Is this person capable of programming</xsd:documentation>
  99.             </xsd:annotation>
  100.         </xsd:attribute>
  101.         <xsd:attribute name="Des" type="xsd:boolean" use="optional">
  102.             <xsd:annotation>
  103.                 <xsd:documentation>Does this person have design authority</xsd:documentation>
  104.             </xsd:annotation>
  105.         </xsd:attribute>
  106.     </xsd:complexType>
  107.     <xsd:simpleType name="emailType" base="xsd:string">
  108.         <xsd:pattern value="[\p{L}_]+(\.[\p{L}_]+)*@[\p{L}_]+(\.[\p{L}_]+)+"/>
  109.     </xsd:simpleType>
  110. </xsd:schema>
  111.