<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
	elementFormDefault="qualified">
	<xs:annotation>
		<xs:documentation>Standard part of any Resource Profile
		</xs:documentation>
	</xs:annotation>
	<xs:element name="RESOURCE_PROFILE">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="HEADER" type="HEADERType" />
				<xs:element name="BODY" type="BODYType" />
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:complexType name="HEADERType">
		<xs:all>
			<xs:element name="RESOURCE_IDENTIFIER" type="RESOURCE_IDENTIFIERType" />
			<xs:element name="RESOURCE_TYPE" type="RESOURCE_TYPEType" />
			<xs:element name="RESOURCE_KIND" type="RESOURCE_KINDType" />
			<xs:element name="RESOURCE_URI" type="RESOURCE_URIType" />
			<xs:element name="DATE_OF_CREATION" type="DATEType" />
		</xs:all>
	</xs:complexType>
	<xs:complexType name="BODYType">
		<xs:sequence>
			<xs:element name="CONFIGURATION" type="CONFIGURATIONType" />
			<xs:element name="STATUS" type="STATUSType" />
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="RESOURCE_IDENTIFIERType">
		<xs:attribute name="value" type="xs:string" use="required" />
	</xs:complexType>
	<xs:complexType name="RESOURCE_TYPEType">
		<xs:attribute name="value" use="required">
			<xs:simpleType>
				<xs:restriction base="xs:string">
					<xs:enumeration value="MDFormatDSResourceType" />
				</xs:restriction>
			</xs:simpleType>
		</xs:attribute>
	</xs:complexType>
	<xs:complexType name="RESOURCE_KINDType">
		<xs:attribute name="value" use="required">
			<xs:simpleType>
				<xs:restriction base="xs:string">
					<xs:enumeration value="MDFormatDSResources" />
				</xs:restriction>
			</xs:simpleType>
		</xs:attribute>
	</xs:complexType>
	<xs:complexType name="RESOURCE_URIType">
		<xs:attribute name="value" type="xs:string" use="required" />
	</xs:complexType>
	<xs:complexType name="DATEType">
		<xs:attribute name="value" type="xs:dateTime" use="required" />
	</xs:complexType>
	<xs:annotation>
		<xs:documentation>Customisable part of any Resource Profile
		</xs:documentation>
	</xs:annotation>
	<xs:complexType name="CONFIGURATIONType">
		<xs:all>
			<xs:element name="NAME" type="xs:string" />
			<xs:element name="INTERPRETATION" type="xs:string" />
			<xs:element name="DESCRIPTION" type="xs:string" />
			<xs:element name="SCHEMA">
				<xs:complexType>
					<xs:attribute name="uri" type="xs:anyURI" use="required" />
				</xs:complexType>
			</xs:element>
		</xs:all>
	</xs:complexType>
	<xs:complexType name="TERMType">
		<xs:attribute name="name" type="xs:string" use="required" />
		<xs:attribute name="Prefix" type="xs:string" use="required" />
		<xs:attribute name="NameSpace" type="xs:string" use="required" />
		<xs:attribute name="Schema" type="xs:string" use="required" />
	</xs:complexType>
	<xs:complexType name="STATUSType">
		<xs:all>
			<xs:element name="LAYOUTS">
				<xs:complexType>
					<xs:sequence>
						<xs:element name="LAYOUT" minOccurs="0" maxOccurs="unbounded">
							<xs:complexType>
								<xs:all>
									<xs:element name="FIELDS">
										<xs:complexType>
											<xs:sequence>
												<xs:element name="FIELD" minOccurs="0" maxOccurs="unbounded">
													<xs:complexType>
														<xs:attribute name="name" type="xs:string"
															use="required" />
														<xs:attribute name="value" type="xs:string" />
														<xs:attribute name="constant" type="xs:string" />
														<xs:attribute name="xpath" type="xs:string" />
														<xs:attribute name="path" type="xs:string" />
														<xs:attribute name="indexable" type="xs:boolean"
															use="required" />
														<xs:attribute name="result" type="xs:boolean"
															use="required" />
														<xs:attribute name="header" type="xs:boolean" />
														<xs:attribute name="type" type="xs:string" />
														<xs:attribute name="stat" type="xs:boolean" />
														<xs:attribute name="tokenizable" type="xs:boolean" />
														<xs:attribute name="browsingAliasFor" type="xs:string" />
														<xs:attribute name="multivalued" type="xs:boolean" />
														<xs:attribute name="stored" type="xs:boolean" />
													</xs:complexType>
												</xs:element>
											</xs:sequence>
										</xs:complexType>
									</xs:element>
									<xs:element name="TRANSFORMATION" minOccurs="0">
										<xs:complexType mixed="true">
											<xs:complexContent mixed="true">
												<xs:restriction base="xs:anyType">
													<xs:sequence>
														<xs:any processContents="lax" minOccurs="0"
															maxOccurs="unbounded" />
													</xs:sequence>
													<xs:attribute name="type" type="xs:string"
														use="required" />
												</xs:restriction>
											</xs:complexContent>
										</xs:complexType>
									</xs:element>
									<xs:element name="RULES" minOccurs="0">
										<xs:complexType>
											<xs:sequence>
												<xs:element name="RULE" minOccurs="0" maxOccurs="unbounded" />
											</xs:sequence>
										</xs:complexType>
									</xs:element>
								</xs:all>
								<xs:attribute name="name" type="xs:string" use="required" />
							</xs:complexType>
						</xs:element>
					</xs:sequence>
				</xs:complexType>
			</xs:element>
		</xs:all>
	</xs:complexType>
</xs:schema>