<?xml version="1.0" encoding="UTF-8"?>
<!-- DA Security Constraints XML Schema -->
<xs:schema xmlns="http://www.ieso.ca/schema" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.ieso.ca/schema" elementFormDefault="qualified">
	<xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xmlspace.xsd"/>
	<!-- Following stuff is report specific -->
	<xs:include schemaLocation="Document_r1.xsd"/>
	<xs:element name="DocBody">
		<xs:annotation>
			<xs:documentation>Document Body</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:sequence>
				<xs:element name="DeliveryDate" type="xs:date">
					<xs:annotation>
						<xs:documentation>The Date for which this DA data applies</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="HourlyConstraint" maxOccurs="unbounded">
					<xs:annotation>
						<xs:documentation>Groups all the Delivery hour and Constraint names for a Delivery Date</xs:documentation>
					</xs:annotation>
					<xs:complexType>
						<xs:sequence>
							<xs:element name="DeliveryHour" type="Hour1To24" maxOccurs="24">
								<xs:annotation>
									<xs:documentation>The Hour for which this data applies</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="Constraint" type="xs:string">
								<xs:annotation>
									<xs:documentation>Binding security constraint for the DA run</xs:documentation>
								</xs:annotation>
							</xs:element>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<!-- Delivery hour indicates hour ending at (1 to 24)-->
	<xs:simpleType name="Hour1To24">
		<xs:annotation>
			<xs:documentation>The Hour for which this data applies (1 to 24)</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:integer">
			<xs:minInclusive value="1"/>
			<xs:maxInclusive value="24"/>
		</xs:restriction>
	</xs:simpleType>
</xs:schema>
