<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:aei="tag:atsc.org,2016:XMLSchemas/ATSC3/AppSignaling/AEI/1.0/" targetNamespace="tag:atsc.org,2016:XMLSchemas/ATSC3/AppSignaling/AEI/1.0/" elementFormDefault="qualified">
	<xs:element name="AEI" type="aei:AEIType"/>
	<xs:complexType name="AEIType">
		<xs:sequence>
			<xs:element name="EventStream" type="aei:EventStreamType" maxOccurs="unbounded"/>
			<xs:any namespace="##other" processContents="strict" minOccurs="0" maxOccurs="unbounded"/>
		</xs:sequence>
		<xs:attribute name="assetId" type="xs:string" use="required"/>
		<xs:attribute name="mpuSeqNum" type="xs:unsignedInt" use="required"/>
		<xs:attribute name="timeStamp" type="xs:unsignedLong" use="required"/>
		<xs:anyAttribute processContents="strict"/>
	</xs:complexType>
	<xs:complexType name="EventStreamType">
		<xs:sequence>
			<xs:element name="Event" type="aei:EventType" maxOccurs="unbounded"/>
			<xs:any namespace="##other" processContents="strict" minOccurs="0" maxOccurs="unbounded"/>
		</xs:sequence>
		<xs:attribute name="schemeIdUri" type="xs:anyURI" use="required"/>
		<xs:attribute name="value" type="xs:string"/>
		<xs:attribute name="timescale" type="aei:TimescaleType" default="1"/>
		<xs:anyAttribute processContents="strict"/>
	</xs:complexType>
	<xs:complexType name="EventType">
		<xs:simpleContent>
			<xs:extension base="xs:string">
				<xs:attribute name="presentationTime" type="xs:unsignedLong" default="0"/>
				<xs:attribute name="duration" type="xs:unsignedLong"/>
				<xs:attribute name="id" type="xs:unsignedInt"/>
				<xs:anyAttribute processContents="strict"/>
			</xs:extension>
		</xs:simpleContent>
	</xs:complexType>
	<xs:simpleType name="TimescaleType">
		<xs:restriction base="xs:unsignedInt">
			<xs:minInclusive value="1"/>
		</xs:restriction>
	</xs:simpleType>
</xs:schema>
