<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2008 (http://www.altova.com) by Peter Schut (Agriculture Canada) -->
<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:gls="http://www.opengis.net/gls/0.11" xmlns:ns1="http://www.w3.org/1999/xlink" targetNamespace="http://www.opengis.net/gls/0.11" elementFormDefault="qualified" version="0.11" xml:lang="en">
	<annotation>
		<appinfo>$Id: glsDescribeJoinAbilities_response.xsd 2008-01-04 $</appinfo>
		<documentation>
			<description>This XML Schema specifies the content of the GLS DescribeJoinAbilities response.</description>
			<copyright>Copyright (c) 2007 OpenGIS, All Rights Reserved. </copyright>
		</documentation>
	</annotation>
	<!-- ========= includes and imports ================================ -->
	<include schemaLocation="glsAll.xsd"/>
	<!-- ========= top level element =================================== -->
	<element name="JoinAbilities">
		<annotation>
			<documentation>Response describing all joining abilities of the GLS instance.</documentation>
		</annotation>
		<complexType>
			<complexContent>
				<extension base="gls:ResponseBaseType">
					<sequence>
						<element ref="gls:SpatialFrameworks"/>
						<element ref="gls:AttributeLimit"/>
						<element name="OutputMechanisms" type="gls:OutputMechanismsType">
							<annotation>
								<documentation>List of mechanisms by which the attribute data will be accessible once it has been joined to the spatial framework.</documentation>
							</annotation>
						</element>
						<element name="OutputStylings" minOccurs="0">
							<annotation>
								<documentation>Unordered list of display or content styling instructions supported by the server and that can be applied if the AccessMechanisms of the requested output includes WMS.  If WMS is not supported by the server then this element shall not be present.  If WMS is supported and this element is not present, a default styling will be applied to the WMS layer.</documentation>
							</annotation>
							<complexType>
								<complexContent>
									<extension base="gls:OutputStylingsType"/>
								</complexContent>
							</complexType>
						</element>
					</sequence>
				</extension>
			</complexContent>
		</complexType>
	</element>
	<!-- ========= other elements and types ============================ -->
	<element name="SpatialFrameworks">
		<annotation>
			<documentation>Full description of all spatial frameworks to which attribute data can be joined.</documentation>
		</annotation>
		<complexType>
			<sequence>
				<element name="Framework" type="gls:DescribeFrameworkType" maxOccurs="unbounded"/>
			</sequence>
		</complexType>
	</element>
	<!-- =========================================================== -->
	<element name="AttributeLimit" type="positiveInteger">
		<annotation>
			<documentation>Maximum number of attributes that can be joined simultaneously as part of a JoinData request.</documentation>
		</annotation>
	</element>
	<!-- =========================================================== -->
	<complexType name="OutputMechanismsType">
		<sequence>
			<element ref="gls:Mechanism" maxOccurs="unbounded"/>
		</sequence>
	</complexType>
	<element name="Mechanism">
		<annotation>
			<documentation>Mechanism by which the attribute data can be accessed once it has been joined to the spatial framework.</documentation>
		</annotation>
		<complexType>
			<sequence>
				<element name="Identifier" type="string">
					<annotation>
						<documentation>Name which uniquely identifies this type of access mechanism supported by this server.</documentation>
					</annotation>
				</element>
				<element name="Title" type="string">
					<annotation>
						<documentation>Human-readable title which uniquely identifies the type of access mechanism supported by this server.  Must be suitable for display in a pick-list to a user.</documentation>
					</annotation>
				</element>
				<element name="Abstract" type="string">
					<annotation>
						<documentation>Human-readable description of the type of access mechanism, suitable for display to a user seeking information about this type of access mechanism.</documentation>
					</annotation>
				</element>
				<element name="Reference" type="anyURI">
					<annotation>
						<documentation>URL that defines the access mechanism. </documentation>
					</annotation>
				</element>
			</sequence>
		</complexType>
	</element>
	<!-- =========================================================== -->
	<complexType name="OutputStylingsType">
		<sequence>
			<element ref="gls:Styling" maxOccurs="unbounded">
				<annotation>
					<documentation>Describes a form of styling instruction supported by this server. (e.g. SLD)</documentation>
				</annotation>
			</element>
		</sequence>
	</complexType>
	<element name="Styling">
		<annotation>
			<documentation>Describes a form of styling instruction supported by this server.</documentation>
		</annotation>
		<complexType>
			<sequence>
				<element name="Identifier" type="string">
					<annotation>
						<documentation>Name that uniquely identifies this type of styling instructions supported by this server.</documentation>
					</annotation>
				</element>
				<element name="Title" type="string">
					<annotation>
						<documentation>Human-readable title that uniquely identifies the type of styling instructions supported by this server.  Must be suitable for display in a pick-list to a user.</documentation>
					</annotation>
				</element>
				<element name="Abstract" type="string">
					<annotation>
						<documentation>Human-readable description of the type of styling instructions, suitable for display to a user seeking information about this type of styling instruction.</documentation>
					</annotation>
				</element>
				<element name="Reference" type="anyURI">
					<annotation>
						<documentation>URL that defines the styling instructions. </documentation>
					</annotation>
				</element>
				<element name="Schema" type="anyURI" minOccurs="0">
					<annotation>
						<documentation>Reference to a definition of XML elements or types supported for this styling instruction (e.g., a URL which returns the XSD for SLD 1.0). This parameter shall be included when the styling instructions are XML encoded using an XML schema. When included, the input/output shall validate against the referenced XML Schema. This element shall be omitted if Schema does not apply to this form of styling instruction. Note: If this styling instruction uses a profile of a larger schema, the server administrator should provide that schema profile for validation purposes. </documentation>
					</annotation>
				</element>
			</sequence>
		</complexType>
	</element>
</schema>

