<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XML Spy v5.4 U (http://www.xmlspy.com) by Gil Ross Met Office UK -->
<xs:schema targetNamespace="http://www.wmo.ch/web/www/metadata" xmlns="http://www.wmo.ch/web/www/metadata" xmlns:xi="http://www.w3.org/2003/XInclude" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified" version="0.2">
	<xs:annotation>
		<xs:documentation> 
		Schema for the WMO Community Core Metadata Profile. Based on XML Schema and ISO 19115
		Implementation of Annex B.2.3
		Version 0.2
		Defined by Expert Team on Integrated Data Management 
		Second Meeting 13-16 May 2002 Shinfield England
		Third Meeting 15-18 December 2003 Geneva
		Fourth Meeting 1-3 September 2004 Geneva 
		</xs:documentation>
	</xs:annotation>
	<!-- Include code lists  -->
	<xs:include schemaLocation="./WMO19115_CodeLists_v0_2.xsd"/>
	<!-- Include basic types  -->
	<xs:include schemaLocation="./WMO19115_basicTypes_v0_2.xsd"/>
	<xs:complexType name="MD_ConstraintsType">
		<xs:annotation>
			<xs:documentation>MD_Constraints Lines 68-77: restrictions on the access and use of data</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element ref="useLimitation" minOccurs="0" maxOccurs="unbounded"/>
			<xs:choice>
				<xs:element ref="legalConstraints"/>
				<xs:element ref="securityConstraints"/>
			</xs:choice>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="MD_LegalConstraintsType">
		<xs:annotation>
			<xs:documentation>MD_LegalConstraints Lines 70-72: restrictions and legal prerequisites</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element ref="accessConstraints" minOccurs="0" maxOccurs="unbounded"/>
			<xs:element ref="useConstraints" minOccurs="0" maxOccurs="unbounded"/>
			<xs:element ref="otherConstraints" minOccurs="0" maxOccurs="unbounded"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="MD_SecurityConstraintsType">
		<xs:annotation>
			<xs:documentation>MD_SecurityConstraints</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element ref="classification"/>
			<xs:element ref="userNote" minOccurs="0"/>
			<xs:element ref="classificationSystem" minOccurs="0"/>
			<xs:element ref="handlingDescription" minOccurs="0"/>
		</xs:sequence>
	</xs:complexType>
	<!-- ********************************************************************************************************************* -->
	<!-- reference elements ______________________________________________________________ -->
	<!-- ********************************************************************************************************************* -->
	<xs:element name="useLimitation" type="xs:string">
		<xs:annotation>
			<xs:documentation>68: useLimitation Limitation affecting the fitness of the resource.</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:element name="legalConstraints" type="MD_LegalConstraintsType">
		<xs:annotation>
			<xs:documentation>69: restrictions and legal prerequisites for accessing and using the resource.</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:element name="securityConstraints" type="MD_SecurityConstraintsType">
		<xs:annotation>
			<xs:documentation>73: handling restrictions imposed on the resource for national security or similar security concerns.</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:element name="accessConstraints" type="MD_RestrictionCodeType">
		<xs:annotation>
			<xs:documentation>70: access constraints applied to assure the protection of privacy or intellectual property, and any special restrictions or limitations on obtaining the resource.</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:element name="useConstraints" type="MD_RestrictionCodeType">
		<xs:annotation>
			<xs:documentation>71: constraints applied to protect the privacy or intellectual property, and any special restructions or warnings on using the resource.</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:element name="otherConstraints" type="xs:string">
		<xs:annotation>
			<xs:documentation>72: other restrictions or legal prerequisites for accessing and using the resource.</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:element name="classification" type="MD_ClassificationCodeType">
		<xs:annotation>
			<xs:documentation>74: name of the handling restrictions on the resource.</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:element name="userNote" type="xs:string">
		<xs:annotation>
			<xs:documentation>75: explanation of the application of the  legal constraints or other restrictions.</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:element name="classificationSystem" type="xs:string">
		<xs:annotation>
			<xs:documentation>76: name of the classification system.</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:element name="handlingDescription" type="xs:string">
		<xs:annotation>
			<xs:documentation>77: additional information about the restrictions on handling the resource. </xs:documentation>
		</xs:annotation>
	</xs:element>
</xs:schema>

