<?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:xs="http://www.w3.org/2001/XMLSchema" xmlns:xi="http://www.w3.org/2003/XInclude" 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
		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"/>
	<!-- Import XInclude schema-->
	<xs:import namespace="http://www.w3.org/2003/XInclude" schemaLocation="XInclude.xsd"/>
	<!-- elements and simple types -->
	<xs:element name="link" type="xi:includeType"/>
	<xs:simpleType name="forecastLeadTimeType">
		<xs:annotation>
			<xs:documentation>Type to allow forecast lead time T+nnn.dd</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:pattern value="T\+[0-9]+|T\+[0-9]+\.[0-9]*"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="unspecifiedDateTimeType">
		<xs:restriction base="xs:string">
			<xs:enumeration value="continuing"/>
			<xs:enumeration value="unknown"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="dateAndTimeTypes">
		<xs:annotation>
			<xs:documentation>Type to allow xs:date or xs:time or xs:dateTime or 
			forecastLeadTimeType or unspecifiedDateTimeType</xs:documentation>
		</xs:annotation>
		<xs:union memberTypes="xs:date xs:time xs:dateTime forecastLeadTimeType unspecifiedDateTimeType"/>
	</xs:simpleType>
	<xs:simpleType name="WMO_KeywordListType">
		<xs:annotation>
			<xs:documentation>List of WMO keywords </xs:documentation>
		</xs:annotation>
		<xs:list itemType="WMO_KeywordType"/>
	</xs:simpleType>
	<xs:simpleType name="numberListType">
		<xs:list itemType="xs:decimal"/>
	</xs:simpleType>
	<xs:simpleType name="freeKeywordsListType">
		<xs:list itemType="xs:string"/>
	</xs:simpleType>
	<xs:simpleType name="WMO_KeywordsOrFreeKeywordsType">
		<xs:annotation>
			<xs:documentation>List of WMO keywords including numers (decimals and free string lists)</xs:documentation>
		</xs:annotation>
		<xs:union memberTypes="WMO_KeywordListType numberListType freeKeywordsListType"/>
	</xs:simpleType>
	<xs:simpleType name="NullEnumeration">
		<xs:restriction base="xs:string">
			<xs:enumeration value="inapplicable"/>
			<xs:enumeration value="missing"/>
			<xs:enumeration value="template"/>
			<xs:enumeration value="unknown"/>
			<xs:enumeration value="withheld"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="LongitudeRangeType">
		<xs:annotation>
			<xs:documentation>Type of a longitude value</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:float">
			<xs:minInclusive value="-180.0"/>
			<xs:maxInclusive value="180.0"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="LatitudeRangeType">
		<xs:annotation>
			<xs:documentation>Type of a latitude value</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:float">
			<xs:minInclusive value="-90.0"/>
			<xs:maxInclusive value="90.0"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="LongitudeType">
		<xs:union memberTypes="NullEnumeration LongitudeRangeType"/>
	</xs:simpleType>
	<xs:simpleType name="LatitudeType">
		<xs:union memberTypes="NullEnumeration LatitudeRangeType"/>
	</xs:simpleType>
	<xs:simpleType name="dataLanguageType">
		<xs:annotation>
			<xs:documentation>dataLanguageType is a union of xs:language or an enumerated list
			Since t his has not been doe at present, this defaults to a free string</xs:documentation>
		</xs:annotation>
		<xs:union memberTypes="xs:language xs:string"/>
	</xs:simpleType>
</xs:schema>

