<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns="urn:cz:gov:cuzk:iskn:content:geo:request:3.1" 
	xmlns:geo="urn:cz:gov:cuzk:iskn:types:common:geo:3.1" 
	xmlns:xs="http://www.w3.org/2001/XMLSchema" 
	xmlns:ds="http://www.w3.org/2000/09/xmldsig#" 
	xmlns:bt="urn:cz:gov:cuzk:iskn:types:base:3.1" 
	xmlns:ct="urn:cz:gov:cuzk:iskn:types:common:3.1" 
	targetNamespace="urn:cz:gov:cuzk:iskn:content:geo:request:3.1" 
	elementFormDefault="qualified" version="3.1.0">

	<xs:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="../xmldsig_core_schema.xsd"/>
	<xs:import namespace="urn:cz:gov:cuzk:iskn:types:base:3.1" schemaLocation="../baseTypes_v3_1.xsd"/>
	<xs:import namespace="urn:cz:gov:cuzk:iskn:types:common:3.1" schemaLocation="../commonTypes_v3_1.xsd"/>
	<xs:import namespace="urn:cz:gov:cuzk:iskn:types:common:geo:3.1" schemaLocation="../geo/geoCommonTypes_v3_1.xsd"/>

	<xs:include schemaLocation="podaniIntCommon_v3_1.xsd"/>

	<xs:element name="enx" type="ENXType"/>

	<xs:complexType name="ENXType">
    	<xs:annotation>
		   <xs:documentation xml:lang="cs">Komplexní typ XML návrhu s uvedením všech možných typů elementů.</xs:documentation>
		</xs:annotation>			  
		<xs:sequence>
			<xs:element name="typyRizeni" type="TypRizeniENXSeznam1Type" minOccurs="0"/>

			<xs:element name="predmety" type="PredmetRizeniSeznamType"/>
			<xs:element name="udajeKPlatbe" type="UdajeKPlatbeType" minOccurs="0"/>
			<xs:element name="extIdentifikace" type="ExtIdentifikaceType" minOccurs="0"/>

			<xs:element name="pracoviste" type="PracovisteType"/>
			<xs:element name="katastralniUzemi" type="ct:KatastralniUzemiSeznamType" minOccurs="0"/>
			<xs:element name="poznamky" type="PoznamkaSeznamType" minOccurs="0"/>

			<xs:element name="parcely" type="ct:IdParcelySeznamType" minOccurs="0"/>
			<xs:element name="stavby" type="ct:IdStavbySeznamType" minOccurs="0"/>
			<xs:element name="jednotky" type="ct:IdJednotkySeznamType" minOccurs="0"/>
			<xs:element name="pravoStavby" type="ct:IdPravaStavbySeznamType" minOccurs="0"/>

			<xs:element name="mapovyList" type="geo:MapovyListType" minOccurs="0" maxOccurs="unbounded"/>
			<xs:element name="ucelZmeny" type="geo:UcelZmenyType" minOccurs="0" maxOccurs="unbounded"/>

			<xs:element name="rizeniTyp" type="bt:KodTypuRizeniType" minOccurs="0"/>
			<xs:element name="poradoveCislo" type="bt:PoradoveCisloRizeniType" minOccurs="0"/>
			<xs:element name="rok" type="bt:RokRizeniType" minOccurs="0"/>
			<xs:element name="praresKod" type="bt:KodPracovisteType" minOccurs="0"/>

			<xs:element name="ucastnici" type="UcastnikSeznamType"/>
			<xs:element name="listiny" type="ListinaENXSeznamType" minOccurs="0"/>

			<xs:element name="rizeniPM" type="ct:RizeniIdentType"/>
			<xs:element name="zpusobUhradySpravnihoPoplatku" type="ZpusobUhradySpravnihoPoplatkuGPType"/>
			<xs:element name="zpusobPrevzeti" type="ZpusobPrevzetiGPType"/>

			<xs:element ref="ds:Signature" minOccurs="0"/>
		</xs:sequence>
	</xs:complexType>

	<xs:complexType name="TypRizeniENXSeznam1Type">
	  <xs:annotation>
		   <xs:documentation xml:lang="cs">Seznam jednoho prvku typu řízení ENX.</xs:documentation>
		</xs:annotation> 
		<xs:sequence>
			<xs:element name="typ" type="TypRizeniENXType"/>
		</xs:sequence>
	</xs:complexType>

	<xs:simpleType name="TypRizeniENXType">
		<xs:annotation>
			<xs:documentation xml:lang="cs">Výčtový typ pro typy řízení v ENX.</xs:documentation>
		</xs:annotation>
		<xs:restriction base="bt:KodTypuRizeniType">
			<xs:enumeration value="ZPP"/>
			<xs:enumeration value="ZPV"/>
			<xs:enumeration value="ZPZ"/>
			<xs:enumeration value="ZPG"/>
			<xs:enumeration value="ZDP"/>
		</xs:restriction>
	</xs:simpleType>

	<xs:complexType name="UcastnikSeznamType">
	  <xs:annotation>
		   <xs:documentation xml:lang="cs">Seznam účastníků.</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="ucastnik" type="UcastnikType" maxOccurs="unbounded"/>
		</xs:sequence>
		<xs:attribute name="num" type="xs:nonNegativeInteger"/>
	</xs:complexType>

	<xs:complexType name="UcastnikType">
		<xs:annotation>
			<xs:documentation xml:lang="cs">Účastník řízení.</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="ucastnikDruh" type="bt:DruhUcastnikaType"/>
			<xs:element name="ucastnikTyp" type="KodTypuUcastnikaENXType" maxOccurs="unbounded"/>
			<xs:choice>
				<xs:group ref="FOParametryGroup"/>
				<xs:group ref="POParametryGroup"/>
			</xs:choice>
			<xs:group ref="UcastnikOstatniGroup"/>
		</xs:sequence>
		<xs:attribute name="id" type="xs:ID">
			<xs:annotation>
				<xs:documentation xml:lang="cs">POZOR! V současné době se nevyužívá. Jednoznačný identifikátor účastníka v rámci požadavku. Identifikátor slouží k propojení dvou účastníků v případě, že jeden účastník je zastupován jiným. V jiných případech nemá význam.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="zastupovan" type="xs:IDREF">
			<xs:annotation>
				<xs:documentation xml:lang="cs">POZOR! V současné době se nevyužívá. Odkaz na jiného účastníka řízení v rámci požadavku, kterým je aktuální účastník zastupován.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="popis" type="bt:TextType">
			<xs:annotation>
				<xs:documentation xml:lang="cs">POZOR! V současné době se nevyužívá. Popis účastníka.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
	</xs:complexType>

	<xs:simpleType name="KodTypuUcastnikaENXType">
		<xs:restriction base="bt:KodTypuUcastnikaType">
			<xs:enumeration value="OG">
				<xs:annotation>
					<xs:documentation xml:lang="cs">Oprávněný inženýr</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="LI">
				<xs:annotation>
					<xs:documentation xml:lang="cs">Likvidátor</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="NA">
				<xs:annotation>
					<xs:documentation xml:lang="cs">Nabyvate</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="NV">
				<xs:annotation>
					<xs:documentation xml:lang="cs">Navrhovatel</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="OP">
				<xs:annotation>
					<xs:documentation xml:lang="cs">Oprávněný</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="OT">
				<xs:annotation>
					<xs:documentation xml:lang="cs">Ostatní</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="OU">
				<xs:annotation>
					<xs:documentation xml:lang="cs">Okresní poz. úřad</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="OZ">
				<xs:annotation>
					<xs:documentation xml:lang="cs">Ohlašovatel</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="PF">
				<xs:annotation>
					<xs:documentation xml:lang="cs">Pozemkový fond</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="PL">
				<xs:annotation>
					<xs:documentation xml:lang="cs">Poplatník</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="PO">
				<xs:annotation>
					<xs:documentation xml:lang="cs">Povinný</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="PR">
				<xs:annotation>
					<xs:documentation xml:lang="cs">Převodce</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="PZ">
				<xs:annotation>
					<xs:documentation xml:lang="cs">Právní zástupce</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="SK">
				<xs:annotation>
					<xs:documentation xml:lang="cs">Správce k. podstaty</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="VL">
				<xs:annotation>
					<xs:documentation xml:lang="cs">Vyhotovitel listiny</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="ZG">
				<xs:annotation>
					<xs:documentation xml:lang="cs">Zhotovitel GP</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="ZS">
				<xs:annotation>
					<xs:documentation xml:lang="cs">Zástavce</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="ZV">
				<xs:annotation>
					<xs:documentation xml:lang="cs">Zástavní věřitel</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="EX">
				<xs:annotation>
					<xs:documentation xml:lang="cs">Soudní exekutor</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="OK">
				<xs:annotation>
					<xs:documentation xml:lang="cs">Obce a kraje</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="JO">
				<xs:annotation>
					<xs:documentation xml:lang="cs">Jednající osoba</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="NT">
				<xs:annotation>
					<xs:documentation xml:lang="cs">Notář</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="AD">
				<xs:annotation>
					<xs:documentation xml:lang="cs">Advokát</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="DP">
				<xs:annotation>
					<xs:documentation xml:lang="cs">Daňový poradce</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="VZ">
				<xs:annotation>
					<xs:documentation xml:lang="cs">Vyhotovitel ZPMZ</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="IS">
				<xs:annotation>
					<xs:documentation xml:lang="cs">Insolvenční správce</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="PC">
				<xs:annotation>
					<xs:documentation xml:lang="cs">Plátce</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
		</xs:restriction>
	</xs:simpleType>

	<xs:complexType name="ListinaENXSeznamType">
	  <xs:annotation>
		   <xs:documentation xml:lang="cs">Seznam listin.</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="listina" type="ListinaENXType" minOccurs="0" maxOccurs="unbounded"/>
		</xs:sequence>
	</xs:complexType>

	<xs:complexType name="ListinaENXType">
		<xs:annotation>
			<xs:documentation xml:lang="cs">Listina k podání.</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="typKod" type="KodTypuListinyENXType"/>
			<xs:element name="datumVyhotoveni" type="xs:date"/>
			<xs:element name="textCislaJednaciho" type="bt:CisloJednaciType" minOccurs="0"/>
			<xs:element name="stran" type="xs:positiveInteger" minOccurs="0"/>
			<xs:element name="popis" type="bt:TextType" minOccurs="0"/>
			<xs:element name="pravniMoc" type="xs:string" minOccurs="0"/>
			<xs:element name="druhListinyKod" type="bt:KodDruhuListinyType" minOccurs="0"/>
			<xs:element name="priloha" type="ct:PrilohaWSType" minOccurs="1" maxOccurs="1"/>
			<xs:element name="doplnkoveUdajeZPMZ" type="DoplnkoveUdajeListinZMPZENXType" minOccurs="0" maxOccurs="1"/>
		</xs:sequence>
	</xs:complexType>

	<xs:simpleType name="KodTypuListinyENXType">
		<xs:annotation>
			<xs:documentation>Kód typu listiny podle číselníku SC_T_LISTIN.</xs:documentation>
		</xs:annotation>
		<xs:restriction base="bt:KodTypuListinyType"/>
	</xs:simpleType>

	<xs:complexType name="ZpusobUhradySpravnihoPoplatkuGPType">
		<xs:annotation>
			<xs:documentation xml:lang="cs">Způsob úhrady správního poplatku.</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:group ref="ZpusobUhradySpravnihoPoplatkuGroup"/>
		</xs:sequence>
		<xs:attribute name="zmocneniZhotoviteleGP" type="bt:AnoNeType">
			<xs:annotation>
				<xs:documentation xml:lang="cs">Udělení plné moci zhotoviteli geometrického plánu k projednání úhrady správního poplatku.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
	</xs:complexType>

	<xs:complexType name="ZpusobPrevzetiGPType">
	  <xs:annotation>
		   <xs:documentation xml:lang="cs">Způsob převzetí geometrického plánu.</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:group ref="ZpusobPrevzetiGroup"/>
		</xs:sequence>
		<xs:attribute name="zmocneniZhotoviteleGP" type="bt:AnoNeType">
			<xs:annotation>
				<xs:documentation xml:lang="cs">Udělení plné moci zhotoviteli geometrického plánu k převzetí geometrického plánu.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
	</xs:complexType>

</xs:schema>
