<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns="urn:cz:isvs:aisecd:schemas:AisEcdTypy2:v1"
           xmlns:xs="http://www.w3.org/2001/XMLSchema"
           xmlns:reg="urn:cz:isvs:reg:schemas:RegTypy:v1"
           xmlns:rob="urn:cz:isvs:rob:schemas:RobTypy:v1"
           targetNamespace="urn:cz:isvs:aisecd:schemas:AisEcdTypy2:v1"
           xmlns:aisse="urn:cz:isvs:aisse:schemas:AisSeTypy4:v1"
           xmlns:dt="urn:cz:isvs:aisse:schemas:DataTypy:v1"
           elementFormDefault="qualified" attributeFormDefault="unqualified"
           version="2.0.0">
    
    <xs:annotation>
        <xs:documentation xml:lang="cs">Definice společných datových prvků AIS ECD v2.0.0.</xs:documentation>
    </xs:annotation>

    <!-- Úvodní verze pro atomické služby AIS EOP v.2, xx.xx.2022 -->


    <xs:import namespace="urn:cz:isvs:reg:schemas:RegTypy:v1" schemaLocation="../../RegTypy.xsd"/>
    <xs:import namespace="urn:cz:isvs:rob:schemas:RobTypy:v1" schemaLocation="../../rob/xsd/RobTypy.xsd"/>
    <xs:import namespace="urn:cz:isvs:aisse:schemas:AisSeTypy4:v1" schemaLocation="AisSeTypyV4.xsd"/>
    <xs:import namespace="urn:cz:isvs:aisse:schemas:DataTypy:v1" schemaLocation="DataTypy.xsd"/>
    
  <xs:complexType name="KompletniUdajeECDType">
        <xs:annotation>
            <xs:documentation>Informace o osobě a cestovních dokladů osoby</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            
            <xs:element name="Aifo" type="reg:LokalniAifoType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Lokální AIFO</xs:documentation>
                </xs:annotation>
            </xs:element>

            <!-- Jmeno -->

            <xs:element name="Jmeno" type="aisse:JmenoType" minOccurs="0" nillable="true">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Jméno/Jména</xs:documentation>
                </xs:annotation>
            </xs:element>

            <!-- Prijmeni -->

            <xs:element name="Prijmeni" type="aisse:PrijmeniType" minOccurs="0" nillable="true">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Příjmení</xs:documentation>
                </xs:annotation>
            </xs:element>

            <!-- Rodne prijmeni -->

            <xs:element name="RodnePrijmeni" type="aisse:PrijmeniType" minOccurs="0" nillable="true">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Rodné příjmení</xs:documentation>
                </xs:annotation>
            </xs:element>

            <!-- Rodne cislo -->

            <xs:element name="RodneCislo" type="aisse:RodneCisloType" minOccurs="0" nillable="true">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Rodné číslo</xs:documentation>
                </xs:annotation>
            </xs:element>

            <!-- Datum narozeni -->

            <xs:element name="DatumNarozeni" type="aisse:DatumNarozeniType" minOccurs="0" nillable="true">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Datum narození</xs:documentation>
                </xs:annotation>
            </xs:element>   
            
            <!-- Misto narozeni -->

            <xs:element name="MistoNarozeni" type="aisse:MistoEOType" minOccurs="0" nillable="true">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Místo a okres narození, u občana, který se narodil v cizině, místo a stát, kde se občan narodil.</xs:documentation>
                </xs:annotation>
            </xs:element>

            <!-- Pohlavi -->

            <xs:element name="Pohlavi" type="aisse:PohlaviType" minOccurs="0" nillable="true">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Pohlaví</xs:documentation>
                </xs:annotation>
            </xs:element>

            <!-- Občanství -->
            
            <xs:element name="Obcanstvi" type="aisse:ObcanstviEOType" minOccurs="0" nillable="true">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Státního občanství. Jen občanství ČR, pokud ho nemá, vydává se údaj prázdný.</xs:documentation>
                </xs:annotation>
            </xs:element>

            <!-- Rodinný stav -->

            <xs:element name="RodinnyStav" type="RodStavCDType" minOccurs="0" nillable="true">
                <xs:annotation>
                    <xs:documentation>Rodinný stav nebo partnerství</xs:documentation>
                </xs:annotation>
            </xs:element>
            
            
            <!-- Svéprávnost -->

            <xs:element name="Svepravnost" type="aisse:SvepravnostType" minOccurs="0" nillable="true">
                <xs:annotation>
                    <xs:documentation>Svéprávnost</xs:documentation>
                </xs:annotation>
            </xs:element>


            <!-- Adresa TP -->
            
            <xs:element name="AdresaTP" type="aisse:AdresaTPType" minOccurs="0" nillable="true">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Adresa trvalého pobytu.</xs:documentation>
                </xs:annotation>
            </xs:element>
                                      
            <xs:element name="PocatekTP"  type="aisse:DatumStavType" minOccurs="0" nillable="true">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Datum počátku trvalého pobytu</xs:documentation>
                </xs:annotation>    
            </xs:element>

            <xs:element name="UkonceniTP"  type="aisse:DatumStavType" minOccurs="0" nillable="true">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Datum ukončení pobytu na území ČR</xs:documentation>
                </xs:annotation>           
            </xs:element>

            <xs:element name="UredniZruseniTP"  type="aisse:DatumStavType" minOccurs="0" nillable="true">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Datum uředního zrušení trvalého pobytu</xs:documentation>
                </xs:annotation>                
            </xs:element>

            <!-- Umrti -->

            <xs:element name="DatumUmrti" type="aisse:DatumUmrtiType" minOccurs="0" nillable="true">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Datum úmrtí; je-li vydáno rozhodnutí soudu o prohlášení za mrtvého,
                        den, který je v rozhodnutí uveden jako den smrti nebo den, který občan prohlášený za mrtvého
                        nepřežil
                    </xs:documentation>
                </xs:annotation>
            </xs:element>

            <xs:element name="StavOsoby" type="aisse:StavOsobyType" minOccurs="0" nillable="true">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Stav osoby - živá/mrtvá/nezjištěno</xs:documentation>
                </xs:annotation>
            </xs:element>

            <!-- Datovává schránka  -->

            <xs:element name="DatovaSchranka" type="DatovaSchrankaCDType" minOccurs="0" nillable="true">
                <xs:annotation>
                    <xs:documentation>Typ datové schránky a identifikátor datové schránky, je-li tato datová schránka zpřístupněna</xs:documentation>
                </xs:annotation>
            </xs:element>
            
            <!-- Cestovni doklady -->

            <xs:element name="CestovniDoklad" type="CDType" minOccurs="0" maxOccurs="unbounded" nillable="true">
                <xs:annotation>
                    <xs:documentation>Seznam cestovních dokladů</xs:documentation>
                </xs:annotation>
            </xs:element>

            <xs:element name="CestovniDokladZO" type="CDZOType"
                        minOccurs="0" maxOccurs="unbounded" nillable="true">
                <xs:annotation>
                    <xs:documentation>Seznam ztracených/odcizených cestovních dokladů
                    </xs:documentation>
                </xs:annotation>
            </xs:element>

            <xs:element name="CestovniDokladNeplatny" type="CDNeplatnyType"
                        minOccurs="0" maxOccurs="unbounded" nillable="true">
                <xs:annotation>
                    <xs:documentation>Seznam neplatných cestovních dokladů
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
            
            <!-- Zakaz vycestovani -->
            
            <xs:element name="ZakazVycestovani" type="ZakazVycestovaniType"
                        minOccurs="0" maxOccurs="unbounded" nillable="true">
                <xs:annotation>
                    <xs:documentation>Zákazy vycestování</xs:documentation>
                </xs:annotation>
            </xs:element>            
            
            <!-- Datovává schránka, telefon, mail  
            <xs:element name="Komunikace" type="aisse:KomunikaceSOsobouType"  nillable="true">
                <xs:annotation>
                    <xs:documentation>Spojení pro komunikaci s osobou</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                    <xs:complexContent>
                        <xs:extension base="aisse:KomunikaceSOsobouType">
                            <xs:attribute name="stav" type="aisse:StavType"/>
                        </xs:extension>
                    </xs:complexContent>
                </xs:complexType>
            </xs:element> -->
           
        </xs:sequence>
    </xs:complexType>   
    
                       
    <xs:complexType name="RodStavCDType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">Kód a název rodinného
                stavu, datum uzavření manželství
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="Kod" type="xs:string" minOccurs="0"
                        nillable="true">
                <xs:annotation>
                    <xs:documentation>>Kód rodinného stavu</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="Nazev" type="xs:string" minOccurs="0"
                        nillable="true">
                <xs:annotation>
                    <xs:documentation>Název rodinného stavu</xs:documentation>
                </xs:annotation>
            </xs:element>

            <xs:element name="RodinnyStavOd" type="RodStavOdCDType"
                        minOccurs="0" nillable="true">
                <xs:annotation>
                    <xs:documentation>Datum uzavření manželství</xs:documentation>
                </xs:annotation>
            </xs:element>
               
        </xs:sequence>
        <xs:attribute name="stav" type="aisse:StavType"/>
    </xs:complexType>     
    
    
    <xs:complexType name="RodStavOdCDType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">Příjmení</xs:documentation>
        </xs:annotation>
        <xs:simpleContent>
            <xs:extension base="dt:DatumType">
                <xs:attribute name="stav" type="aisse:StavType"/>
            </xs:extension>
        </xs:simpleContent>
    </xs:complexType>                                                                                                                 
                    
                                                                                
                                                                                                                                                                                                        
    <xs:complexType name="CDType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">Cestovní doklad
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            
            <xs:element name="Jmeno" type="dt:JmenoType" minOccurs="0"
                        nillable="true">
                <xs:annotation>
                    <xs:documentation>Zkrácená podoba jména, popřípadě jmen na CD
                    </xs:documentation>
                </xs:annotation>
            </xs:element>

            <xs:element name="Prijmeni" type="dt:PrijmeniType" minOccurs="0"
                        nillable="true">
                <xs:annotation>
                    <xs:documentation>Zkrácená podoba příjmení na CD</xs:documentation>
                </xs:annotation>
            </xs:element>

            <xs:element name="CDCislo" minOccurs="0"
                        nillable="true">
                <xs:annotation>
                    <xs:documentation>Čislo CD</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                    <xs:simpleContent>
                        <xs:extension base="dt:CDCisloType">
                            <xs:attribute name="stav" type="aisse:StavType"/>
                        </xs:extension>
                    </xs:simpleContent>
                </xs:complexType>
            </xs:element>

            <xs:element name="CDDruh" type="dt:Text60" minOccurs="0"
                        nillable="true">
                <xs:annotation>
                    <xs:documentation>Druh CD</xs:documentation>
                </xs:annotation>
            </xs:element>


            <xs:element name="ZadostCislo"  minOccurs="0" nillable="true">
                <xs:annotation>
                    <xs:documentation>Čislo žádosti o CD</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                    <xs:simpleContent>
                        <xs:extension base="dt:CDZadostCisloType">
                            <xs:attribute name="stav" type="aisse:StavType"/>
                        </xs:extension>
                    </xs:simpleContent>
                </xs:complexType>                      
            </xs:element>
        
      
            <xs:element name="DatumVydani" minOccurs="0"
                        nillable="true">
                <xs:annotation>
                    <xs:documentation>Datum vydání CD</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                    <xs:simpleContent>
                        <xs:extension base="dt:DatumType">
                            <xs:attribute name="stav" type="aisse:StavType"/>
                        </xs:extension>
                    </xs:simpleContent>
                </xs:complexType>
            </xs:element>


            <xs:element name="DatumPlatnosti" minOccurs="0" nillable="true">
                <xs:annotation>
                    <xs:documentation>Datum ukončení platnosti CD</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                    <xs:simpleContent>
                        <xs:extension base="dt:DatumType">
                            <xs:attribute name="stav" type="aisse:StavType"/>
                        </xs:extension>
                    </xs:simpleContent>
                </xs:complexType>
            </xs:element>
            
            
            <xs:element name="DatumPrevzeti" minOccurs="0" nillable="true">
                <xs:annotation>
                    <xs:documentation>Datum převzetí CD</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                    <xs:simpleContent>
                        <xs:extension base="dt:DatumType">
                            <xs:attribute name="stav" type="aisse:StavType"/>
                        </xs:extension>
                    </xs:simpleContent>
                </xs:complexType>                
            </xs:element>            


            <xs:element name="ProdlouzeniPlatnosti"  minOccurs="0" nillable="true">
                <xs:annotation>
                    <xs:documentation>Prodloužená doba platnosti cestovního dokladu
                    </xs:documentation>
                </xs:annotation>
                <xs:complexType>
                    <xs:simpleContent>
                        <xs:extension base="dt:DatumType">
                            <xs:attribute name="stav" type="aisse:StavType"/>
                        </xs:extension>
                    </xs:simpleContent>
                </xs:complexType>                 
            </xs:element>


            <xs:element name="UradVydal" type="aisse:UradType" minOccurs="0"
                        nillable="true">
                <xs:annotation>
                    <xs:documentation>Označení úřadu, který cestovní doklad vydal
                    </xs:documentation>
                </xs:annotation>
            </xs:element>

            <xs:element name="CisloCipu" type="dt:Text20" minOccurs="0"
                        nillable="true">
                <xs:annotation>
                    <xs:documentation>Číslo čípu</xs:documentation>
                </xs:annotation>
            </xs:element>

            <xs:element name="Hash" type="CDHash" minOccurs="0"
                        nillable="true">
                <xs:annotation>
                    <xs:documentation>Hashe čipu CD</xs:documentation>
                </xs:annotation>
            </xs:element>

            <xs:element name="PKI" type="dt:Text128" minOccurs="0"
                        nillable="true">
                <xs:annotation>
                    <xs:documentation>Data pro ověřování elektronického podpisu osoby,
                        která vložila údaje do nosiče dat
                    </xs:documentation>
                </xs:annotation>
            </xs:element>

            <xs:element name="Zadost" type="ZadostCDType" minOccurs="0"
                        nillable="true">
                <xs:annotation>
                    <xs:documentation>Žádost o CD</xs:documentation>
                </xs:annotation>
            </xs:element>
            
             <xs:element name="PoznamkaPredani" type="dt:Text500"  minOccurs="0" nillable="true">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Poznámky při předání</xs:documentation>
                </xs:annotation>
            </xs:element>               
            
             <xs:element name="KonecPlatnostiPDF" type="aisse:PDFType" minOccurs="0"  nillable="true">
                <xs:annotation>
                    <xs:documentation>Záznam o skončení platnosti dokladu v elektronické podobě</xs:documentation>
                </xs:annotation>
            </xs:element>             
            
            <xs:element name="OhlaseniPDF" type="aisse:PDFType" minOccurs="0"  nillable="true">
                <xs:annotation>
                    <xs:documentation>Oznámení o ztrátě nebo odcizení cestovního pasu v elektronické podobě</xs:documentation>
                </xs:annotation>
            </xs:element> 
            
            <xs:element name="Komunikace" type="aisse:KomunikaceSOsobouType" minOccurs="0"  nillable="true">
                <xs:annotation>
                    <xs:documentation>Spojení pro komunikaci s osobou</xs:documentation>
                </xs:annotation>
            </xs:element>                 
                        
        </xs:sequence>
        <xs:attribute name="stav" type="aisse:StavType"/>
    </xs:complexType>
    
    
     <xs:complexType name="ZadostCDType">
        <xs:annotation>
            <xs:documentation>Žádost o CD - PDF nebo v textové podobě</xs:documentation>
        </xs:annotation>    
        <xs:sequence>
            <xs:element name="PDF" type="xs:base64Binary"  nillable="true">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Žádost o CD - PDF soubor</xs:documentation>
                </xs:annotation>
            </xs:element>
                <xs:element name="Polozkova" type="CDZadostType" minOccurs="0" nillable="true">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Žádost o CD v položkové podobě</xs:documentation>
                </xs:annotation>
            </xs:element>     
        </xs:sequence>           
        <xs:attribute name="stav" type="aisse:StavType"/>
    </xs:complexType>     
    
    
    <xs:complexType name="CDZadostType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">Žádost o cestovní doklad
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="ZadostCislo" type="dt:CDZadostCisloType"
                        minOccurs="0" nillable="true"/>
            
            <xs:element name="UdajeOsoby" type="CDUdajeOsobyZadostType"
                        minOccurs="0" nillable="true">
                <xs:annotation>
                    <xs:documentation>Osobní údaje žadatele o doklad</xs:documentation>
                </xs:annotation>
            </xs:element>

            <xs:element name="CisloJednaci" type="xs:string"
                        minOccurs="0" nillable="true">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Číslo jednací žádosti o
                        vydání cestovního dokladu
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
            
            <xs:element name="UradPrijal" type="aisse:UradType" minOccurs="0"
                        nillable="true">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Úřad, který převzal
                        žádost o vydání cestovního dokladu
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
            
            <xs:element name="UradPredava" type="aisse:UradType" minOccurs="0"
                        nillable="true">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Úřad, který předává
                        cestovní doklad
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
            
            <xs:element name="CDCisloDokladu" type="dt:CDCisloType"
                        minOccurs="0" nillable="true">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Číslo cestovního
                        dokladu
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
            
            <xs:element name="CDDruhDokladu" type="xs:int" minOccurs="0"
                        nillable="true">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Druh cestovního dokladu
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
                       
            <xs:element name="CDDatumVydani" type="dt:DatumType"
                        minOccurs="0" nillable="true">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Datum vydání cestovního
                        dokladu
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
            
            <xs:element name="CDPlatnost" type="dt:DatumType" minOccurs="0"
                        nillable="true">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Datum platnosti
                        cestovního dokladu
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
            
            
            <xs:element name="UradVydal" type="xs:string" minOccurs="0"
                        nillable="true">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Úřad, který vydal
                        cestovního doklad
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
            
            <xs:element name="TotoznostPrijeti" type="dt:TotoznostType"
                        minOccurs="0" nillable="true">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Ověření totožnosti při
                        přijetí žádosti
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
            
            <xs:element name="TotoznostPrijetiTyp" type="dt:Text5"
                        minOccurs="0" nillable="true">
                <xs:annotation>
                    <xs:documentation>
                        Ověření totožnosti při přijetí žádosti - typ
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
            
            
            <xs:element name="ZadostPrijata" type="dt:DatumType"
                        minOccurs="0" nillable="true">
                <xs:annotation>
                    <xs:documentation>
                        Datum přijetí žádosti
                    </xs:documentation>
                </xs:annotation>
            </xs:element>

            <!-- xs:element name="MistoPrijeti" type="dt:MistoDoklType"
                        minOccurs="0" nillable="true">
                <xs:annotation>
                    <xs:documentation>
                        Místo přijetí žádosti
                    </xs:documentation>
                </xs:annotation>
            </xs:element -->            
            
            <xs:element name="ZadostPodana" type="dt:DatumType"
                        minOccurs="0" nillable="true">
                <xs:annotation>
                    <xs:documentation>
                        Datum podání žádosti
                    </xs:documentation>
                </xs:annotation>
            </xs:element>

            <xs:element name="MistoPodani" type="dt:MistoDoklType"
                        minOccurs="0" nillable="true">
                <xs:annotation>
                    <xs:documentation>
                        Místo podání žádosti
                    </xs:documentation>
                </xs:annotation>
            </xs:element>                
            

            <xs:element name="Oduvodneni" type="dt:Text250" minOccurs="0"
                        nillable="true">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Odůvodnění podání
                        žádosti
                    </xs:documentation>
                </xs:annotation>
            </xs:element>


            <xs:element name="UredniZaznamy" type="dt:Text1000"
                        minOccurs="0" nillable="true">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Úřední záznamy
                    </xs:documentation>
                </xs:annotation>
            </xs:element>

            <!--xs:element name="MistoPrevzeti" type="dt:Text100"
                        minOccurs="0" nillable="true">
                <xs:annotation>
                    <xs:documentation>
                        Místo převzetí dokladu
                    </xs:documentation>
                </xs:annotation>
            </xs:element-->

            <xs:element name="DokladPrevzat" type="dt:DatumType"
                        minOccurs="0" nillable="true">
                <xs:annotation>
                    <xs:documentation>
                        Datum převzetí dokladu
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
            
            <xs:element name="UrednikPrijal" type="aisse:UrednikType"
                        minOccurs="0" nillable="true">
                <xs:annotation>
                    <xs:documentation>
                        Úředník, který žádost přijal
                    </xs:documentation>
                </xs:annotation>
            </xs:element>

            <xs:element name="ZadostZastupce" type="aisse:ZadostZastupceType"
                        minOccurs="0" maxOccurs="unbounded" nillable="true">
                <xs:annotation>
                    <xs:documentation>
                        Zástupce uvedený na žádosti
                    </xs:documentation>
                </xs:annotation>
            </xs:element>

            <xs:element name="KomunikaceSOsobou" type="aisse:KomunikaceSOsobouType" nillable="true" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>
                        Komunikace s osobou
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
            
            <xs:element name="UrednikVydal" type="aisse:UrednikType"
                        minOccurs="0" nillable="true">
                <xs:annotation>
                    <xs:documentation>
                        Úředník, který vydal doklad
                    </xs:documentation>
                </xs:annotation>
            </xs:element>              
                      
            <xs:element name="TotoznostPredani" type="dt:TotoznostType"
                        minOccurs="0" nillable="true">
                <xs:annotation>
                    <xs:documentation>
                        Ověření totožnosti při předání dokladu
                    </xs:documentation>
                </xs:annotation>
            </xs:element>            
            
            <xs:element name="TotoznostPredaniTyp" type="dt:Text5"
                        minOccurs="0" nillable="true">
                <xs:annotation>
                    <xs:documentation>
                        Ověření totožnosti při předání dokladu - typ
                    </xs:documentation>
                </xs:annotation>
            </xs:element>  


            <xs:element name="TypZadost" type="dt:Text100" minOccurs="0"
                        nillable="true">
                <xs:annotation>
                    <xs:documentation>Typ žádosti</xs:documentation>
                </xs:annotation>
            </xs:element>            
            
             <xs:element name="PuvodniZadost" type="dt:OPZadostCisloType"
                        minOccurs="0" nillable="true">
                <xs:annotation>
                    <xs:documentation>Původní žádost</xs:documentation>
                </xs:annotation>
            </xs:element>           
                      
      
             <xs:element name="PoplatekPodani" type="dt:Text50"
                        minOccurs="0" nillable="true">
                <xs:annotation>
                    <xs:documentation>
                        Poplatek při podání žádosti
                    </xs:documentation>
                </xs:annotation>
            </xs:element>                    
                        
            <xs:element name="PoplatekPredani" type="dt:Text50"
                        minOccurs="0" nillable="true">
                <xs:annotation>
                    <xs:documentation>
                        Poplatek při předání dokladu
                    </xs:documentation>
                </xs:annotation>
            </xs:element>                    
                                                            
            <xs:element name="PoznamkaPredani" type="dt:Text500"
                        minOccurs="0" nillable="true">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Poznámky při předání
                    </xs:documentation>
                </xs:annotation>
            </xs:element>             
            
        </xs:sequence>
    </xs:complexType>                                                                       
                                                                                                                                            
    <xs:complexType name="CDUdajeOsobyZadostType">
        <xs:annotation>
            <xs:documentation>Informace o osobě</xs:documentation>
        </xs:annotation>        
        <xs:complexContent>
            <xs:extension base="aisse:UdajeOsobyZadostType">
                <xs:sequence> 
                    
                    <xs:element name="RodnePrijmeni" type="dt:PrijmeniType" minOccurs="0"
                                nillable="true">
                        <xs:annotation>
                            <xs:documentation>Rodné příjmení</xs:documentation>
                        </xs:annotation>
                    </xs:element>                      
                       
                    <xs:element name="JmenoUplne" type="dt:JmenoType" minOccurs="0"
                                nillable="true">
                        <xs:annotation>
                            <xs:documentation>Jméno/Jména úplné</xs:documentation>
                        </xs:annotation>
                    </xs:element>

                    <xs:element name="PrijmeniUplne" type="dt:PrijmeniType" minOccurs="0"
                                nillable="true">
                        <xs:annotation>
                            <xs:documentation>Příjmení úplné</xs:documentation>
                        </xs:annotation>
                    </xs:element>                                                                                                                                                                                                                                             
                </xs:sequence>
            </xs:extension>        
        </xs:complexContent>                                                                                                                                                                                                                                                                                                                                                                                                    
    </xs:complexType>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
   <xs:complexType name="CDHash">
        <xs:annotation>
            <xs:documentation xml:lang="cs">Hashe čipu CD
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="Hash1" type="dt:Text128" minOccurs="0"
                        nillable="true">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Hash Data Group 1
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="Hash2" type="dt:Text128" minOccurs="0"
                        nillable="true">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Hash Data Group 2
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="Hash3" type="dt:Text128" minOccurs="0"
                        nillable="true">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Hash Data Group 3
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="HashCelkovy" type="dt:Text128" minOccurs="0"
                        nillable="true">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Hash Data Celkový
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>    
    
    
    <xs:complexType name="CDZOType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">Ztracený/odcizený cestovní doklad.</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            
            <xs:element name="CDCislo" minOccurs="0"
                        nillable="true">
                <xs:annotation>
                    <xs:documentation>Čislo CD</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                    <xs:simpleContent>
                        <xs:extension base="dt:CDCisloType">
                            <xs:attribute name="stav" type="aisse:StavType"/>
                        </xs:extension>
                    </xs:simpleContent>
                </xs:complexType>
            </xs:element>

            <xs:element name="CDDruh" type="dt:Text60" minOccurs="0" nillable="true">
                <xs:annotation>
                    <xs:documentation>Druh CD.</xs:documentation>
                </xs:annotation>
            </xs:element>

            <xs:element name="DatumVydani" type="dt:DatumType" minOccurs="0" nillable="true">
                <xs:annotation>
                    <xs:documentation>Datum vydání CD.</xs:documentation>
                </xs:annotation>
            </xs:element>

            <xs:element name="DatumUkonceniPlatnosti" type="dt:DatumType" minOccurs="0"
                        nillable="true">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Datum skutečného ukončení
                        platnosti cestovního dokladu
                    </xs:documentation>
                </xs:annotation>
            </xs:element>

            <!--xs:choice>
                <xs:element name="Ztrata" type="CDZtrataOdcizeniType" minOccurs="0" nillable="true">
                    <xs:annotation>
                        <xs:documentation xml:lang="cs">Datum a místo ohlášení ztráty cestovní dokladu.
                        </xs:documentation>
                    </xs:annotation>
                </xs:element>
                
                <xs:element name="Odcizeni" type="CDZtrataOdcizeniType" minOccurs="0" nillable="true">
                    <xs:annotation>
                        <xs:documentation xml:lang="cs">Datum a místo ohlášení odcizení cestovní dokladu.
                        </xs:documentation>
                    </xs:annotation>
                </xs:element>
            </xs:choice-->
            
                <xs:element name="Ohlaseni" type="CDZtrataOdcizeniType" minOccurs="0" nillable="true">
                   <xs:annotation>
                       <xs:documentation xml:lang="cs">Datum a místo ohlášení odcizení/ztráty cestovní dokladu.
                       </xs:documentation>
                   </xs:annotation>
               </xs:element>           
            

            <xs:element name="StavDokladuKod" type="xs:string" minOccurs="0" nillable="true">
                <xs:annotation>
                    <xs:documentation>Důvod ukončení platnosti CD - kód.</xs:documentation>
                </xs:annotation>
            </xs:element>

            <xs:element name="StavDokladuText" type="xs:string" minOccurs="0" nillable="true">
                <xs:annotation>
                    <xs:documentation>Důvod ukončení platnosti CD.</xs:documentation>
                </xs:annotation>
            </xs:element>
            
        </xs:sequence>

        <xs:attribute name="stav" type="aisse:StavType"/>

    </xs:complexType>    
                
    <xs:complexType name="CDZtrataOdcizeniType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">Datum a místo ohlášení
                ztráty/odcizení cestovní dokladu
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="Datum" type="dt:DatumType" minOccurs="0"
                        nillable="true">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Datum ohlášení
                        ztráty/odcizení cestovní dokladu
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
            
            <xs:element name="Misto" type="dt:MistoDoklType" minOccurs="0"
                        nillable="true">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Místo ohlášení
                        ztráty/odcizení cestovní dokladu
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>                                                                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
    <xs:complexType name="CDNeplatnyType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">Neplatný cestovní doklad.</xs:documentation>
        </xs:annotation>
        
        <xs:sequence>
            <xs:element name="CDCislo" minOccurs="0"
                        nillable="true">
                <xs:annotation>
                    <xs:documentation>Čislo CD</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                    <xs:simpleContent>
                        <xs:extension base="dt:CDCisloType">
                            <xs:attribute name="stav" type="aisse:StavType"/>
                        </xs:extension>
                    </xs:simpleContent>
                </xs:complexType>
            </xs:element>

            <xs:element name="CDDruh" type="dt:Text60" minOccurs="0" nillable="true">
                <xs:annotation>
                    <xs:documentation>Druh CD.</xs:documentation>
                </xs:annotation>
            </xs:element>

            <xs:element name="DatumVydani" type="dt:DatumType" minOccurs="0" nillable="true">
                <xs:annotation>
                    <xs:documentation>Datum vydání CD.</xs:documentation>
                </xs:annotation>
            </xs:element>

            <xs:element name="DatumUkonceniPlatnosti" type="dt:DatumType" minOccurs="0"
                        nillable="true">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Datum skutečného ukončení
                        platnosti cestovního dokladu
                    </xs:documentation>
                </xs:annotation>
            </xs:element>

            <xs:element name="StavDokladuKod" type="xs:string" minOccurs="0" nillable="true">
                <xs:annotation>
                    <xs:documentation>Důvod ukončení platnosti CD - kód.</xs:documentation>
                </xs:annotation>
            </xs:element>

            <xs:element name="StavDokladuText" type="xs:string" minOccurs="0" nillable="true">
                <xs:annotation>
                    <xs:documentation>Důvod ukončení platnosti CD.</xs:documentation>
                </xs:annotation>
            </xs:element>
            
        </xs:sequence>

        <xs:attribute name="stav" type="aisse:StavType"/>

    </xs:complexType>   
    
    
    <xs:complexType name="ZakazVycestovaniType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">Omezení spočívající v zákazu vycestování do zahraničí.</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="Jmeno" type="dt:JmenoType" minOccurs="0"
                        nillable="true">
                <xs:annotation>
                    <xs:documentation>Jméno/Jména</xs:documentation>
                </xs:annotation>
            </xs:element>

            <xs:element name="Prijmeni" type="dt:PrijmeniType" minOccurs="0"
                        nillable="true">
                <xs:annotation>
                    <xs:documentation>Příjmení</xs:documentation>
                </xs:annotation>
            </xs:element>

            <xs:element name="RodneCislo" type="dt:RodneCisloType"
                        minOccurs="0" nillable="true">
                <xs:annotation>
                    <xs:documentation>Rodné číslo</xs:documentation>
                </xs:annotation>
            </xs:element>

            <xs:element name="Ulozil" type="xs:string" minOccurs="0" nillable="true">
                <xs:annotation>
                    <xs:documentation>Označení orgánu, který uložil omezení spočívající v zákazu vycestování do
                        zahraničí.
                    </xs:documentation>
                </xs:annotation>
            </xs:element>

            <xs:element name="DatumOdepreni" type="dt:DatumType" minOccurs="0" nillable="true">
                <xs:annotation>
                    <xs:documentation>Datum odepření vydání cestovního dokladu.</xs:documentation>
                </xs:annotation>
            </xs:element>

            <xs:element name="OdnateDoklady" type="CDOdnateDokladyType" minOccurs="0" maxOccurs="unbounded"
                        nillable="true">
                <xs:annotation>
                    <xs:documentation>Druh a číslo cestovního dokladu, který byl orgánu uvedenému v bodě 1 vydán nebo
                        který tento orgán podle zvláštního právního předpisu14) odňal, datum vydání nebo odnětí
                        cestovního dokladu.
                    </xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
        <xs:attribute name="stav" type="aisse:StavType"/>
    </xs:complexType>
    
    <xs:complexType name="CDOdnateDokladyType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">Informace o zadržených
                dokladech.
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="CDCislo" type="dt:CDCisloType" minOccurs="0"
                        nillable="true">
                <xs:annotation>
                    <xs:documentation>Čislo CD</xs:documentation>
                </xs:annotation>
            </xs:element>

            <xs:element name="CDDruh" type="dt:Text60" minOccurs="0"
                        nillable="true">
                <xs:annotation>
                    <xs:documentation>Druh CD</xs:documentation>
                </xs:annotation>
            </xs:element>

            <xs:element name="DatumOdneti" type="dt:DatumType" minOccurs="0"
                        nillable="true">
                <xs:annotation>
                    <xs:documentation>Datum odnětí CD</xs:documentation>
                </xs:annotation>
            </xs:element>

            <xs:element name="DatumVydani" type="dt:DatumType" minOccurs="0"
                        nillable="true">
                <xs:annotation>
                    <xs:documentation>Datum vydání CD</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
        <xs:attribute name="stav" type="aisse:StavType"/>
    </xs:complexType>         
    
    <xs:complexType name="DatovaSchrankaCDType">
        <xs:annotation>
            <xs:documentation>Typ datové schránky a identifikátor datové schránky</xs:documentation>
        </xs:annotation>    
        <xs:sequence>
            <xs:element name="Typ" type="dt:Text50" minOccurs="0" nillable="true">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Typ datové schránky</xs:documentation>
                </xs:annotation>
            </xs:element>
                <xs:element name="Identifikator" type="dt:Text20" minOccurs="0" nillable="true">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">Identifikátor datové schránky</xs:documentation>
                </xs:annotation>
            </xs:element>            
        </xs:sequence>
        <xs:attribute name="stav" type="aisse:StavType"/>
    </xs:complexType>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         
                         
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     
 	<xs:complexType name="AisEcdCtiPodleUdaju2DataType">
		<xs:annotation>
			<xs:documentation xml:lang="cs">Služba umožňuje přijmout definovanou žádost na vyhledání osoby podle kombinace údajů.</xs:documentation>
		</xs:annotation>
		
                <xs:sequence>
                     <xs:element name="RodneCislo" type="dt:RodneCisloType" minOccurs="0" nillable="true">
                            <xs:annotation>
                                    <xs:documentation xml:lang="cs">Rodné číslo</xs:documentation>
                            </xs:annotation>
                    </xs:element>      

                    <xs:element name="DatumNarozeni" type="dt:DatumType" minOccurs="0" nillable="true">
                            <xs:annotation>
                                    <xs:documentation xml:lang="cs">Datum narození.</xs:documentation>
                            </xs:annotation>
                    </xs:element>       

                    <xs:element name="Jmeno" type="dt:JmenoType" minOccurs="0" nillable="true">
                            <xs:annotation>
                                    <xs:documentation xml:lang="cs">Jméno/Jména</xs:documentation>
                            </xs:annotation>
                    </xs:element>

                    <xs:element name="Prijmeni" type="dt:PrijmeniType" minOccurs="0" nillable="true">
                            <xs:annotation>
                                    <xs:documentation xml:lang="cs">Příjmení</xs:documentation>
                            </xs:annotation>
                    </xs:element>         

                     <xs:element name="MistoNarozeni" type="aisse:MistoDotazType" minOccurs="0" nillable="true">
                            <xs:annotation>
                                    <xs:documentation xml:lang="cs">Místo narození.</xs:documentation>
                            </xs:annotation>
                    </xs:element>                       

                    <xs:element name="AdresaTP" type="aisse:AdresniMistoDotazType" minOccurs="0" nillable="true">
                            <xs:annotation>
                                    <xs:documentation>Adresa trvalého pobytu.</xs:documentation>
                            </xs:annotation>                            
                    </xs:element>                       

                     <xs:element name="CdCislo" type="dt:CDCisloType" minOccurs="0" nillable="true">
                            <xs:annotation>
                                    <xs:documentation xml:lang="cs">Číslo CD.</xs:documentation>
                            </xs:annotation>
                    </xs:element>     

                     <xs:element name="CdDruh" type="dt:DruhCestovnihoDokladuType" minOccurs="0" nillable="true">
                            <xs:annotation>
                                    <xs:documentation xml:lang="cs">Druh CD.</xs:documentation>
                            </xs:annotation>
                    </xs:element>     
                                                                                                                                                                                                                                                

                </xs:sequence> 
                       
                <xs:attribute name="typPorovnani" type="rob:TypPorovnaniType">
                        <xs:annotation>
                                <xs:documentation>Výběr podle jména, příjmení nebo rodného příjmení nezávisle na diakritice.</xs:documentation>
                        </xs:annotation>
                </xs:attribute>
                <xs:attribute name="znepristupniLog" type="xs:boolean">
                        <xs:annotation>
                                <xs:documentation>Zápis do sledování dotazů - znepřístupnění záznamu</xs:documentation>
                        </xs:annotation>
                </xs:attribute>    
                <xs:attribute name="verzeSluzby" type="dt:Text2"/>
	</xs:complexType>          
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
                                
 	<xs:complexType name="AisEcdMediaCtiPodleUdaju2DataType">
		<xs:annotation>
			<xs:documentation xml:lang="cs">Služba umožňuje přijmout definovanou žádost na vyhledání osoby podle kombinace údajů.</xs:documentation>
		</xs:annotation>   
                  
            <xs:complexContent>
                <xs:extension base="AisEcdCtiPodleUdaju2DataType">
                    <!--xs:sequence>
                        <xs:extension base="aisse:AisEopCtiPodleUdaju2DataType">

                        </xs:extension>
                    </xs:sequence--> 
                    <xs:sequence>

                        <xs:element name="KriteriaProFotky" minOccurs="0">
                           <xs:complexType>
                               <xs:sequence>
                                   <xs:element name="DatumOd" type="dt:DatumType" minOccurs="0"/>
                                   <xs:element name="DatumDo" type="dt:DatumType" minOccurs="0"/>
                                   <xs:element name="Pocet" type="xs:int" minOccurs="0" default="1"/>
                               </xs:sequence>
                           </xs:complexType>
                       </xs:element>

                       <xs:element name="KriteriaProPodpis" minOccurs="0">
                           <xs:complexType>
                               <xs:sequence>
                                   <xs:element name="DatumOd" type="dt:DatumType" minOccurs="0"/>
                                   <xs:element name="DatumDo" type="dt:DatumType" minOccurs="0"/>
                                   <xs:element name="Pocet" type="xs:int" minOccurs="0" default="1"/>
                               </xs:sequence>
                           </xs:complexType>
                       </xs:element>

                        <xs:element name="KriteriaProPodpisPrevzeti" minOccurs="0">
                            <xs:complexType>
                                <xs:sequence>
                                    <xs:element name="DatumOd" type="dt:DatumType"
                                                minOccurs="0"/>
                                    <xs:element name="DatumDo" type="dt:DatumType"
                                                minOccurs="0"/>
                                    <xs:element name="Pocet" type="xs:int" minOccurs="0"
                                                default="1"/>
                                </xs:sequence>
                            </xs:complexType>
                        </xs:element>

                        <xs:element name="KlicProSifrovani" type="xs:base64Binary"/>  

                    </xs:sequence>                    
                    
                </xs:extension>

            </xs:complexContent>   
                                                                                                          
        </xs:complexType>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
</xs:schema>







