<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSPY v2004 rel. 4 U (http://www.xmlspy.com) by Tyler Bell (Oxford ArchDigital Ltd.) -->
<xs:schema targetNamespace="http://www.heritage-standards.org.uk/midas/schema/1.1" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.1" id="midas_reference" xmlns:midas="http://www.heritage-standards.org.uk/midas/schema/1.1" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<!--Version 1.1 with corrected web address for schema -->
	<xs:include schemaLocation="midas_common.xsd"/>
	<xs:include schemaLocation="midas_meta.xsd"/>
	<xs:include schemaLocation="midas_temporal.xsd"/>
	<xs:annotation>
		<xs:documentation>This is the Reference Schema for the MIDAS standard, part of the FISH suite of XML schemas for the historic environment.  </xs:documentation>
	</xs:annotation>
	<!-- Begin /references root element -->
	<xs:element name="references">
		<xs:annotation>
			<xs:documentation>Root reference element</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:sequence>
				<!-- Begin /references/meta (documents entire collection of reference records)-->
				<xs:element ref="midas:meta" minOccurs="0"/>
				<!-- Begin /references/reference -->
				<xs:element name="reference" minOccurs="0">
					<xs:annotation>
						<xs:documentation>Element for recording references (or 'resources', formerly 'archives') associated with monuments and events.</xs:documentation>
					</xs:annotation>
					<xs:complexType>
						<xs:sequence>
							<!-- Begin /references/reference/recordmetadata -->
							<xs:group ref="midas:recordmetadata" minOccurs="0"/>
							<!-- Begin /references/reference/referencecreator (title and/or identifier) -->
							<xs:element name="referencecreator" minOccurs="0" maxOccurs="1">
								<xs:annotation>
									<xs:documentation>Title(s) and identifiers of refernece.</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:sequence>
										<xs:group ref="midas:appellation" minOccurs="0" maxOccurs="unbounded"/>
									</xs:sequence>
								</xs:complexType>
							</xs:element>									
							<!-- Begin /references/reference/referencetitle (title and/or identifier) -->
							<xs:element name="referencetitle" minOccurs="0" maxOccurs="1">
								<xs:annotation>
									<xs:documentation>Title(s) and identifiers of refernece.</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:sequence>
										<xs:group ref="midas:appellation" minOccurs="0" maxOccurs="unbounded"/>
									</xs:sequence>
								</xs:complexType>
							</xs:element>							
							<!-- Begin /references/reference/referencetype (image, notebook, colour slide, monograph) -->
							<xs:element name="referencetype">
								<xs:annotation>
									<xs:documentation>Reference type (image, notebook, colour slide, monograph), not to be confused with the reference medium</xs:documentation>
								</xs:annotation>
							</xs:element>
							<!-- Begin /references/reference/referencemedium (DVD, glass plate, computer file) -->
							<xs:element name="referencemedium" minOccurs="0" maxOccurs="unbounded">
								<xs:annotation>
									<xs:documentation>Medium of reference (DVD, glass plate, computer file).  Note that the reference type may be a book, but the medium, could be an e-book ("computer file").</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:simpleContent>
										<xs:extension base="xs:string">
											<xs:attribute name="format" type="xs:string" use="optional">
												<xs:annotation>
													<xs:documentation>Optional attribute for recording the (file) format of the medium</xs:documentation>
												</xs:annotation>
											</xs:attribute>
										</xs:extension>
									</xs:simpleContent>
								</xs:complexType>
							</xs:element>
							<!-- Begin /references/reference/temporal (date) -->
							<xs:element ref="midas:temporal"/>
							<!-- Begin /references/reference/referencepublisher (publisher)-->
							<xs:element name="referencepublisher" minOccurs="0">
								<xs:annotation>
									<xs:documentation>Publisher of reference.</xs:documentation>
								</xs:annotation>
							</xs:element>
							<!-- Begin /references/reference/referenceextent (pages)-->
							<xs:element name="referenceextent" minOccurs="0" maxOccurs="unbounded">
								<xs:annotation>
									<xs:documentation>Extent of reference; usually used for page references or similar</xs:documentation>
								</xs:annotation>
							</xs:element>
							<!-- Begin /references/reference/referencesubject (subject) -->
							<xs:element name="referencesubject" minOccurs="0" maxOccurs="unbounded">
								<xs:annotation>
									<xs:documentation>Subject of reference</xs:documentation>
								</xs:annotation>
							</xs:element>
							<!-- Begin /references/reference/description (description)-->
							<xs:group ref="midas:description"/>
							<!-- Begin /references/reference/note -->
							<xs:element name="note" minOccurs="0" maxOccurs="unbounded">
								<xs:annotation>
									<xs:documentation>Element for recording diverse, additional information, categorised by the 'type' attribute .</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:simpleContent>
										<xs:extension base="xs:string">
											<xs:attribute name="type"/>
										</xs:extension>
									</xs:simpleContent>
								</xs:complexType>
							</xs:element>
							<!-- Begin /monument/related (reference)-->
							<xs:group ref="midas:related"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<!-- end /references/reference -->
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<!-- end /references -->
</xs:schema>

