<?xml version="1.0" encoding="UTF-8"?>

<!--
    Document   : staff.xsd
    Created on : 16 May 2006, 12:12
    Author     : acs203
    Description:
        Purpose of XML Schema document follows.
-->

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">

<xsd:complexType name = "person_type">
  <xsd:sequence>
    <xsd:element name = "name">
      <xsd:complexType>
        <xsd:sequence>
          <xsd:element name = "firstname" type = "xsd:string" />
          <xsd:element name = "initial" type = "xsd:string" maxOccurs =
"unbounded" minOccurs = '0'/>
          <xsd:element name = "surname" type = "xsd:string" minOccurs = '0' />
        </xsd:sequence>
      </xsd:complexType>
    </xsd:element>
    <xsd:element name = "person" type = "person_type" minOccurs = '0' />
  </xsd:sequence>
  <xsd:attribute name = "id" type = "xsd:integer" use = "required"/>
</xsd:complexType>

<xsd:element name = "staff">
  <xsd:complexType>
    <xsd:sequence>
      <xsd:element name = "dept" maxOccurs = "unbounded">
        <xsd:complexType>
          <xsd:sequence>
            <xsd:element name = "person" type = "person_type" maxOccurs = "unbounded" />
          </xsd:sequence>
          <xsd:attribute name = "dname" type = "xsd:string"/>
          <xsd:attribute name = "did" type = "xsd:integer" use = "required"/>
        </xsd:complexType>
      </xsd:element>
    </xsd:sequence>
  </xsd:complexType>
</xsd:element>

</xsd:schema>
