<?xml version="1.0" encoding="UTF-8"?>
<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" targetNamespace="http://www.opengis.net/gls/0.11" elementFormDefault="qualified" version="0.11" xml:lang="en">
	<annotation>
		<appinfo>$Id: glsJoinData_request.xsd 2008-01-04 $</appinfo>
		<documentation>
			<description>This XML Schema specifies the content of the GLS JoinData request.</description>
			<copyright>Copyright (c) 2008 OpenGIS, All Rights Reserved. </copyright>
		</documentation>
	</annotation>
	<!-- ========= includes and imports ================================ -->
	<include schemaLocation="glsAll.xsd"/>
	<!-- ========= top level element =================================== -->
	<element name="JoinData">
		<annotation>
			<documentation>Request to a GLS to perform the JoinData operation. This operation allows a client to join attribute data to a spatial framework. In this XML encoding, no "request" parameter is included, since the element name specifies the specific operation. </documentation>
		</annotation>
		<complexType>
			<complexContent>
				<extension base="gls:RequestBaseType">
					<sequence>
						<element name="AttributeData">
							<annotation>
								<documentation>Attribute data to be joined to the spatial framework.  </documentation>
							</annotation>
							<complexType>
								<choice>
									<element name="GetDataURL" type="anyURI">
										<annotation>
											<documentation>URL which returns a valid GLS 0.11 GetData response.  Note that this may be a GLS GetData request (via HTTP GET), a stored response to a GetData request, or a web process that returns content compliant with the GetData response schema.</documentation>
										</annotation>
									</element>
									<element name="GetDataXML">
										<annotation>
											<documentation>GetData request in XML encoding, including the name of the GLS server to be queried.  Note that since XML encoding of the GetData request is optional for GLS servers, this choice should not be used unless it is known that the GLS server supports this request method.</documentation>
										</annotation>
										<complexType>
											<sequence>
												<element ref="gls:FrameworkDomain"/>
												<element ref="gls:FrameworkName"/>
												<element ref="gls:FrameworkVersion"/>
												<element ref="gls:DatasetDomain"/>
												<element ref="gls:DatasetName"/>
												<element ref="gls:DatasetVersion"/>
												<element ref="gls:Attributes" minOccurs="0"/>
												<element ref="gls:LinkageKeys" minOccurs="0"/>
											</sequence>
											<attribute name="getDataHost" type="anyURI">
												<annotation>
													<documentation>Base URL of the GLS server to which the attached GetData request shall be passed.</documentation>
												</annotation>
											</attribute>
											<attribute name="language" type="string" use="optional">
												<annotation>
													<documentation>Value of the language parameter to be included in the GetData request.</documentation>
												</annotation>
											</attribute>
										</complexType>
									</element>
								</choice>
							</complexType>
						</element>
						<element name="MapStyling" minOccurs="0">
							<annotation>
								<documentation>Styling that shall be applied if the AccessMechanisms of the requested output includes WMS.  If WMS is not supported, 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>
								<sequence>
									<element name="StylingIdentifier">
										<annotation>
											<documentation>Name that identifies the type of styling to be invoked.  Must be a styling Identifier listed in the DescribeJoinAbilities response.</documentation>
										</annotation>
									</element>
									<element name="StylingURL" type="anyURI">
										<annotation>
											<documentation>Reference to a web-accessible resource that contains the styling information to be applied. This attribute shall contain a URL from which this input can be electronically retrieved. </documentation>
										</annotation>
									</element>
								</sequence>
							</complexType>
						</element>
					</sequence>
				</extension>
			</complexContent>
		</complexType>
	</element>
</schema>

