<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://katastr.cuzk.cz/enx/types/v2.2"
	targetNamespace="http://katastr.cuzk.cz/enx/types/v2.2" xmlns:bt="http://katastr.cuzk.cz/baseTypes/v2.2"
	xmlns:ct="http://katastr.cuzk.cz/commonTypes/v2.2" xmlns:xmime="http://www.w3.org/2005/05/xmlmime"
	xmlns:ds="http://www.w3.org/2000/09/xmldsig#" elementFormDefault="qualified"
	version="2.2.0">


	<xs:import namespace="http://katastr.cuzk.cz/baseTypes/v2.2" schemaLocation="../../xsd/baseTypes_v22.xsd" />
	<xs:import namespace="http://katastr.cuzk.cz/commonTypes/v2.2" schemaLocation="../../xsd/commonTypes_v22.xsd" />
	<xs:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="../../xsd/xmldsig_core_schema.xsd" />

	<xs:complexType name="ZalozNavrhRequestType">
		<xs:annotation>
			<xs:documentation> Komplexní typ pro zaslání návrhu
			</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="typNavrhu" type="ENXTypNavrhuType" />
			<xs:element name="XMLNavrhu" type="xs:base64Binary"
				xmime:expectedContentTypes="text/xml">
				<xs:annotation>
					<xs:documentation>Soubor se samotným XML návrhu</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="hashNavrhu" type="ENXHashNavrhuType"
				minOccurs="0" maxOccurs="1">
				<xs:annotation>
					<xs:documentation>Hash souboru návrhu</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="prilohaNavrhu" type="ENXPrilohaNavrhuType"
				minOccurs="0" maxOccurs="unbounded" />
		</xs:sequence>
	</xs:complexType>

	<xs:complexType name="ZalozNavrhResponseType">
		<xs:annotation>
			<xs:documentation> Komplexní typ pro odpověď na zaslání návrhu
			</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element ref="ds:Signature" minOccurs="0" />
			<xs:element name="vysledek" type="ct:ResponseInfoType" />
			<xs:element name="rizeni" type="ct:RizeniPomocneType"
				minOccurs="0" maxOccurs="1" />
		</xs:sequence>
		<xs:attribute name="id" type="xs:ID">
			<xs:annotation>
				<xs:documentation>Identifikátor XML elementu odpovědi na zaslání
					návrhu.</xs:documentation>
			</xs:annotation>
		</xs:attribute>
	</xs:complexType>

	<xs:element name="ZalozNavrhRequest" type="ZalozNavrhRequestType" />
	<xs:element name="ZalozNavrhResponse" type="ZalozNavrhResponseType" />

	<xs:simpleType name="ENXTypNavrhuType">
		<xs:restriction base="xs:string">
			<xs:enumeration value="EX">
				<xs:annotation>
					<xs:documentation>Exekuce</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="OV">
				<xs:annotation>
					<xs:documentation>Obecné podání</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="OB">
				<xs:annotation>
					<xs:documentation>Obecné podání</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="ENXHashNavrhuType">
		<xs:restriction base="xs:string" />
	</xs:simpleType>
	<xs:complexType name="ENXPrilohaNavrhuType">
		<xs:sequence>
			<xs:element name="prilohaNavrhu" type="xs:base64Binary"
				minOccurs="1" maxOccurs="1" xmime:expectedContentTypes="application/octet-stream">
				<xs:annotation>
					<xs:documentation>Jednotlivé přílohy k návrhu ve formátu PDF, mohou
						být nekomprimované i komprimované přes ZIP nebo GZIP
					</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>

		<xs:attribute name="idPrilohy" type="bt:IdPrilohyWSType"
			use="required">
			<xs:annotation>
				<xs:documentation>ID přílohy, jehož existence se kontroluje v těle
					podání (listina - příloha)</xs:documentation>
			</xs:annotation>
		</xs:attribute>
		<xs:attribute name="typKomprese" type="bt:TypKompreseType">
			<xs:annotation>
				<xs:documentation>Typ komprese návrhu</xs:documentation>
			</xs:annotation>
		</xs:attribute>
	</xs:complexType>


</xs:schema>
