<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:rsat="tag:atsc.org,2018:XMLSchemas/ATSC/Delivery/RSAT/1.0/" targetNamespace="tag:atsc.org,2018:XMLSchemas/ATSC/Delivery/RSAT/1.0/" elementFormDefault="qualified">
	<xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="W3C/xml.xsd"/>
	<xs:element name="RSAT" type="rsat:RSATType"/>
	<xs:complexType name="RSATType">
		<xs:sequence>
			<xs:element name="Service" type="rsat:ServiceType" minOccurs="0" maxOccurs="unbounded"/>
			<xs:any namespace="##other" processContents="strict" minOccurs="0" maxOccurs="unbounded"/>
		</xs:sequence>
		<xs:attribute name="RSATInetURL" type="xs:anyURI"/>
		<xs:anyAttribute processContents="strict"/>
	</xs:complexType>
	<xs:complexType name="ServiceType">
		<xs:sequence>
			<xs:element name="Update" type="rsat:UpdateType" minOccurs="0" maxOccurs="unbounded"/>
			<xs:any namespace="##other" processContents="strict" minOccurs="0" maxOccurs="unbounded"/>
		</xs:sequence>
		<xs:attribute name="preferred" type="xs:boolean" default="false"/>
		<xs:attribute name="majorChannelNo" type="rsat:ChannelNumberType"/>
		<xs:attribute name="minorChannelNo" type="rsat:ChannelNumberType"/>
		<xs:attribute name="frequency" type="xs:float"/>
		<xs:attribute name="broadcastType" type="rsat:BroadcastTypeType"/>
		<xs:attribute name="validUntil" type="xs:dateTime"/>
		<xs:anyAttribute processContents="strict"/>
	</xs:complexType>
	<xs:complexType name="UpdateType">
		<xs:attribute name="preferred" type="xs:boolean" default="false"/>
		<xs:attribute name="majorChannelNo" type="rsat:ChannelNumberType"/>
		<xs:attribute name="minorChannelNo" type="rsat:ChannelNumberType"/>
		<xs:attribute name="frequency" type="xs:float"/>
		<xs:attribute name="broadcastType" type="rsat:BroadcastTypeType"/>
		<xs:attribute name="validFrom" type="xs:dateTime"/>
		<xs:anyAttribute processContents="strict"/>
	</xs:complexType>
	<xs:simpleType name="BroadcastTypeType">
		<xs:restriction base="xs:token">
			<xs:enumeration value="ATSC1.0"/>
			<xs:enumeration value="ATSC3.0"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="ChannelNumberType">
		<xs:restriction base="xs:unsignedShort">
			<xs:minInclusive value="1"/>
			<xs:maxInclusive value="999"/>
		</xs:restriction>
	</xs:simpleType>
</xs:schema>
