<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2010 (http://www.altova.com) by Vaclav Snasel (Logica Czech Republic s.r.o.) -->
<xs:schema xmlns="http://www.ote-cr.cz/schema/sfvot/emgstate" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ote="http://www.ote-cr.cz/schema/globals" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" targetNamespace="http://www.ote-cr.cz/schema/sfvot/emgstate" elementFormDefault="qualified" attributeFormDefault="unqualified">
	<xs:import namespace="http://www.ote-cr.cz/schema/globals" schemaLocation="./ote_globals.xsd"/>
	<xs:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="./xmldsig-core-schema.xsd"/>
	<xs:element name="SFVOTEMGSTATE">
		<xs:annotation>
			<xs:documentation xml:lang="CS">Hlavni element spolecny pro vsechny financni reporty</xs:documentation>
			<xs:documentation xml:lang="EN">Root element containing basic message data</xs:documentation>
		</xs:annotation>
		<xs:complexType>
			<xs:sequence>
				<xs:element name="SenderIdentification" type="ote:SenderIdentificationType">
					<xs:annotation>
						<xs:documentation xml:lang="CS">Identifikace odesilatele zpravy, tzn. OTE, a.s.</xs:documentation>
						<xs:documentation xml:lang="EN">EAN13 Sender identification - OTE, a.s.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="ReceiverIdentification" type="ote:ReceiverIdentificationType">
					<xs:annotation>
						<xs:documentation xml:lang="CS">Identifikace prijemce, resp. odesilatele pozadavku</xs:documentation>
						<xs:documentation xml:lang="EN">Message receiver identification</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="Reference" type="ote:ReferenceType" minOccurs="0">
					<xs:annotation>
						<xs:documentation xml:lang="CS">Reference na predeslou zpravu. Pokud neni element obsazen v cilovem XML nebyl report generovan na zakladi XML pozadavku.</xs:documentation>
						<xs:documentation xml:lang="EN">Reference to the previous message, if any.</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="EmgState">
					<xs:annotation>
						<xs:documentation xml:lang="CS">Stav nouze</xs:documentation>
						<xs:documentation xml:lang="EN">Emergency State</xs:documentation>
					</xs:annotation>
					<xs:complexType>
						<xs:sequence>
							<xs:element name="Rut" minOccurs="0" maxOccurs="unbounded">
								<xs:annotation>
									<xs:documentation xml:lang="CS">Data participanta</xs:documentation>
									<xs:documentation xml:lang="EN">Participant data</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:sequence>
										<xs:element name="Data" maxOccurs="unbounded">
											<xs:complexType>
												<xs:attribute name="tradeDate" type="xs:date">
													<xs:annotation>
														<xs:documentation xml:lang="CS">Datum obchodu</xs:documentation>
														<xs:documentation xml:lang="EN">Trade date</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="tradeType" use="required">
													<xs:annotation>
														<xs:documentation xml:lang="CS">
                                                            Typ obchodu 
                                                            EMG - Stav nouze CR,
                                                            EMD - Stav nouze DT,
                                                            EMV - Stav nouze VDT 
                                                            EMA - Stav nouze IDA
                                                        </xs:documentation>
														<xs:documentation xml:lang="EN">
                                                            Trade type 
                                                            EMG - Emergency state CZ,
                                                            EMD - Emergency state DM,
                                                            EMV - Emergency state IM,
                                                            EMA - Emergency state IDA
                                                        </xs:documentation>
													</xs:annotation>
													<xs:simpleType>
														<xs:restriction base="xs:string">
															<xs:enumeration value="EMG"/>
															<xs:enumeration value="EMD"/>
															<xs:enumeration value="EMV"/>
															<xs:enumeration value="EMA"/>
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
												<xs:attribute name="version" use="optional">
													<xs:annotation>
														<xs:documentation xml:lang="CS">Typ zuctovani (1 - verze 1, 2 - verze 2)</xs:documentation>
														<xs:documentation xml:lang="EN">Settlement type (1 - version 1, 2 - version 2)</xs:documentation>
													</xs:annotation>
													<xs:simpleType>
														<xs:restriction base="xs:integer">
															<xs:enumeration value="1"/>
															<xs:enumeration value="2"/>
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
												<xs:attribute name="type" use="optional">
													<xs:annotation>
														<xs:documentation xml:lang="CS">Typ polozky (0 - nová hodnota, 1 - oprava verze 1)</xs:documentation>
														<xs:documentation xml:lang="EN">Item type (0 - new value, 2 - correction version 1)</xs:documentation>
													</xs:annotation>
													<xs:simpleType>
														<xs:restriction base="xs:integer">
															<xs:enumeration value="0"/>
															<xs:enumeration value="1"/>
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
												<xs:attribute name="amountNet" type="xs:decimal">
													<xs:annotation>
														<xs:documentation xml:lang="CS">Castka bez DPH</xs:documentation>
														<xs:documentation xml:lang="EN">The amount without VAT</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="amount" type="xs:decimal">
													<xs:annotation>
														<xs:documentation xml:lang="CS">Castka s dani</xs:documentation>
														<xs:documentation xml:lang="EN">The amount with VAT</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="etax" type="xs:decimal">
													<xs:annotation>
														<xs:documentation xml:lang="CS">Dan z elektriny</xs:documentation>
														<xs:documentation xml:lang="EN">The electricity tax</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="vat" type="xs:decimal">
													<xs:annotation>
														<xs:documentation xml:lang="CS">DPH</xs:documentation>
														<xs:documentation xml:lang="EN">VAT</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="currency">
													<xs:annotation>
														<xs:documentation xml:lang="CS">Mena</xs:documentation>
														<xs:documentation xml:lang="EN">Currency</xs:documentation>
													</xs:annotation>
													<xs:simpleType>
														<xs:restriction base="xs:string">
															<xs:enumeration value="CZK"/>
															<xs:enumeration value="EUR"/>
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
												<xs:attribute name="volume" type="xs:decimal">
													<xs:annotation>
														<xs:documentation xml:lang="CS">Mnozstvi</xs:documentation>
														<xs:documentation xml:lang="EN">Volume</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="contractType">
													<xs:annotation>
														<xs:documentation xml:lang="CS">Typ kontraktu (0 nákup, 1 prodej)</xs:documentation>
														<xs:documentation xml:lang="EN">Contract type (0 buy, 1 sell)</xs:documentation>
													</xs:annotation>
													<xs:simpleType>
														<xs:restriction base="xs:integer">
															<xs:annotation>
																<xs:documentation xml:lang="CS"/>
																<xs:documentation xml:lang="EN"/>
															</xs:annotation>
															<xs:enumeration value="0"/>
															<xs:enumeration value="1"/>
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
											</xs:complexType>
										</xs:element>
										<xs:element name="Summary" maxOccurs="unbounded">
											<xs:annotation>
												<xs:documentation xml:lang="CS">Sumarni data participanta</xs:documentation>
												<xs:documentation xml:lang="EN">Participant summary data</xs:documentation>
											</xs:annotation>
											<xs:complexType>
												<xs:attribute name="contractType">
													<xs:annotation>
														<xs:documentation xml:lang="CS">Typ kontraktu (0 nákup, 1 prodej)</xs:documentation>
														<xs:documentation xml:lang="EN">Contract type (0 buy, 1 sell)</xs:documentation>
													</xs:annotation>
													<xs:simpleType>
														<xs:restriction base="xs:integer">
															<xs:annotation>
																<xs:documentation xml:lang="CS"/>
																<xs:documentation xml:lang="EN"/>
															</xs:annotation>
															<xs:enumeration value="0"/>
															<xs:enumeration value="1"/>
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
												<xs:attribute name="version" use="optional">
													<xs:annotation>
														<xs:documentation xml:lang="CS">Typ zuctovani (1 - verse 1, 2 - verze 2)</xs:documentation>
														<xs:documentation xml:lang="EN">Settlement type (1 - version 1, 2 - version 2)</xs:documentation>
													</xs:annotation>
													<xs:simpleType>
														<xs:restriction base="xs:integer">
															<xs:enumeration value="1"/>
															<xs:enumeration value="2"/>
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
												<xs:attribute name="type" use="optional">
													<xs:annotation>
														<xs:documentation xml:lang="CS">Typ polozky (0 - nová hodnota, 1 - oprava verze 1)</xs:documentation>
														<xs:documentation xml:lang="EN">Item type (0 - new value, 2 - correction of version 1)</xs:documentation>
													</xs:annotation>
													<xs:simpleType>
														<xs:restriction base="xs:integer">
															<xs:enumeration value="0"/>
															<xs:enumeration value="1"/>
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
												<xs:attribute name="amountNet" type="xs:decimal">
													<xs:annotation>
														<xs:documentation xml:lang="CS">Castka bez DPH</xs:documentation>
														<xs:documentation xml:lang="EN">The amount without VAT</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="amount" type="xs:decimal">
													<xs:annotation>
														<xs:documentation xml:lang="CS">Castka s dani</xs:documentation>
														<xs:documentation xml:lang="EN">The amount with VAT</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="etax" type="xs:decimal">
													<xs:annotation>
														<xs:documentation xml:lang="CS">Dan z elektriny</xs:documentation>
														<xs:documentation xml:lang="EN">The electricity tax</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="vat" type="xs:decimal">
													<xs:annotation>
														<xs:documentation xml:lang="CS">DPH</xs:documentation>
														<xs:documentation xml:lang="EN">VAT</xs:documentation>
													</xs:annotation>
												</xs:attribute>
												<xs:attribute name="currency">
													<xs:annotation>
														<xs:documentation xml:lang="CS">Mena</xs:documentation>
														<xs:documentation xml:lang="EN">Currency</xs:documentation>
													</xs:annotation>
													<xs:simpleType>
														<xs:restriction base="xs:string">
															<xs:enumeration value="CZK"/>
															<xs:enumeration value="EUR"/>
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
												<xs:attribute name="volume" type="xs:decimal">
													<xs:annotation>
														<xs:documentation xml:lang="CS">Mnozstvi</xs:documentation>
														<xs:documentation xml:lang="EN">Volume</xs:documentation>
													</xs:annotation>
												</xs:attribute>
											</xs:complexType>
										</xs:element>
									</xs:sequence>
									<xs:attribute name="dic" type="xs:string">
										<xs:annotation>
											<xs:documentation xml:lang="CS">DIC</xs:documentation>
											<xs:documentation xml:lang="EN">TAX number</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="ean" type="xs:string">
										<xs:annotation>
											<xs:documentation xml:lang="CS">EAN identifikace participanta</xs:documentation>
											<xs:documentation xml:lang="EN">EAN participant identification</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="ico" type="xs:string">
										<xs:annotation>
											<xs:documentation xml:lang="CS">IC</xs:documentation>
											<xs:documentation xml:lang="EN">Registration number</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="name" type="xs:string">
										<xs:annotation>
											<xs:documentation xml:lang="CS">Zkraceny nazev ucastnika trhu</xs:documentation>
											<xs:documentation xml:lang="EN">The participant's short name</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="particId" type="xs:integer">
										<xs:annotation>
											<xs:documentation xml:lang="CS">Jednoznacny identifikator ucastnika trhu</xs:documentation>
											<xs:documentation xml:lang="EN">The participant's unique id</xs:documentation>
										</xs:annotation>
									</xs:attribute>
								</xs:complexType>
							</xs:element>
						</xs:sequence>
						<xs:attribute name="date" type="xs:dateTime" use="required">
							<xs:annotation>
								<xs:documentation xml:lang="CS">Cas generovani</xs:documentation>
								<xs:documentation xml:lang="EN">Production timestamp</xs:documentation>
							</xs:annotation>
						</xs:attribute>
						<xs:attribute name="dateFrom" type="xs:dateTime" use="required">
							<xs:annotation>
								<xs:documentation xml:lang="CS">Datum od</xs:documentation>
								<xs:documentation xml:lang="EN">Date from</xs:documentation>
							</xs:annotation>
						</xs:attribute>
						<xs:attribute name="dateTo" type="xs:dateTime" use="required">
							<xs:annotation>
								<xs:documentation xml:lang="CS">Datum do</xs:documentation>
								<xs:documentation xml:lang="EN">Date to</xs:documentation>
							</xs:annotation>
						</xs:attribute>
						<xs:attribute name="title" type="xs:string" use="required">
							<xs:annotation>
								<xs:documentation xml:lang="CS">Nazev reportu</xs:documentation>
								<xs:documentation xml:lang="EN">Report title</xs:documentation>
							</xs:annotation>
						</xs:attribute>
					</xs:complexType>
				</xs:element>
				<xs:element ref="ds:Signature" minOccurs="0"/>
			</xs:sequence>
			<xs:attribute name="answer-required" type="xs:boolean" use="required">
				<xs:annotation>
					<xs:documentation xml:lang="CS">Indikace pozadavku na odpoved</xs:documentation>
					<xs:documentation xml:lang="EN">Indication of request for response 1=YES, 0=NO</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="date-time" type="xs:dateTime" use="required">
				<xs:annotation>
					<xs:documentation xml:lang="CS">Datum a cas zpravy</xs:documentation>
					<xs:documentation xml:lang="EN">Date and time of message</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="dtd-release" type="xs:string" use="required" fixed="1">
				<xs:annotation>
					<xs:documentation xml:lang="CS">Rezervovano pro pristi verze. Zatim konstanta '1'</xs:documentation>
					<xs:documentation xml:lang="EN">Reserved for incoming versions. So far a constant '1'</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="dtd-version" type="xs:unsignedByte" use="required" fixed="1">
				<xs:annotation>
					<xs:documentation xml:lang="CS">Rezervovano pro pristi verze. Zatim konstanta '1'</xs:documentation>
					<xs:documentation xml:lang="EN">Reserved for incoming versions; so far a constant '1'</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="id" type="ote:msg-id" use="required">
				<xs:annotation>
					<xs:documentation xml:lang="CS">Identifikator zpravy</xs:documentation>
					<xs:documentation xml:lang="EN">Message Identification</xs:documentation>
				</xs:annotation>
			</xs:attribute>
			<xs:attribute name="message-code" use="required">
				<xs:annotation>
					<xs:documentation xml:lang="CS">Kod zpravy upresnujici obsah zpravy.</xs:documentation>
					<xs:documentation xml:lang="EN">Message code that specifies the message content.</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:enumeration value="488">
							<xs:annotation>
								<xs:documentation xml:lang="CS">Stav nouze - CR</xs:documentation>
								<xs:documentation xml:lang="EN">Emergency state - CZ</xs:documentation>
							</xs:annotation>
						</xs:enumeration>
						<xs:enumeration value="491">
							<xs:annotation>
								<xs:documentation xml:lang="CS">Stav nouze - Vyporadani exportu/importu z DT</xs:documentation>
								<xs:documentation xml:lang="EN">Emergency state - day-ahead market</xs:documentation>
							</xs:annotation>
						</xs:enumeration>
						<xs:enumeration value="494">
							<xs:annotation>
								<xs:documentation xml:lang="CS">Stav nouze - Vyporadani exportu/importu z VDT</xs:documentation>
								<xs:documentation xml:lang="EN">Emergency state - instraday market</xs:documentation>
							</xs:annotation>
						</xs:enumeration>
						<xs:enumeration value="506">
							<xs:annotation>
								<xs:documentation xml:lang="CS">Stav nouze - Vypořádání exportu/importu z IDA </xs:documentation>
								<xs:documentation xml:lang="EN">Emergency state - Emergency state - intraday auctions</xs:documentation>
							</xs:annotation>
						</xs:enumeration>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
		</xs:complexType>
	</xs:element>
</xs:schema>
