<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2005 sp1 U (http://www.xmlspy.com) by Peter Schut (AGRICULTURE & AGRI-FOOD CANADA) -->
<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:ows="http://www.opengeospatial.net/ows" xmlns:gls="http://www.opengeospatial.net/gls" targetNamespace="http://www.opengeospatial.net/gls" elementFormDefault="qualified" version="0.10.0" xml:lang="en">
	<annotation>
		<documentation>
			<description>This XML Schema encodes common descriptions for GLS GetData (GDAS) request and responses.</description>
			<copyright>Copyright (c) 2006 OpenGIS, All Rights Reserved. </copyright>
		</documentation>
	</annotation>
	<!-- =============================================================
		includes and imports
	============================================================== -->
	<import namespace="http://www.opengeospatial.net/ows" schemaLocation="../../ows/1.0.0/owsCommon.xsd"/>
	<include schemaLocation="glsCommon.xsd"/>
	<!-- =============================================================
		elements and types
	============================================================== -->
	<element name="GDAS">
		<complexType>
			<sequence>
				<element name="Framework" type="gls:GetDataType"/>
			</sequence>
			<attribute name="version" fixed="0.10.0"/>
		</complexType>
		<key name="attributeKey">
			<annotation>
				<documentation>The value of the 'Attribute' element's 'Name' element is referenced by the 'V' elements attribute named 'attributeRef'.</documentation>
			</annotation>
			<selector xpath="./gls:Dataset/gls:Attribute"/>
			<field xpath="gls:Name"/>
		</key>
		<keyref name="attributeKeyRef" refer="gls:attributeKey">
			<annotation>
				<documentation>The value for the 'V' element's attribute named 'attributeName' must be a value from the associated 'Dataset' elements 'Attribute/Name' element.</documentation>
			</annotation>
			<selector xpath="./gls:Rowset/gls:Row/gls:V"/>
			<field xpath="@aid"/>
		</keyref>
	</element>
	<!-- =========================================================== -->
	<complexType name="GetDataType">
		<complexContent>
			<extension base="gls:FrameworkType">
				<sequence>
					<element name="Dataset" type="gls:ResponseDatasetType" maxOccurs="unbounded"/>
				</sequence>
			</extension>
		</complexContent>
	</complexType>
	<!-- =========================================================== -->
	<complexType name="ResponseDatasetType">
		<complexContent>
			<extension base="gls:DatasetAttributeType">
				<sequence>
					<element name="Rowset" type="gls:RowsetType"/>
				</sequence>
			</extension>
		</complexContent>
	</complexType>
	<!-- =========================================================== -->
	<complexType name="RowsetType">
		<annotation>
			<documentation>Rowset type defines a section for a dataset. Rowset can be presented more than once. However the efficient use of Rowset will be once per GetData response </documentation>
		</annotation>
		<sequence>
			<element name="Row" type="gls:RowType" maxOccurs="unbounded"/>
		</sequence>
	</complexType>
	<!-- =========================================================== -->
	<complexType name="RowType">
		<sequence>
			<element ref="gls:I"/>
			<element ref="gls:V" maxOccurs="unbounded"/>
		</sequence>
	</complexType>
	<!-- =========================================================== -->
	<element name="I" type="string"/>
	<element name="V">
		<complexType>
			<simpleContent>
				<extension base="string">
					<attribute name="aid" type="string" use="optional"/>
				</extension>
			</simpleContent>
		</complexType>
	</element>
</schema>

