<?xml version="1.0" encoding="UTF-8" ?>

<!DOCTYPE schema SYSTEM "schema1.dtd">
<schema targetNamespace="http://purl.org/metadata/dublin_core" version="1.0" xmlns="http://www.w3.org/1999/XMLSchema">
	<datatype name="budgetType" source="integer">
		<minExclusive value="0"/>
		<maxExclusive value="50000"/>
	</datatype>
	<datatype name="gehaltsGrpType" source="string">
		<enumeration value="1"/>
		<enumeration value="1a"/>
		<enumeration value="2"/>
	</datatype>
	<type name="ProjektAbwicklungType">
		<annotation>Verwaltungsschema fuer Projekte und deren Mitarbeiter</annotation>
		<element name="person" minOccurs="1" maxOccurs="*"/>
		<element name="projekt" minOccurs="0" maxOccurs="*"/>
	</type>
	<type name="personType">
		<element name="vorname" minOccurs="1" maxOccurs="*"/>
		<element name="name"/>
		<element name="projektLeiter" minOccurs="0" maxOccurs="1"/>
		<element name="projektMitarb" minOccurs="2" maxOccurs="5"/>
		<attribute name="persID" type="ID" minOccurs="1"/>
		<attribute name="gehaltsGrp" type="gehaltsGrpType" default="1"/>
	</type>
	<type name="vornameType" content="textOnly"/>
	<type name="nameType" content="textOnly"/>
	<type name="projektTeilnehmerType" abstract="true" content="empty">
		<attribute name="prjRef" type="IDREF" minOccurs="1"/>
	</type>
	<type name="projektLeiterType" content="empty" source="projektTeilnehmerType" derivedBy="extension"/>
	<type name="projektMitarbType" content="empty" source="projektTeilnehmerType" derivedBy="extension"/>
	<type name="projektType" content="empty">
		<attribute name="prjID" type="ID" minOccurs="1"/>
		<attribute name="start" type="date" minOccurs="0" maxOccurs="1"/>
		<attribute name="budget" type="budget" minOccurs="1"/>
	</type>
	
	<element name="projektAbwicklung" type="projektAbwicklungType"/>
	<element name="person" type="PersonType"/>
	<element name="vorname" type="vornameType"/>
	<element name="name" type="name"/>
	<element name="projektLeiter" type="projektLeiterType"/>
	<element name="projektMitarb" type="projektMitarbType"/>
	<element name="projekt" type="projektType"/>
</schema>

