<?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.10 Distribution Information
		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"/>
	<!-- Import XInclude schema-->
	<xs:import namespace="http://www.w3.org/2003/XInclude" schemaLocation="XInclude.xsd"/>
	<xs:complexType name="MD_DistributionType">
		<xs:annotation>
			<xs:documentation>MD_Distribution Lines 271-273</xs:documentation>
		</xs:annotation>
		<xs:choice>
			<xs:sequence>
				<xs:element ref="distributionFormat"/>
				<xs:element ref="transferOptions"/>
			</xs:sequence>
			<xs:element ref="link"/>
		</xs:choice>
	</xs:complexType>
	<xs:complexType name="MD_FormatType">
		<xs:annotation>
			<xs:documentation>284 Specifies representation of data objects Lines 285-290</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element ref="formatName"/>
			<xs:element ref="formatVersion" minOccurs="0"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="MD_DigitalTransferOptionsType">
		<xs:annotation>
			<xs:documentation>274 Technical means and media by which a resource is obtained from the distributor Lines 275-278</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element ref="transferSize" minOccurs="0">
				<xs:annotation>
					<xs:documentation>276: Estimated size of a resource unit expressed in MegaBytes</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:sequence>
				<xs:element ref="onLineSource" minOccurs="0" maxOccurs="unbounded">
					<xs:annotation>
						<xs:documentation>277: information about online sources from which the resource can be obtained</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element ref="WMO_Source" minOccurs="0" maxOccurs="unbounded"/>
			</xs:sequence>
			<xs:element ref="offlineMedium" minOccurs="0"/>
		</xs:sequence>
	</xs:complexType>
	<!-- ********************************************************************************************************************* -->
	<!-- reference elements ______________________________________________________________ -->
	<!-- ********************************************************************************************************************* -->
	<xs:element name="distributionFormat" type="MD_FormatType">
		<xs:annotation>
			<xs:documentation>271:provides a description of the format of the data</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:element name="transferOptions" type="MD_DigitalTransferOptionsType">
		<xs:annotation>
			<xs:documentation>273: provides information about technical means and media by which the resource is obtained from the distributor</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:element name="formatName">
		<xs:annotation>
			<xs:documentation>285: name of the data transfer format(s)
						extended to allow an attribute link to documentation
					</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:simpleContent>
				<xs:extension base="xs:string">
					<xs:attribute name="documentation" type="xs:anyURI"/>
				</xs:extension>
			</xs:simpleContent>
		</xs:complexType>
	</xs:element>
	<xs:element name="formatVersion" type="xs:string">
		<xs:annotation>
			<xs:documentation>286: version of the format(s)</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:element name="transferSize" type="xs:float">
		<xs:annotation>
			<xs:documentation>276: Estimated size of a resource unit expressed in MegaBytes</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:element name="onLineSource" type="xs:anyURI">
		<xs:annotation>
			<xs:documentation>277: information about online sources from which the resource can be obtained</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:element name="WMO_Source" type="xs:string">
		<xs:annotation>
			<xs:documentation> alternative to 277: information about WMO sources from which the resource can be obtained</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:element name="offlineMedium" type="MD_MediumNameCodeType">
		<xs:annotation>
			<xs:documentation>278: name of the offline medium on which the resource can be received</xs:documentation>
		</xs:annotation>
	</xs:element>
</xs:schema>

