<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2010 (http://www.altova.com) by Vaclav Snasel (Logica Czech Republic s.r.o.) -->
<!-- edited with XMLSpy v2007 sp2 (http://www.altova.com) by Tomas Silar (LogicaCMG s.r.o.) -->
<!-- edited with XMLSPY v2004 rel. 4 U (http://www.xmlspy.com) by Jakub Jicha (LogicaCMG s.r.o.) -->
<xsd:schema xmlns:ote="http://www.ote-cr.cz/schema/globals" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns="http://www.ote-cr.cz/schema/market/request" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.ote-cr.cz/schema/market/request" elementFormDefault="qualified" attributeFormDefault="unqualified">
	<xsd:import namespace="http://www.ote-cr.cz/schema/globals" schemaLocation="./ote_globals.xsd"/>
	<xsd:element name="ISOTEREQ">
		<xsd:annotation>
			<xsd:documentation xml:lang="CS">Rootovský element obsahující základní údaje o zprávě</xsd:documentation>
			<xsd:documentation xml:lang="EN">Root element containing basic message data</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element name="SenderIdentification" type="ote:SenderIdentificationType">
					<xsd:annotation>
						<xsd:documentation xml:lang="CS">Identifikace odesílatele zprávy</xsd:documentation>
						<xsd:documentation xml:lang="EN">Message sender identification</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element name="ReceiverIdentification" type="ote:ReceiverIdentificationType">
					<xsd:annotation>
						<xsd:documentation xml:lang="CS">Identifikace příjemce zprávy</xsd:documentation>
						<xsd:documentation xml:lang="EN">Message receiver identification</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element name="Document" minOccurs="0">
					<xsd:annotation>
						<xsd:documentation xml:lang="CS">Doplňující kriteria požadavku</xsd:documentation>
						<xsd:documentation xml:lang="EN">Additional criteria for request</xsd:documentation>
					</xsd:annotation>
					<xsd:complexType>
						<xsd:attribute name="market" use="optional">
							<xsd:annotation>
								<xsd:documentation xml:lang="CS">Druh trhu</xsd:documentation>
								<xsd:documentation xml:lang="EN">Market type</xsd:documentation>
							</xsd:annotation>
							<xsd:simpleType>
								<xsd:restriction base="xsd:string">
									<xsd:enumeration value="DT">
										<xsd:annotation>
											<xsd:documentation xml:lang="CS">Denní trh</xsd:documentation>
											<xsd:documentation xml:lang="EN">Day ahead market</xsd:documentation>
										</xsd:annotation>
									</xsd:enumeration>
									<xsd:enumeration value="VDT">
										<xsd:annotation>
											<xsd:documentation xml:lang="CS">Požadavek na vnitrodenní trh</xsd:documentation>
											<xsd:documentation xml:lang="EN">Intra-day market request</xsd:documentation>
										</xsd:annotation>
									</xsd:enumeration>
									<xsd:enumeration value="VT">
										<xsd:annotation>
											<xsd:documentation xml:lang="CS">Vyrovnávací trh</xsd:documentation>
											<xsd:documentation xml:lang="EN">Balancing market</xsd:documentation>
										</xsd:annotation>
									</xsd:enumeration>
									<xsd:enumeration value="VTI">
										<xsd:annotation>
											<xsd:documentation xml:lang="CS">Vyrovnávací trh – Indikativní poptávka</xsd:documentation>
											<xsd:documentation xml:lang="EN">Balancing market - Indicative bid</xsd:documentation>
										</xsd:annotation>
									</xsd:enumeration>
									<xsd:enumeration value="DVS">
										<xsd:annotation>
											<xsd:documentation xml:lang="CS">Dvoustranné smlouvy</xsd:documentation>
											<xsd:documentation xml:lang="EN">Bilateral contracts</xsd:documentation>
										</xsd:annotation>
									</xsd:enumeration>
									<xsd:enumeration value="OKO">
										<xsd:annotation>
											<xsd:documentation xml:lang="CS">Krátkodobý obchod</xsd:documentation>
											<xsd:documentation xml:lang="EN">Short-term trade</xsd:documentation>
										</xsd:annotation>
									</xsd:enumeration>
									<xsd:enumeration value="BTA">
										<xsd:annotation>
											<xsd:documentation xml:lang="CS">BT: aukce</xsd:documentation>
											<xsd:documentation xml:lang="EN">BT: auction</xsd:documentation>
										</xsd:annotation>
									</xsd:enumeration>
									<xsd:enumeration value="BTK">
										<xsd:annotation>
											<xsd:documentation xml:lang="CS">BT: kontinuální</xsd:documentation>
											<xsd:documentation xml:lang="EN">BM: continuous</xsd:documentation>
										</xsd:annotation>
									</xsd:enumeration>
									<xsd:enumeration value="BTKA">
										<xsd:annotation>
											<xsd:documentation xml:lang="CS">BT: aukční i kontinuální</xsd:documentation>
											<xsd:documentation xml:lang="EN">BM: auction and continuous</xsd:documentation>
										</xsd:annotation>
									</xsd:enumeration>
								</xsd:restriction>
							</xsd:simpleType>
						</xsd:attribute>
						<xsd:attribute name="task-id" use="optional">
							<xsd:annotation>
								<xsd:documentation xml:lang="CS">Referenční číslo výměny dat pro účely asynchronní komunikace HHTPs kanálem</xsd:documentation>
								<xsd:documentation xml:lang="EN">Reference number of data exchange for HHTPs channel asynchronous communication</xsd:documentation>
							</xsd:annotation>
							<xsd:simpleType>
								<xsd:restriction base="ote:task_id"/>
							</xsd:simpleType>
						</xsd:attribute>
					</xsd:complexType>
				</xsd:element>
				<xsd:choice>
					<xsd:annotation>
						<xsd:documentation xml:lang="CS">Další část xml dokumentu obsahuje buď informace o OPM nebo obchodu v IS OTE</xsd:documentation>
						<xsd:documentation xml:lang="EN">Following part of xml document contains either PDT information or IS OTE trade information</xsd:documentation>
					</xsd:annotation>
					<xsd:element name="Trade" minOccurs="0" maxOccurs="unbounded">
						<xsd:annotation>
							<xsd:documentation xml:lang="CS">Identifikace obchodu v IS OTE</xsd:documentation>
							<xsd:documentation xml:lang="EN">IS OTE trade indication</xsd:documentation>
						</xsd:annotation>
						<xsd:complexType>
							<xsd:attribute name="id" type="ote:trade_id" use="optional">
								<xsd:annotation>
									<xsd:documentation xml:lang="CS">Identifikátor obchodního pokynu 
BT: název produktu (pro objednávku a trading screen) / id obchodu (pro obchody)</xsd:documentation>
									<xsd:documentation xml:lang="EN">Trade instruction identification 
BM: product name (for order and trading screen) / trade id (for trade)</xsd:documentation>
								</xsd:annotation>
							</xsd:attribute>
							<xsd:attribute name="period" use="optional">
								<xsd:annotation>
									<xsd:documentation xml:lang="CS">Počátek období, pro které jsou požadována data</xsd:documentation>
									<xsd:documentation xml:lang="EN">Start of period, which are the data requested for.</xsd:documentation>
								</xsd:annotation>
								<xsd:simpleType>
									<xsd:restriction base="xsd:string">
										<xsd:pattern value="[123456789]"/>
										<xsd:pattern value="1\d"/>
										<xsd:pattern value="2[012345]"/>
									</xsd:restriction>
								</xsd:simpleType>
							</xsd:attribute>
							<xsd:attribute name="trade-day" type="xsd:date" use="optional">
								<xsd:annotation>
									<xsd:documentation xml:lang="CS">Den obchodu</xsd:documentation>
									<xsd:documentation xml:lang="EN">Trade day</xsd:documentation>
								</xsd:annotation>
							</xsd:attribute>
							<xsd:attribute name="version" use="optional">
								<xsd:annotation>
									<xsd:documentation xml:lang="CS">Číslo verze</xsd:documentation>
									<xsd:documentation xml:lang="EN">Version</xsd:documentation>
								</xsd:annotation>
								<xsd:simpleType>
									<xsd:restriction base="xsd:string">
										<xsd:pattern value="\d{0,5}"/>
									</xsd:restriction>
								</xsd:simpleType>
							</xsd:attribute>
							<xsd:attribute name="trade-state" use="optional">
								<xsd:annotation>
									<xsd:documentation xml:lang="CS">Status/původ nabídky</xsd:documentation>
									<xsd:documentation xml:lang="EN">Status/bid origin</xsd:documentation>
								</xsd:annotation>
								<xsd:simpleType>
									<xsd:restriction base="xsd:string">
										<xsd:enumeration value="A">
											<xsd:annotation>
												<xsd:documentation xml:lang="CS">Akceptovaná nabídka</xsd:documentation>
												<xsd:documentation xml:lang="EN">Accepted bid</xsd:documentation>
											</xsd:annotation>
										</xsd:enumeration>
										<xsd:enumeration value="N">
											<xsd:annotation>
												<xsd:documentation xml:lang="CS">Nabídka</xsd:documentation>
												<xsd:documentation xml:lang="EN">Bid</xsd:documentation>
											</xsd:annotation>
										</xsd:enumeration>
										<xsd:enumeration value="I">
											<xsd:annotation>
												<xsd:documentation xml:lang="CS">Indikativní poptávka</xsd:documentation>
												<xsd:documentation xml:lang="EN">Indicative bid</xsd:documentation>
											</xsd:annotation>
										</xsd:enumeration>
									</xsd:restriction>
								</xsd:simpleType>
							</xsd:attribute>
							<xsd:attribute name="trade-type" use="optional">
								<xsd:annotation>
									<xsd:documentation xml:lang="CS">typ nabídky</xsd:documentation>
									<xsd:documentation xml:lang="EN">Bid type</xsd:documentation>
								</xsd:annotation>
								<xsd:simpleType>
									<xsd:restriction base="xsd:string">
										<xsd:enumeration value="N">
											<xsd:annotation>
												<xsd:documentation xml:lang="CS">Třída nabídky N-nákup</xsd:documentation>
												<xsd:documentation xml:lang="EN">Class of Bid N-purchase</xsd:documentation>
											</xsd:annotation>
										</xsd:enumeration>
										<xsd:enumeration value="P">
											<xsd:annotation>
												<xsd:documentation xml:lang="CS">Třída nabídky P-prodej</xsd:documentation>
												<xsd:documentation xml:lang="EN">Class of Bid P-sale</xsd:documentation>
											</xsd:annotation>
										</xsd:enumeration>
									</xsd:restriction>
								</xsd:simpleType>
							</xsd:attribute>
							<xsd:attribute name="version-a">
								<xsd:annotation>
									<xsd:documentation xml:lang="CS">Verze zúčtování u zobchodovaných pokynů VVT ve zprávě 884</xsd:documentation>
									<xsd:documentation xml:lang="EN">Settlement version for traded orders of balancing and intraday market (for message 884)</xsd:documentation>
								</xsd:annotation>
								<xsd:simpleType>
									<xsd:restriction base="xsd:string">
										<xsd:pattern value="\d{0,5}"/>
									</xsd:restriction>
								</xsd:simpleType>
							</xsd:attribute>
							<xsd:attribute name="product">
								<xsd:annotation>
									<xsd:documentation xml:lang="CS">ID produktu BT</xsd:documentation>
									<xsd:documentation xml:lang="EN">BM product ID</xsd:documentation>
								</xsd:annotation>
								<xsd:simpleType>
									<xsd:restriction base="xsd:string"/>
								</xsd:simpleType>
							</xsd:attribute>
							<xsd:attribute name="trade-session">
								<xsd:annotation>
									<xsd:documentation xml:lang="CS">Obchodní seance</xsd:documentation>
									<xsd:documentation xml:lang="EN">Trade session</xsd:documentation>
								</xsd:annotation>
								<xsd:simpleType>
									<xsd:restriction base="xsd:string">
										<xsd:enumeration value="1">
											<xsd:annotation>
												<xsd:documentation xml:lang="CS">Dopolední</xsd:documentation>
												<xsd:documentation xml:lang="EN">Morning time</xsd:documentation>
											</xsd:annotation>
										</xsd:enumeration>
										<xsd:enumeration value="2">
											<xsd:annotation>
												<xsd:documentation xml:lang="CS">Odpolední</xsd:documentation>
												<xsd:documentation xml:lang="EN">Afernoon</xsd:documentation>
											</xsd:annotation>
										</xsd:enumeration>
									</xsd:restriction>
								</xsd:simpleType>
							</xsd:attribute>
							<xsd:attribute name="trade-market-flag" use="optional">
								<xsd:annotation>
									<xsd:documentation xml:lang="CS">Specifický příznak typu trhu</xsd:documentation>
									<xsd:documentation xml:lang="EN">Specific attribute of trade market flag</xsd:documentation>
								</xsd:annotation>
								<xsd:simpleType>
									<xsd:restriction base="xsd:string">
										<xsd:enumeration value="SPT">
											<xsd:annotation>
												<xsd:documentation xml:lang="CS">Spotová nabídka</xsd:documentation>
												<xsd:documentation xml:lang="EN">Spot order</xsd:documentation>
											</xsd:annotation>
										</xsd:enumeration>
										<xsd:enumeration value="DER">
											<xsd:annotation>
												<xsd:documentation xml:lang="CS">Nabídka FS</xsd:documentation>
												<xsd:documentation xml:lang="EN">FS order</xsd:documentation>
											</xsd:annotation>
										</xsd:enumeration>
									</xsd:restriction>
								</xsd:simpleType>
							</xsd:attribute>
						</xsd:complexType>
					</xsd:element>
				</xsd:choice>
			</xsd:sequence>
			<xsd:attribute name="id" type="ote:msg-id" use="required">
				<xsd:annotation>
					<xsd:documentation xml:lang="CS">Jednoznačný identifikátor zprávy</xsd:documentation>
					<xsd:documentation xml:lang="EN">Unique message identification</xsd:documentation>
				</xsd:annotation>
			</xsd:attribute>
			<xsd:attribute name="message-code" use="required">
				<xsd:annotation>
					<xsd:documentation xml:lang="CS">Upřesnění obsahu zprávy</xsd:documentation>
					<xsd:documentation xml:lang="EN">Message content specification</xsd:documentation>
				</xsd:annotation>
				<xsd:simpleType>
					<xsd:restriction base="xsd:string">
						<xsd:enumeration value="771">
							<xsd:annotation>
								<xsd:documentation xml:lang="CS">Žádost o data definice</xsd:documentation>
								<xsd:documentation xml:lang="EN">Request for definition data</xsd:documentation>
							</xsd:annotation>
						</xsd:enumeration>
						<xsd:enumeration value="781">
							<xsd:annotation>
								<xsd:documentation xml:lang="CS">Žádost o data realizace</xsd:documentation>
								<xsd:documentation xml:lang="EN">Request for realization data</xsd:documentation>
							</xsd:annotation>
						</xsd:enumeration>
						<xsd:enumeration value="791">
							<xsd:annotation>
								<xsd:documentation xml:lang="CS">Žádost o dny, na které je anulovaná defaultní realizace</xsd:documentation>
								<xsd:documentation xml:lang="EN">Request for days, where the default realization is cancelled</xsd:documentation>
							</xsd:annotation>
						</xsd:enumeration>
						<xsd:enumeration value="831">
							<xsd:annotation>
								<xsd:documentation xml:lang="CS">Dotaz na data vlastní nabídky (zjištění stavu) </xsd:documentation>
								<xsd:documentation xml:lang="EN">Request for DM bid data providing</xsd:documentation>
							</xsd:annotation>
						</xsd:enumeration>
						<xsd:enumeration value="864">
							<xsd:annotation>
								<xsd:documentation xml:lang="CS">Dotaz na objednávky</xsd:documentation>
								<xsd:documentation xml:lang="EN">Request for orders</xsd:documentation>
							</xsd:annotation>
						</xsd:enumeration>
						<xsd:enumeration value="874">
							<xsd:annotation>
								<xsd:documentation xml:lang="CS">Dotaz na bochody (vlastní)</xsd:documentation>
								<xsd:documentation xml:lang="EN">Request for own trades</xsd:documentation>
							</xsd:annotation>
						</xsd:enumeration>
						<xsd:enumeration value="877">
							<xsd:annotation>
								<xsd:documentation xml:lang="CS">BT: Dotaz na popis produktu</xsd:documentation>
								<xsd:documentation xml:lang="EN">BM: Request for product master record</xsd:documentation>
							</xsd:annotation>
						</xsd:enumeration>
						<xsd:enumeration value="881">
							<xsd:annotation>
								<xsd:documentation xml:lang="CS">Žádost o poskytnutí dat nabídky</xsd:documentation>
								<xsd:documentation xml:lang="EN">Request for bid data providing</xsd:documentation>
							</xsd:annotation>
						</xsd:enumeration>
						<xsd:enumeration value="884">
							<xsd:annotation>
								<xsd:documentation xml:lang="CS">Požadavek na výsledné ceny zobchodovaných pokynů na VVT</xsd:documentation>
								<xsd:documentation xml:lang="EN">Request for final prices of traded orders on balanacing and intraday market</xsd:documentation>
							</xsd:annotation>
						</xsd:enumeration>
						<xsd:enumeration value="891">
							<xsd:annotation>
								<xsd:documentation xml:lang="CS">Žádost o poskytnutí dat vývěsky</xsd:documentation>
								<xsd:documentation xml:lang="EN">Request for notice board data providing</xsd:documentation>
							</xsd:annotation>
						</xsd:enumeration>
						<xsd:enumeration value="901">
							<xsd:annotation>
								<xsd:documentation xml:lang="CS">Žádost o výsledky trhu</xsd:documentation>
								<xsd:documentation xml:lang="EN">Request for market results</xsd:documentation>
							</xsd:annotation>
						</xsd:enumeration>
						<xsd:enumeration value="911">
							<xsd:annotation>
								<xsd:documentation xml:lang="CS">Žádost o zjištění stavu obchodní hodiny</xsd:documentation>
								<xsd:documentation xml:lang="EN">Request for state of trading hour</xsd:documentation>
							</xsd:annotation>
						</xsd:enumeration>
						<xsd:enumeration value="934">
							<xsd:annotation>
								<xsd:documentation xml:lang="CS">Dotaz na výsledky DT za oblast</xsd:documentation>
								<xsd:documentation xml:lang="EN">Request for DM results for market area</xsd:documentation>
							</xsd:annotation>
						</xsd:enumeration>
						<xsd:enumeration value="937">
							<xsd:annotation>
								<xsd:documentation xml:lang="CS">Dotaz na výsledky koordinace DT po SZ </xsd:documentation>
								<xsd:documentation xml:lang="EN">Request for results of market coordination per balancing subject</xsd:documentation>
							</xsd:annotation>
						</xsd:enumeration>
						<xsd:enumeration value="941">
							<xsd:annotation>
								<xsd:documentation xml:lang="CS">Požadavek na data - Celkový plán smluvených hodnot</xsd:documentation>
								<xsd:documentation xml:lang="EN">Data request - Complete plan of negotiated values</xsd:documentation>
							</xsd:annotation>
						</xsd:enumeration>
						<xsd:enumeration value="944">
							<xsd:annotation>
								<xsd:documentation xml:lang="CS">Požadavek na marginální ceny DT</xsd:documentation>
								<xsd:documentation xml:lang="EN">Request for daily market marginal prices</xsd:documentation>
							</xsd:annotation>
						</xsd:enumeration>
						<xsd:enumeration value="951">
							<xsd:annotation>
								<xsd:documentation xml:lang="CS">Požadavek na data - Zúčtování po hodinách</xsd:documentation>
								<xsd:documentation xml:lang="EN">Data request - Hourly settlement</xsd:documentation>
							</xsd:annotation>
						</xsd:enumeration>
						<xsd:enumeration value="961">
							<xsd:annotation>
								<xsd:documentation xml:lang="CS">Požadavek na data - Zúčtování za den</xsd:documentation>
								<xsd:documentation xml:lang="EN">Data request - Daily settlement</xsd:documentation>
							</xsd:annotation>
						</xsd:enumeration>
						<xsd:enumeration value="964">
							<xsd:annotation>
								<xsd:documentation xml:lang="CS">Požadavek na data - Statistická data zúčtování odchylek</xsd:documentation>
								<xsd:documentation xml:lang="EN">Data request - Statistic data of imbalances settlement</xsd:documentation>
							</xsd:annotation>
						</xsd:enumeration>
						<xsd:enumeration value="GD7">
							<xsd:annotation>
								<xsd:documentation xml:lang="CS">Data vlastní nabídky - Zjištění stavu (DTP)</xsd:documentation>
								<xsd:documentation xml:lang="EN">Own bid data - State detection (DMG)</xsd:documentation>
							</xsd:annotation>
						</xsd:enumeration>
						<xsd:enumeration value="GDD">
							<xsd:annotation>
								<xsd:documentation xml:lang="CS">Požadavek na data - Marginální ceny DT (DTP)</xsd:documentation>
								<xsd:documentation xml:lang="EN">Request - DM marginal prices (DMG)</xsd:documentation>
							</xsd:annotation>
						</xsd:enumeration>
						<xsd:enumeration value="GSD">
							<xsd:annotation>
								<xsd:documentation xml:lang="CS">Požadavek na data - Zúčtování za den (DTP)</xsd:documentation>
								<xsd:documentation xml:lang="EN">Request - Day settlement (DMG)</xsd:documentation>
							</xsd:annotation>
						</xsd:enumeration>
						<xsd:enumeration value="GV7">
							<xsd:annotation>
								<xsd:documentation xml:lang="CS">Data vlastní objednávky - zjištění stavu (VDP)</xsd:documentation>
								<xsd:documentation xml:lang="EN">One´s own order data - state request (IDMG)</xsd:documentation>
							</xsd:annotation>
						</xsd:enumeration>
						<xsd:enumeration value="GVC">
							<xsd:annotation>
								<xsd:documentation xml:lang="CS">Dotaz na obchody - vlastní (VDP)</xsd:documentation>
								<xsd:documentation xml:lang="EN">Trade request - one´s own (IDMG)</xsd:documentation>
							</xsd:annotation>
						</xsd:enumeration>
						<xsd:enumeration value="GVF">
							<xsd:annotation>
								<xsd:documentation xml:lang="CS">Dotaz na data produktu (VDP)</xsd:documentation>
								<xsd:documentation xml:lang="EN">Product data request (IDMG)</xsd:documentation>
							</xsd:annotation>
						</xsd:enumeration>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:attribute>
			<xsd:attribute name="date-time" type="xsd:dateTime" use="required">
				<xsd:annotation>
					<xsd:documentation xml:lang="CS">Datum a čas zprávy</xsd:documentation>
					<xsd:documentation xml:lang="EN">Date and time of message</xsd:documentation>
				</xsd:annotation>
			</xsd:attribute>
			<xsd:attribute name="dtd-version" type="xsd:string" use="required" fixed="1">
				<xsd:annotation>
					<xsd:documentation xml:lang="CS">Rezervováno pro pozdější verze. Nyní konstanta '1'</xsd:documentation>
					<xsd:documentation xml:lang="EN">Reserved for incoming versions. So far a constant '1'</xsd:documentation>
				</xsd:annotation>
			</xsd:attribute>
			<xsd:attribute name="dtd-release" type="xsd:string" use="required" fixed="1">
				<xsd:annotation>
					<xsd:documentation xml:lang="CS">Rezervováno pro pozdější verze. Nyní konstanta '1'</xsd:documentation>
					<xsd:documentation xml:lang="EN">Reserved for incoming versions. So far a constant '1'</xsd:documentation>
				</xsd:annotation>
			</xsd:attribute>
			<xsd:attribute name="language" type="ote:language" use="optional">
				<xsd:annotation>
					<xsd:documentation xml:lang="CS">Jazyk zprávy</xsd:documentation>
					<xsd:documentation xml:lang="EN">Message language</xsd:documentation>
				</xsd:annotation>
			</xsd:attribute>
		</xsd:complexType>
	</xsd:element>
</xsd:schema>
