home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="UTF-8"?>
- <!-- edited with XML Spy v3.0.2 NT (http://www.xmlspy.com) by Bill Winkler (Icon) -->
- <!--W3C Schema generated by XML Spy v3.0 NT (http://www.xmlspy.com)-->
- <!DOCTYPE xsd:schema PUBLIC "-//W3C//DTD XMLSCHEMA 19991216//EN" "" [
- <!ENTITY % p 'xsd:'>
- <!ENTITY % s ':xsd'>
- ]>
- <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">
- <xsd:notation name="Icon-Orgchart" public="http://www.xmlspy.com/schemas/icon/orgchart"/>
- <xsd:complexType name="DivisionType" content="elementOnly">
- <xsd:sequence>
- <xsd:element name="Name" type="xsd:string"/>
- <xsd:element name="Established" type="xsd:year" minOccurs="0" maxOccurs="1"/>
- <xsd:element name="URL" type="xsd:uriReference" minOccurs="0" maxOccurs="1"/>
- <xsd:element name="Manager" type="xsd:string" minOccurs="0" maxOccurs="1"/>
- <xsd:element name="Desc" type="xsd:string"/>
- <xsd:element name="Person" type="PersonType" minOccurs="0" maxOccurs="unbounded"/>
- </xsd:sequence>
- <xsd:attribute name="ProfitCenter" use="required">
- <xsd:simpleType base="xsd:NMTOKEN">
- <xsd:enumeration value="no"/>
- <xsd:enumeration value="yes"/>
- </xsd:simpleType>
- </xsd:attribute>
- </xsd:complexType>
- <xsd:element name="Icon">
- <xsd:complexType content="elementOnly">
- <xsd:sequence>
- <xsd:element name="Division" type="DivisionType" minOccurs="1" maxOccurs="unbounded"/>
- </xsd:sequence>
- <xsd:attribute name="xmlns" type="xsd:uriReference" use="fixed" value="http://www.xmlspy.com/schemas/icon/orgchart"/>
- <xsd:attribute name="xmlns:xsi" type="xsd:uriReference" use="fixed" value="http://www.w3.org/1999/XMLSchema-instance"/>
- <xsd:attribute name="xsi:schemaLocation" type="xsd:string" use="default" value="http://www.xmlspy.com/schemas/icon/orgchart
- C:\xml\test\schema\icon2.xsd"/>
- </xsd:complexType>
- </xsd:element>
- <xsd:complexType name="PersonType" content="elementOnly">
- <xsd:annotation>
- <xsd:documentation>A person working for the company</xsd:documentation>
- </xsd:annotation>
- <xsd:sequence>
- <xsd:element name="ID">
- <xsd:annotation>
- <xsd:documentation>Unique identifier for each person</xsd:documentation>
- </xsd:annotation>
- <xsd:simpleType base="xsd:ID">
- <xsd:pattern value="\p{L}{5}\d{2}"/>
- </xsd:simpleType>
- </xsd:element>
- <xsd:element name="LastName">
- <xsd:annotation>
- <xsd:documentation>Last (family) name of person</xsd:documentation>
- </xsd:annotation>
- <xsd:simpleType base="xsd:string">
- <xsd:minLength value="1"/>
- <xsd:maxLength value="20"/>
- </xsd:simpleType>
- </xsd:element>
- <xsd:element name="FirstName" type="xsd:string">
- <xsd:annotation>
- <xsd:documentation>First (given) name of person</xsd:documentation>
- </xsd:annotation>
- </xsd:element>
- <xsd:element name="Title" minOccurs="0" maxOccurs="1">
- <xsd:annotation>
- <xsd:documentation>Academic (or other) title</xsd:documentation>
- </xsd:annotation>
- <xsd:simpleType base="xsd:string">
- <xsd:maxLength value="10"/>
- <xsd:enumeration value="Dr."/>
- <xsd:enumeration value="Ing."/>
- <xsd:enumeration value="Dipl.-Ing."/>
- <xsd:enumeration value="Prof."/>
- </xsd:simpleType>
- </xsd:element>
- <xsd:element name="PhoneExt" default="0">
- <xsd:annotation>
- <xsd:documentation>Phone extension for direct dialing</xsd:documentation>
- </xsd:annotation>
- <xsd:simpleType base="xsd:integer">
- <xsd:minInclusive value="0"/>
- <xsd:maxInclusive value="99"/>
- </xsd:simpleType>
- </xsd:element>
- <xsd:element name="EMail" type="emailType" default="office@icon.at">
- <xsd:annotation>
- <xsd:documentation>E-Mail address on the Internet (must be in name@company.net format)</xsd:documentation>
- </xsd:annotation>
- </xsd:element>
- </xsd:sequence>
- <xsd:attribute name="Mgr" type="xsd:boolean" use="required">
- <xsd:annotation>
- <xsd:documentation>Is this person employed in a managerial role</xsd:documentation>
- </xsd:annotation>
- </xsd:attribute>
- <xsd:attribute name="Prg" type="xsd:boolean" use="required">
- <xsd:annotation>
- <xsd:documentation>Is this person capable of programming</xsd:documentation>
- </xsd:annotation>
- </xsd:attribute>
- <xsd:attribute name="Des" type="xsd:boolean" use="optional">
- <xsd:annotation>
- <xsd:documentation>Does this person have design authority</xsd:documentation>
- </xsd:annotation>
- </xsd:attribute>
- </xsd:complexType>
- <xsd:simpleType name="emailType" base="xsd:string">
- <xsd:pattern value="[\p{L}_]+(\.[\p{L}_]+)*@[\p{L}_]+(\.[\p{L}_]+)+"/>
- </xsd:simpleType>
- </xsd:schema>
-