<?xml version="1.0" encoding="utf-8"?>
<!-- edited with XMLSpy v2005 rel. 3 U (http://www.altova.com) by giancaspro (TPZ) -->
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:gml="http://www.opengis.net/gml" xmlns:sst="http://cweb.ksat.no/cweb/schema/sst" targetNamespace="http://cweb.ksat.no/cweb/schema/sst" elementFormDefault="qualified">
	<xsd:annotation>
		<xsd:documentation>
		    Copyright (c) 2007 Telespazio S.p.A., All Rights Reserved.
			SST Measures - GML Application schema
		</xsd:documentation>
	</xsd:annotation>
	<!-- ====================================================================== -->
	<!-- GML IMPORT -->
	<xsd:import namespace="http://www.opengis.net/gml" schemaLocation="http://cweb.ksat.no/cweb/schema/gml/3.1.1/base/feature.xsd"/>
	<!-- ================================================================== -->
	<!-- globally defined sst: elements (direct from gml or xsd namespace types) -->
	<xsd:element name="depth" type="gml:doubleList">
		<xsd:annotation>
			<xsd:documentation>List of (space separated) depth values (positive, in meters)</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="sst" type="gml:doubleList">
		<xsd:annotation>
			<xsd:documentation>List of (space separated) sea surface temperature values at corresponding depth, in celsius degrees</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="description" type="xsd:string">
		<xsd:annotation>
			<xsd:documentation>A free-text description of the observation.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:element name="dataSource" type="xsd:string">
		<xsd:annotation>
			<xsd:documentation>Name of organization or system providing this feature collection.</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<!-- ================================================================== -->
	<!-- SST: detected SST element - based on a gml Point -->
	<xsd:element name="sstMeasure" type="sst:sstMeasureType" substitutionGroup="gml:pointProperty">
		<xsd:annotation>
			<xsd:documentation>The snapshot of an SST Measure with equal length lists of depth and sst values. Inherits the pointMemberType of gml</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:complexType name="sstMeasureType">
		<xsd:complexContent>
			<xsd:extension base="gml:PointPropertyType">
				<xsd:sequence>
					<xsd:element ref="sst:depth"/>
					<xsd:element ref="sst:sst"/>
				</xsd:sequence>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>
	<!-- ================================================================== -->
	<!-- SST Feature Type -->
	<xsd:element name="feature" type="sst:FeatureType" substitutionGroup="gml:_Feature">
		<xsd:annotation>
			<xsd:documentation>An SST feature encloses a snapshot of a single detected SST observationl</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<xsd:complexType name="FeatureType">
		<xsd:complexContent>
			<xsd:extension base="gml:AbstractFeatureType">
				<xsd:sequence>
					<xsd:element ref="sst:sstMeasure">
						<xsd:annotation>
							<xsd:documentation>The actual SST measure status</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
				</xsd:sequence>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>
	<xsd:element name="featureCollection" type="sst:FeatureCollectionType" substitutionGroup="gml:_FeatureCollection">
		<xsd:annotation>
			<xsd:documentation>This is the concrete response element used to query a service for SST features</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<!-- SST  Feature Collection Type -->
	<xsd:complexType name="FeatureCollectionType">
		<xsd:annotation>
			<xsd:documentation>
				An SST feature collection encloses a set of SST features.
			</xsd:documentation>
		</xsd:annotation>
		<xsd:complexContent>
			<xsd:extension base="gml:AbstractFeatureCollectionType">
				<xsd:sequence>
					<xsd:element name="requestID" type="xsd:string" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>User initiated ID related to the creation, (order or request for) this feature collection</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element ref="sst:description" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>A free-text description of the observation.</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element ref="sst:dataSource" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>DataSource (optional)  represents here the generating organizational source for this feature collection, e.g. name of the providing organization</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
				</xsd:sequence>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>
</xsd:schema>
