<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:midas="http://www.heritage-standards.org.uk/midas/schema/2.0" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.heritage-standards.org.uk/midas/schema/2.0" elementFormDefault="qualified" version="2.0" id="midas_historicalevent">
	<!--Version 2.0 with corrected web address for schema -->
	<xs:include schemaLocation="midas_common.xsd"/>
	<xs:include schemaLocation="midas_temporal.xsd"/>
	<xs:include schemaLocation="midas_spatial.xsd"/>
	<xs:include schemaLocation="midas_actor.xsd"/>
	<xs:include schemaLocation="midas_meta.xsd"/>
	<xs:annotation>
		<xs:documentation>This is the Historical Event Schema for the MIDAS standard, part of the FISH suite of
            XML schemas for the historic environment. This schema records things that have happened. Historical events that relate to the historic environment in some way provide additional historical context for an entry. Historical events include both human and natural events. </xs:documentation>
	</xs:annotation>
	<!-- Begin /historicalevents root element -->
	<xs:element name="historicalevents">
		<xs:annotation>
			<xs:documentation>Root historicalevents element.</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:sequence>
				<!-- Begin /meta (documents entire collection of event records)-->
				<xs:element ref="midas:meta" minOccurs="0"/>
				<!-- Begin /historicalevents/historicalevent -->
				<xs:element name="historicalevent" maxOccurs="unbounded">
					<xs:annotation>
						<xs:documentation>Element for recording historicalevent associated with
                        monuments.</xs:documentation>
					</xs:annotation>
					<xs:complexType>
						<xs:sequence>
							<!-- Begin /historicalevents/historicalevent/recordmetadata -->
							<xs:group ref="midas:recordmetadata"/>
							<!-- Begin /historicalevents/historicalevent/appellation -->
							<xs:group ref="midas:appellation"/>
							<!-- Begin /historicalevents/historicalevent/description (reference)-->
							<xs:group ref="midas:description" maxOccurs="unbounded"/>
							<!-- Begin /historicalevents/historicaleventtype -->
							<xs:element name="historicaleventtype">
								<xs:annotation>
									<xs:documentation>Element for recording historicalevent associated with
										monuments.
										</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:simpleContent>
										<xs:extension base="xs:string">
											<xs:attribute name="namespace"/>
										</xs:extension>
									</xs:simpleContent>
								</xs:complexType>
							</xs:element>
							<!-- Begin /events/event/spatial (reference) -->
							<xs:element ref="midas:spatial" minOccurs="0" maxOccurs="unbounded"/>
							<!-- Begin /events/event/actors -->
							<xs:element name="actors" minOccurs="0" maxOccurs="unbounded">
								<xs:annotation>
									<xs:documentation>Element used to hold one or more actor
                                        elements involved with the .</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:sequence>
										<!-- Begin /events/event/actors/actor (reference)  -->
										<xs:element ref="midas:actor" minOccurs="0" maxOccurs="unbounded"/>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
							<!-- Begin /events/event/temporal (required externally) -->
							<xs:element ref="midas:temporal"/>
							<!-- Begin /monument/relationships (reference)-->
							<xs:group ref="midas:related" minOccurs="0" maxOccurs="unbounded"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<!-- End /events/event -->
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<!-- End /events -->
</xs:schema>

