<?xml version="1.0"?>
<!-- edited with XMLSpy v2005 rel. 3 U (http://www.altova.com) by Yungjae Cho (ENVIRONMENT CANADA) -->
<!-- CMML v3.04  -->
<!-- For more information, refer to the CMML_control_document -->
<!-- Pour plus d'information, veuillez consulter le CMML_control_document_FR  -->
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
	<xsd:include schemaLocation="head.xsd"/>
	<xsd:include schemaLocation="data.xsd"/>
	<xsd:element name="cmml" type="cmmlType"/>
	<xsd:complexType name="cmmlType">
		<xsd:sequence>
			<xsd:element name="head" type="headType"/>
			<xsd:element name="data" type="dataType">
				<xsd:key name="locationKey">
					<xsd:selector xpath=".//forecast-location"/>
					<xsd:field xpath="location-key"/>
				</xsd:key>
				<xsd:keyref name="applicable-locationKey" refer="locationKey">
					<xsd:selector xpath="data/parameters"/>
					<xsd:field xpath="@applicable-location"/>
				</xsd:keyref>
				<xsd:key name="timeKey">
					<xsd:selector xpath=".//time-layout"/>
					<xsd:field xpath="layout-key"/>
				</xsd:key>
				<xsd:keyref name="applicable-timeKey" refer="timeKey">
					<xsd:selector xpath="parameters/*"/>
					<xsd:field xpath="@time-layout"/>
				</xsd:keyref>
			</xsd:element>
		</xsd:sequence>
		<xsd:attribute name="version" type="non-emptyString" use="required"/>
	</xsd:complexType>
</xsd:schema>
