﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" 
           xmlns:xs="http://www.w3.org/2001/XMLSchema"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"                      
           xmlns:sobek="http://sobekrepository.org/schemas/sobekcm_etd"
           targetNamespace="http://sobekrepository.org/schemas/sobekcm_etd" 
           version="1.0">
  <xs:annotation>
    <xs:documentation xml:lang="en">
      Schema defines information for Electronic Theses and Dissertations (ETDs) and 
			is utilized by the SobekCM web repository.  I would prefer to use an (inter)national
			standard, but none appears to exist which has the level of detail we need.
      Developer: Mark Sullivan (Mark.V.Sullivan@gmail.com)
      Creation Date: 09/16/2013
    </xs:documentation>
  </xs:annotation>
  <xs:element name="etd">
    <xs:complexType>
				<xs:sequence>
					<xs:element type="xs:string" name="committeeChair" minOccurs="0" maxOccurs="1" />
					<xs:element type="xs:string" name="committeeCoChair" inOccurs="0" maxOccurs="1" />
					<xs:element type="xs:string" name="committeeMember" minOccurs="0" maxOccurs="unbounded"/>
					<xs:element type="xs:date" name="graduationDate" minOccurs="0" maxOccurs="1" />
					<xs:element type="xs:string" name="degree" minOccurs="0" maxOccurs="1" />
					<xs:element type="xs:string" name="degreeDiscipline" minOccurs="0" maxOccurs="unbounded" />
					<xs:element type="xs:string" name="degreeDivision" minOccurs="0" maxOccurs="unbounded" />
					<xs:element type="xs:string" name="degreeGrantor" minOccurs="0" maxOccurs="1" />		
					<xs:element name="degreeLevel" minOccurs="0" maxOccurs="1">
					  <xs:simpleType>
						<xs:restriction base="xs:NMTOKEN">
							<xs:enumeration value="Bachelors" />
							<xs:enumeration value="Doctorate" />
							<xs:enumeration value="Masters" />
						  <xs:enumeration value="Post-Doctorate" />
						</xs:restriction>
					  </xs:simpleType>
					</xs:element>
					<xs:element type="xs:string" name="semester" minOccurs="0" maxOccurs="1" />
				</xs:sequence>
			</xs:complexType>    
  </xs:element>
</xs:schema>