<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2006 rel. 3 U (http://www.altova.com) by Eugene Song (NIST) -->
<xs:schema xmlns:stml="http://localhost/1451HTTPAPI" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://localhost/1451HTTPAPI" elementFormDefault="qualified" attributeFormDefault="unqualified">
	<xs:include schemaLocation="SmartTransducerDataModel.xsd"/>
	<xs:include schemaLocation="MetaIdentificationTEDS.xsd"/>
	<xs:include schemaLocation="TransducerChannelIdentificationTEDS.xsd"/>
	<xs:include schemaLocation="CalibrationIdentificationTEDS.xsd"/>
	<xs:include schemaLocation="CommandsTEDS.xsd"/>
	<xs:include schemaLocation="LocationAndTitleTEDS.xsd"/>
	<xs:include schemaLocation="GeographicLocationTEDS.xsd"/>
	<xs:element name="TextTEDS" type="stml:TextTEDSType" abstract="true"/>
	<xs:complexType name="TextTEDSDataBlockType">
		<xs:annotation>
			<xs:documentation>Structure of a Text-based TEDS data block</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="TEDSID">
				<xs:annotation>
					<xs:documentation>TEDS Identification Header</xs:documentation>
				</xs:annotation>
				<xs:complexType>
					<xs:sequence>
						<xs:element name="Type" type="xs:short" default="3"/>
						<xs:element name="Length" type="xs:short" default="4"/>
						<xs:element name="Value" type="stml:UInt8Array"/>
					</xs:sequence>
				</xs:complexType>
			</xs:element>
			<xs:element name="NumLang">
				<xs:annotation>
					<xs:documentation>The number N of different language blocks in this TEDS</xs:documentation>
				</xs:annotation>
				<xs:complexType>
					<xs:sequence>
						<xs:element name="Type" type="xs:short" default="10"/>
						<xs:element name="Length" type="xs:short" default="1"/>
						<xs:element name="Value" type="stml:UInt8"/>
					</xs:sequence>
				</xs:complexType>
			</xs:element>
			<xs:element name="DirBlock">
				<xs:annotation>
					<xs:documentation>Language block description This block is repeated N times</xs:documentation>
				</xs:annotation>
				<xs:complexType>
					<xs:sequence>
						<xs:element name="Type" type="xs:short" default="11"/>
						<xs:element name="Length" type="xs:short"/>
						<xs:sequence>
							<xs:element name="LangCode">
								<xs:annotation>
									<xs:documentation>Language code from ISO 639 (two letters in USASCII)</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:sequence>
										<xs:element name="Type" type="xs:short" default="20"/>
										<xs:element name="Length" type="xs:short" default="2"/>
										<xs:element name="Value" type="stml:UInt8"/>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
							<xs:element name="LangOffset">
								<xs:annotation>
									<xs:documentation>Language offset</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:sequence>
										<xs:element name="Type" type="xs:short" default="21"/>
										<xs:element name="Length" type="xs:short" default="4"/>
										<xs:element name="Value" type="stml:UInt32"/>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
							<xs:element name="LangLength">
								<xs:annotation>
									<xs:documentation>Language length = LL</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:sequence>
										<xs:element name="Type" type="xs:short" default="22"/>
										<xs:element name="Length" type="xs:short" default="4"/>
										<xs:element name="Value" type="stml:UInt32"/>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
							<xs:element name="Compress">
								<xs:annotation>
									<xs:documentation>Enumeration identifying the compression technique used.</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:sequence>
										<xs:element name="Type" type="xs:short" default="23"/>
										<xs:element name="Length" type="xs:short" default="1"/>
										<xs:element name="Value" type="stml:UInt8"/>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
						</xs:sequence>
					</xs:sequence>
				</xs:complexType>
			</xs:element>
			<xs:element name="SubSum">
				<xs:annotation>
					<xs:documentation>Non-displayable data checksum</xs:documentation>
				</xs:annotation>
				<xs:complexType>
					<xs:sequence>
						<xs:element name="Type" type="xs:short" default="12"/>
						<xs:element name="Length" type="xs:short" default="2"/>
						<xs:element name="Value" type="stml:UInt16"/>
					</xs:sequence>
				</xs:complexType>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:simpleType name="LanguageCodes">
		<xs:restriction base="xs:string">
			<xs:enumeration value="aa"/>
			<xs:enumeration value="da"/>
			<xs:enumeration value="de"/>
			<xs:enumeration value="en"/>
			<xs:enumeration value="es"/>
			<xs:enumeration value="eu"/>
			<xs:enumeration value="fi"/>
			<xs:enumeration value="fr"/>
			<xs:enumeration value="ga"/>
			<xs:enumeration value="it"/>
			<xs:enumeration value="nl"/>
			<xs:enumeration value="no"/>
			<xs:enumeration value="pl"/>
			<xs:enumeration value="pt"/>
			<xs:enumeration value="ru"/>
			<xs:enumeration value="sv"/>
			<xs:enumeration value="vi"/>
			<xs:enumeration value="zu"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:complexType name="TextTEDSType">
		<xs:annotation>
			<xs:documentation>This is a class of optional TEDS. The function of these TEDS is to provide information for display to an operator. There are six TEDS listed in Table 17 that fall into this category. They are the Meta-Identification TEDS, TransducerChannel Identification TEDS, Calibration-Identification TEDS, Commands TEDS and the Location and Title TEDS and the Geographic Location TEDS. </xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="TEDSLength" type="stml:UInt32"/>
			<xs:element name="TextTEDSDataBlock" type="stml:TextTEDSDataBlockType"/>
			<xs:element name="Checksum" type="stml:UInt16"/>
		</xs:sequence>
	</xs:complexType>
</xs:schema>
