<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns="urn:cz:isvs:rpp:schemas:RppTypy:v1" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:reg="urn:cz:isvs:reg:schemas:RegTypy:v1" targetNamespace="urn:cz:isvs:rpp:schemas:RppTypy:v1" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.13.0">
    <xs:annotation>
        <xs:documentation xml:lang="cs">Návrh XML schématu s definicemi společných datových prvků IS RPP.
          Toto schéma obsahuje definice základních datových prvků používaných pro dotazy a odpovědi do registru 
          práv a povinností (RPP).
        </xs:documentation>
    </xs:annotation>
    <!-- Verze 1.0.0, 6.2.2012 -->
    <!-- Verze 1.0.1, 23.2.2012 -->
    <!-- Verze 1.0.2, 23.8.2012 -->
    <!-- Verze 1.1.0, 12.8.2016 -->
    <!-- Verze 1.1.1, 6.10.2016 vypusteni nepovinneho elementu TypOpravneni z UdajVypisType-->
    <!-- Verze 1.1.2, 2.11.2016 doplneni chybovych statusu novych sluzeb-->
    <!-- Verze 1.1.3, 28.11.2016 doplneni chyboveho statusu NEPOVOLENY DATUM ZANIKU -->
    <!-- Verze 1.1.4, 2.12.2016 doplneni chyboveho statusu NEPOVOLENY TYP CINNOSTI -->
    <!-- Verze 1.1.5, 2.12.2016 doplneni chyboveho statusu NEPOVOLENY NAZEV UDAJE -->
    <!-- Verze 1.1.5, 4.1.2017 zmena datoveho typu elementu OdkazRuian pro ROVM, upravy kvuli reklamacim udaju RPP -->
    <!-- Verze 1.1.6, 9.1.2017 pridani a presun datovych struktur pro sluzby RppVypisAgendu2 a RppZmenAgendu, zmena length na maxLength u KodUdajeType, zmena minLength u KodOsType -->
    <!-- Verze 1.1.7, 28.3.2017 doplneni chyboveho statusu NEPOVOLENA KOMBINACE PARAMETRU -->
    <!-- Verze 1.1.8, 4.4.2017 upravy sluzeb ROVM - prejmenovani nekterych datum. elementu, zmeny komentaru, zmena povinnosti atributu stavu-->
    <!-- Verze 1.2.0, 5.10.2017 pridani novych struktur pro sluzbu RppZmenAgendu, novy chybovy status NEPOVOLENY ZPOCHYBNENY CLEN, pridan novy datovy typ DefinovaneOpravneniType, zmena datoveho typu OpravneniTyp ve strukturach OpravneniUdajCinnostniRoleZmenaType, NespravneOpravneniType-->
    <!-- Verze 1.2.1, 16.10.2017 pridan element KodAis do ObjektUdajZmenaType-->
    <!-- Verze 1.3.0, 4.5.2018 doplneni struktur pro nove sluzby, nove chybove statusy-->
    <!-- Verze 1.5.0, 24.9.2019 doplneni struktur pro nove sluzby, nove chybove statusy-->
    <!-- Verze 1.6.0, 24.1.2020 doplneni struktur pro nove sluzby, novy chybovy status ZAZNAM_NENALEZEN-->
    <!-- Verze 1.7.0, 12.6.2020 zmena sluzeb RppVlozPusobnostOvm, RppZmenPusobnostOvm, RppVlozAgendu, RppZmenAgendu-->
    <!-- Verze 1.9.0, 11.8.2020 zmena sluzeb RppVlozPusobnostOvm, RppZmenPusobnostOvm - pridani novych chybovych statusu-->
    <!-- Verze 1.10.0, 15.9.2020 pridani novych chybovych statusu pro RppVypisSeznamSluzebVs, zmena rozsahu nekterych datovych typu-->
    <!-- Verze 1.11.0, 14.9.2021 pridany nove typy IdZmenyType, TypSeznamuType, novy chybovy status AIS NEEXISTUJE -->
    <!-- Verze 1.11.1, 23.9.2021 uprava editacnich sluzeb pro DD3-->
    <!-- Verze 1.11.2, 30.9.2021 pridani dalsich novych sluzeb DD3-->
    <!-- Verze 1.11.4, 6.1.2022 upravy sluzeb sluzeb DD3, vyrazeni nekterych sluzeb-->
    <!-- Verze 1.11.5, 2.3.2022 oprava chyb a upravy sluzeb sluzeb DD3-->
    <!-- Verze 1.12.0, 30.10.2023 pridani novych sluzeb DD5-->
    <!-- Verze 1.13.0, 23.4.2024 upravy pro DD5, prejmenovani UstanoveniPpEselType na UstanoveniPpEsel2Type, vraceni puvodniho typu UstanoveniPpEselType-->
    <xs:import namespace="urn:cz:isvs:reg:schemas:RegTypy:v1" schemaLocation="../../RegTypy.xsd"/>
    <xs:simpleType name="DatumPlatnostiOdType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Datum platnosti od (např. datum platnosti agendy od). 
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="xs:date"/>
    </xs:simpleType>
    <xs:simpleType name="DatumPlatnostiDoType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Datum platnosti do (např. datum platnosti agendy do). 
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="xs:date"/>
    </xs:simpleType>
    <xs:simpleType name="DatumUcinnostiPravnihoPredpisuType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Datum účinnosti právního předpisu. 
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="xs:date"/>
    </xs:simpleType>
    <xs:simpleType name="DatumVydaniPravnihoPredpisuType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Datum vydání právního předpisu. 
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="xs:date"/>
    </xs:simpleType>
    <xs:simpleType name="DatumPravniMociType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Datum právní moci. 
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="xs:date"/>
    </xs:simpleType>
    <xs:simpleType name="DatumVystupuType">
        <xs:annotation>
            <xs:documentation>Datum, ke kterému je požadován výstup.</xs:documentation>
        </xs:annotation>
        <xs:restriction base="xs:date"/>
    </xs:simpleType>
    <xs:simpleType name="DatumUkonceniType">
        <xs:annotation>
            <xs:documentation>Datum ukončení</xs:documentation>
        </xs:annotation>
        <xs:restriction base="xs:date"/>
    </xs:simpleType>
    <xs:simpleType name="NazevAgendyType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Název agendy.
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyNormStringType">
            <xs:maxLength value="300"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="NazevTypuOvmType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Název typu orgánu veřejné moci.
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyNormStringType">
            <xs:maxLength value="250"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="NazevOvmType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Název orgánu veřejné moci.
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyNormStringType">
            <xs:maxLength value="250"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="NazevAisType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Název agendového informačního systému.
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyNormStringType">
            <xs:maxLength value="250"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="VerzeAisType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Verze agendového informačního systému.
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyNormStringType">
            <xs:maxLength value="15"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="OdstavecUstanoveniType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Odstavec ustanovení právního předpisu.
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyNormStringType">
            <xs:maxLength value="30"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="ParagrafUstanoveniType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Paragraf ustanovení právního předpisu.
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyNormStringType">
            <xs:maxLength value="30"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="Text50Type">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Obecný text o maximální délce 50 znaků.
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyNormStringType">
            <xs:maxLength value="50"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="PismenoUstanoveniType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Písmeno ustanovení právního předpisu.
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyNormStringType">
            <xs:maxLength value="30"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="Text255Type">
        <xs:annotation>
            <xs:documentation>Obecný text o maximální délce 255 znaků.</xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyNormStringType">
            <xs:maxLength value="255"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="Text2000Type">
        <xs:annotation>
            <xs:documentation>Obecný text o maximální délce 2000 znaků.</xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyNormStringType">
            <xs:maxLength value="2000"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="TextMaxType">
        <xs:annotation>
            <xs:documentation>Obecný text o maximální délce.</xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyNormStringType">
            <xs:maxLength value="4000"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="EliType">
        <xs:annotation>
            <xs:documentation>ELI odkaz složený z metadat právního předpisu/aktu/smlouvy, příklad: /eli/cz/sb/2002/6/0000-00-00/dokument/norma/cast_1/hlava_3/dil_6/par_172/frag_4298523.</xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyNormStringType"/>
    </xs:simpleType>
    <xs:simpleType name="TextUstanoveniType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Text ustanovení právního předpisu.
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyLineStringType">
            <xs:maxLength value="4000"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="PopisUstanoveniType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Popis ustanovení právního předpisu.
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyLineStringType">
            <xs:maxLength value="4000"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="KodCinnostiAgendyType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Kód činnosti agendy.
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:IdentifikatorType">
            <xs:maxLength value="15"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="NazevCinnostiAgendyType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Název činnosti agendy.
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyNormStringType">
            <xs:maxLength value="2000"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="PopisCinnostiAgendyType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Popis činnosti agendy.
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyLineStringType">
            <xs:maxLength value="2000"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="PopisOpravneniType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Popis rozsahu oprávnění k AIS.
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyLineStringType">
            <xs:maxLength value="2000"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="NazevUdajeAisType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Název údaje AIS.
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyNormStringType">
            <xs:maxLength value="250"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="TypOpravneniUdajeAisType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Typ oprávnění na údaj, výčtový typ.
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="xs:string">
            <xs:maxLength value="1"/>
            <xs:enumeration value="R">
                <xs:annotation>
                    <xs:documentation>Oprávnění na čtení</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="W">
                <xs:annotation>
                    <xs:documentation>Oprávnění na zápis</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="TypPravnihoPredpisuType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Typ právního předpisu.
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="xs:string">
            <xs:maxLength value="50"/>
            <xs:enumeration value="PRAVNI PREDPIS SBIRKY ZAKONU">
                <xs:annotation>
                    <xs:documentation>Právní předpis ze Sbírky zákonů</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="OSTATNI PRAVNI PREDPISY">
                <xs:annotation>
                    <xs:documentation>Ostatní právní předpisy</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="TypUstanoveniType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Název typu ustanovení právního předpisu.
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="xs:string">
            <xs:maxLength value="50"/>
            <xs:enumeration value="HLAVA">
                <xs:annotation>
                    <xs:documentation>Hlava ustanovení</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="PARAGRAF">
                <xs:annotation>
                    <xs:documentation>Paragraf ustanovení</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="ODSTAVEC">
                <xs:annotation>
                    <xs:documentation>Odstavec ustanovení</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="PISMENO">
                <xs:annotation>
                    <xs:documentation>Písmeno ustanovení</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="JINY TYP">
                <xs:annotation>
                    <xs:documentation>Jiný typ ustanovení</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="CisloPravnihoPredpisuType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Číslo právního předpisu.
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyNormStringType">
            <xs:maxLength value="50"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="RokPravnihoPredpisuType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Rok právního předpisu.
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:KladneCeleCisloType"/>
    </xs:simpleType>
    <xs:simpleType name="NazevPravnihoPredpisuType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Název právního předpisu.
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyNormStringType">
            <xs:maxLength value="2000"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="PopisPravaPovinnostiType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Textový popis práva a povinnosti.
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyLineStringType">
            <xs:maxLength value="2000"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="TypPravaPovinnostiType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Typ práva a povinnosti, výčtový typ.
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="xs:string">
            <xs:maxLength value="50"/>
            <xs:enumeration value="PRAVO">
                <xs:annotation>
                    <xs:documentation>Právo</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="POVINNOST">
                <xs:annotation>
                    <xs:documentation>Povinnost</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="OSTATNI">
                <xs:annotation>
                    <xs:documentation>Ostatní</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="IdentifikatorRozhodnutiType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Identifikátor rozhodnutí.
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyNormStringType">
            <xs:maxLength value="250"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="NazevSlaType">
        <xs:annotation>
            <xs:documentation>
                Název SLA.
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyNormStringType">
            <xs:maxLength value="50"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="NazevMetrikyType">
        <xs:annotation>
            <xs:documentation>
                Název metriky SLA.
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyNormStringType">
            <xs:maxLength value="50"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="NazevJednotkyMetrikyType">
        <xs:annotation>
            <xs:documentation>
                Název jednotky metriky SLA.
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyNormStringType">
            <xs:maxLength value="50"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="HodnotaMetrikyType">
        <xs:annotation>
            <xs:documentation>
                Hodnota metriky SLA.
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyNormStringType">
            <xs:maxLength value="50"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="PocetUrednikuOvmType">
        <xs:annotation>
            <xs:documentation>
                Hodnota celkového počtu úředníků na OVM.
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:KladneCeleCisloType"/>
    </xs:simpleType>
    <xs:simpleType name="PocetUvazkuType">
        <xs:annotation>
            <xs:documentation>
                Hodnota počtu úvazků úředních osob, které zastávají roli.
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="xs:decimal">
            <xs:totalDigits value="8"/>
            <xs:fractionDigits value="2"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="PocetUrednichOsobType">
        <xs:annotation>
            <xs:documentation>
                Celkový počet úředníků na OVM v agendě.
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="xs:decimal">
            <xs:totalDigits value="12"/>
            <xs:fractionDigits value="4"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="VerzeSluzbyType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Verze služby.
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyNormStringType">
            <xs:maxLength value="10"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="PopisSluzbyType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Popis služby.
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyLineStringType">
            <xs:maxLength value="2000"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="EndpointSluzbyType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Endpoint, kde je služba poskytována  - uri pro volání služby.
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="xs:anyURI"/>
    </xs:simpleType>
    <xs:simpleType name="DuvodPozastaveniSluzbyType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Důvod pozastavení služby.
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyNormStringType">
            <xs:maxLength value="250"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="PopisVstupnichParametruSluzbyType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Popis vstupních parametrů služby.
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyLineStringType">
            <xs:maxLength value="2000"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="PopisVystupnichParametruSluzbyType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Popis výstupních parametrů služby.
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyLineStringType">
            <xs:maxLength value="2000"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="MaxDobaSluzbySyncType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Maximální doba pro zpracování služby v synchronním režimu.
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:KladneCeleCisloType"/>
    </xs:simpleType>
    <xs:simpleType name="MaxDobaSluzbyAsyncType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Maximální doba pro zpracování služby v asynchronním režimu.
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:KladneCeleCisloType"/>
    </xs:simpleType>
    <xs:simpleType name="PocetOdeslaniSluzbyType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Počet pokusů pro aktivní odeslání odpovědi na asynchronní eGON službu volajícímu AIS.
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:KladneCeleCisloType"/>
    </xs:simpleType>
    <xs:simpleType name="CasOpakovaniSluzbyType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Definice aktivního režimu eGON služby - doba (v minutách) mezi pokusy při aktivním odesílání odpovědi 
                na asynchronní eGON službu volajícímu AIS.
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:KladneCeleCisloType"/>
    </xs:simpleType>
    <xs:simpleType name="MaxPocetVstupSluzbyType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Kvantitativní omezení počtu vstupních parametrů v případě služby hromadné. 
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:KladneCeleCisloType"/>
    </xs:simpleType>
    <xs:simpleType name="TypPopisnehoSouboruSluzbyType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Typ popisného souboru služby (Mime-type).
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyNormStringType">
            <xs:maxLength value="256"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="MaxPocetVystupSluzbyType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Kvantitativní omezení počtu výstupních parametrů v případě služby hromadné. 
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:KladneCeleCisloType"/>
    </xs:simpleType>
    <xs:simpleType name="PoradiSluzbyType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Pořadí volání interní služby, která je součástí kompozice jiné služby. 
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:KladneCeleCisloType"/>
    </xs:simpleType>
    <xs:simpleType name="NazevTypuSluzbyType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Název typu služby (eGON, vnitřní).
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyNormStringType">
            <xs:maxLength value="50"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="NazevKategorieSluzbyType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Název kategorie služby.
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyNormStringType">
            <xs:maxLength value="50"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="NazevRezimuSluzbyType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Název režimu služby (synchronní, asynchronní).
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyNormStringType">
            <xs:maxLength value="50"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="NazevZpusobuInicializaceType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Název způsobu inicializace služby (pull, push).
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyNormStringType">
            <xs:maxLength value="50"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="NazevPovahyOperaceType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Název povahy operace (select, insert, update, delete).
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyNormStringType">
            <xs:maxLength value="50"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="NazevMnozinyVyberuType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Kategorie služby dle množiny výběru (individuální, hromadné).
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyNormStringType">
            <xs:maxLength value="50"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="NazevTypuOdpovediType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Kategorie služby dle typu odpovědi (logická, záznam).
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyNormStringType">
            <xs:maxLength value="50"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="KodProcesnihoModeluType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Kód procesního modelu.
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:IdentifikatorType">
            <xs:maxLength value="15"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="NazevProcesnihoModeluType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Název procesního modelu.
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyNormStringType">
            <xs:maxLength value="250"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="VerzeProcesnihoModeluType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Verze procesního modelu.
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyNormStringType">
            <xs:maxLength value="10"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="NazevKategorieModeluType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Název kategorie procesního modelu.
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyNormStringType">
            <xs:maxLength value="250"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="TypVazbyKCinnostiType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Typ vazby k činnosti.
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="xs:string">
            <xs:maxLength value="50"/>
            <xs:enumeration value="FIXNI VSTUP">
                <xs:annotation>
                    <xs:documentation>
                        Služby mají přesně definovaný seznam vstupních a výstupních údajů, 
                        o každém údaji přiřazeném službě lze rozhodnout, má-li k němu služba oprávnění typu W nebo R.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="VARIABILNI VSTUP">
                <xs:annotation>
                    <xs:documentation>
                        Služby mají proměnný seznam vstupních nebo výstupních údajů, 
                        o každém údaji přiřazeném službě lze rozhodnout, má-li k němu služba oprávnění typu W nebo R.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="VAZBA NA UDAJ">
                <xs:annotation>
                    <xs:documentation>
                        Služby, které souvisí s oprávněním typu R nebo W na určitý údaj.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="BEZ KONTROLY">
                <xs:annotation>
                    <xs:documentation>
                        Služby bez nutnosti kontroly oprávnění.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="SPECIALNI">
                <xs:annotation>
                    <xs:documentation>
                        Služby speciální, nebo takové, které nelze jednoznačně přiřadit podle údajů.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="INTERNI">
                <xs:annotation>
                    <xs:documentation>
                        Interní služba.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="PopisnySouborProcesnihoModeluType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Popisný soubor procesního modelu, XML metadata modelu.
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="xs:base64Binary"/>
    </xs:simpleType>
    <xs:simpleType name="GrafickySouborProcesnihoModeluType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Grafický soubor procesního modelu, seznam obrazových příloh.
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="xs:base64Binary"/>
    </xs:simpleType>
    <xs:simpleType name="StavRppType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Stav údaje v RPP.
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:StavType">
            <xs:enumeration value="spravny"/>
            <xs:enumeration value="nespravny"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="VysledekSubKodRppType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Detailní kód výsledku, výčtový typ.
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="xs:string">
            <xs:enumeration value="OBECNA CHYBA SLUZBY">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Službu nebylo možné provést z důvodu chyby na straně poskytovatel služby
                        (chyba databázového nebo aplikačního serveru, ...).
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="PRAZDNY POVINNY PARAMETR">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Chybí povinný vstupní parametr služby (status není propagován do externího rozhraní).
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="DUPLICITA VSTUPNIHO PARAMETRU">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Vstup služby obsahuje více než jeden záznam podřízené entity se stejným klíčem.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="NEVALIDNI DATA">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Aplikační data nejsou validní podle XSD dokumentů.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="NEVALIDNI ZADOST">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Kód služby neodpovídá XML struktuře žádosti.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="CHYBA ROZSAHU">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Chyba rozsahu nebo chyba závislosti vstupních parametrů.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="NEIDENTIFIKOVANA ZADNA ZMENA">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Nebyla identifikována změna údaje (údajů).
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="NEPOVOLENY KOD AGENDY">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Kód agendy včetně jeho počátku platnosti není uveden nebo není platný
                        v aktuálním seznamu agend.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="NEPOVOLENY KOD OVM">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Kód OVM není uveden nebo není platný v aktuálním seznamu OVM
                        nebo není povolený pro agendu.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="NEPOVOLENY KOD AIS">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Kód AIS není uveden nebo není platný v aktuálním číselníku AIS.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="NEPOVOLENY KOD IS">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Kód IS není uveden nebo není platný v aktuálním číselníku IS.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="NEPOVOLENY KOD CINNOSTI">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Kód činnosti není uveden nebo není platný v aktuálním seznamu činností agendy.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="NEPOVOLENY KOD SLUZBY">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Kód služby není uveden nebo není platný v aktuálním seznamu služeb.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="NEPOVOLENY KOD KATEGORIE OVM">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Kód kategorie OVM není uveden nebo není platný v aktuálním seznamu kategorií OVM.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="NEPOVOLENY KOD SPUU">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Kód SPUU není uveden nebo není platný v aktuálním seznamu SPUU.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="NEPOVOLENY KOD KATEGORIE SPUU">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Kód kategorie SPUU není uveden nebo není platný v aktuálním seznamu kategorií SPUU.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="NEPOVOLENY KOD DATOVE SCHRANKY">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Kód datové schránky nebyl nalezen v seznamu povolených.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="NEPOVOLENY KOD STATU">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Kód státu není uveden nebo není platný v aktuálním číselníku států.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="NEPOVOLENY KOD UKONU">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Kód úkonu není uveden nebo není platný v aktuálním číselníku úkonů.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="NEPOVOLENY KOD PRACOVISTE">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Kód pracoviště není uveden nebo není platný v aktuálním číselníku pracovišť.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="NEPOVOLENY KOD CISELNIKU">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Kód číselníku nebo katalogu není uveden nebo není platný v aktuálním číselníku.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="NEPOVOLENY KOD OBJEKTU">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Kód objektu údaje není uveden nebo není platný v aktuálním číselníku.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="NEPOVOLENY NAZEV UDAJE AIS">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Název údaje AIS není uveden nebo není platný v aktuálním číselníku údajů AIS.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="NEPOVOLENY NAZEV UDAJE">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Název údaje není uveden nebo není platný v aktuálním seznamu údajů.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="NEPOVOLENY NAZEV SLA">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Název SLA není uveden nebo není platný v aktuálním číselníku SLA.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="NEPOVOLENY NAZEV METRIKY">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Název metriky není uveden nebo není platný v aktuálním číselníku metrik.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="NEPOVOLENY NAZEV TYPU OVM">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Název typu OVM není uveden nebo není platný v aktuálním číselníku typů OVM
                        nebo není povolený pro agendu.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="NEPOVOLENY NAZEV TYPU SLUZBY">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Název typu služby není uveden nebo není platný v aktuálním číselníku typů služeb.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="NEPOVOLENY NAZEV KATEGORIE SLUZBY">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Název kategorie služby není uveden nebo není platný v aktuálním číselníku kategorií služeb.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="NEPOVOLENY NAZEV REZIMU SLUZBY">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Název režimu služby není uveden nebo není platný v aktuálním číselníku režimů služeb.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="NEPOVOLENY NAZEV INCIALIZACE SLUZBY">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Název způsobu incializace služby není uveden nebo není platný v aktuálním číselníku způsobů inicializací služeb.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="NEPOVOLENY NAZEV OPERACE SLUZBY">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Název povahy operace služby není uveden nebo není platný v aktuálním číselníku povah operací služeb.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="NEPOVOLENY NAZEV MNOZINY SLUZBY">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Název množiny výběru služby není uveden nebo není platný v aktuálním číselníku množin výběru služeb.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="NEPOVOLENY NAZEV TYPU ODPOVEDI SLUZBY">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Název typu odpovědi služby není uveden nebo není platný v aktuálním číselníku typů odpovědí služeb.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="NEPOVOLENY NAZEV TYPU OVM">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Název typu OVM není uveden nebo není platný v aktuálním číselníku typů OVM.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="NEPOVOLENY NAZEV KATEGORIE MODELU">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Název kategorie modelu není uveden nebo není platný v aktuálním seznamu kategorií modelu.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="NEPOVOLENY NAZEV STATU">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Nepovolený předaný název státu.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="NEPOVOLENE AIFO">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Aifo není uvedeno mezi identifikátory referenčních údajů.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="NEPOVOLENE ICO">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Ičo není uvedeno mezi identifikátory referenčních údajů.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="NEPOVOLENY IDENTIFIKATOR RUIAN">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Identifikátor RUIAN není uveden mezi identifikátory referenčních údajů.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="NEPOVOLENY DATUM PLATNOSTI">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Chyba porovnání data platnosti s původní hodnotou nebo jinou závislou hodnotou data platnosti.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="NEPOVOLENY DATUM ZANIKU">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Chyba porovnání data zániku agendy s původní hodnotou nebo jinou závislou hodnotou data platnosti.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="NEPOVOLENY DATUM">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Hodnota data musí být větší než aktuální datum.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="NEPOVOLENA VERZE">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Chyba porovnání původní verze s aktuální verzí.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="NEPOVOLENA CINNOSTNI ROLE">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Hodnota činnostní role (kombinace povoleného OVM a čnnosti agendy) není povolena.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="NEPOVOLENY TYP VAZBY K CINNOSTI PRO TYP SLUZBY">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Hodnota typu vazby k činnosti není povolena pro uvedený typ služby.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="NEPOVOLENY TYP OPRAVNENI">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Hodnota v typu oprávnění není povolena.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="NEPOVOLENY TYP PRAVNIHO PREDPISU">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Hodnota typu právního předpisu není povolena.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="NEPOVOLENA DATOVA SCHRANKA">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Datová schánka není evidována k danému OVM.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="NEPOVOLENY TYP CINNOSTI">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Hodnota v typu činnosti není povolena (není uvedena nebo není platná v aktálním seznamu typů činností).
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="NEPOVOLENY TYP OPERACE">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Hodnota typu operace není povolena.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="NEPOVOLENY ZPOCHYBNENY CLEN">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Neúspěšná kontrola zpochybněného člena.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="NEPOVOLENA KOMBINACE PARAMETRU">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Nepovolená kombinace parametrů.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="NEPOVOLENY IDENTIFIKATOR UKONU">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Hodnota identifikátoru úkonu není povolena (není uvedena nebo není platná v aktálním seznamu úkonů).
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="NEPOVOLENY_IDENTIFIKATOR_ SLUZBYVS">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Hodnota identifikátoru služby VS není povolena (není uvedena nebo není platná v aktálním seznamu služeb VS).
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="NEVYPLNENA DATOVA SCHRANKA">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Název údaje pro datovou schránku není vyplněn k danému OVM.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="UKONCENA PLATNOST AGENDY">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Agenda není platná k aktuálnímu datu.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="PRAZDNY SEZNAM">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Pro zadané vstupní parametry nebyl nalezen žádný vyhovující záznam.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="CHYBA MAPA AIFO">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Neshoda mezi použitými AIFO v datové části a mapě nebo mapa chybí.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="CHYBA SEZNAM ADRES">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Neshoda mezi použitými kódy RUIAN v datové části a seznamu nebo seznam chybí.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="CHYBA SEZNAM PRVKU">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Neshoda mezi použitými kódy prvků RUIAN v datové části a seznamu nebo seznam chybí.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="CHYBA SEZNAM ICO">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Neshoda mezi použitými IČO v datové části a seznamu nebo seznam chybí.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="ROZHODNUTI NEEXISTUJE">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Rozhodnutí není k dispozici (neexistuje nebo odepřen přístup).
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="PUSOBNOST NEEXISTUJE">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Působnost není k dispozici (neexistuje nebo odepřen přístup).
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="SLUZBA NEEXISTUJE NEBO NENI PLATNA">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Služba s daným kódem a verzí není k dispozici nebo není platná v aktuálním seznamu služeb.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="PROCESNI MODEL NEEXISTUJE NEBO NENI PLATNY">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Procesní model s daným kódem a verzí není k dispozici nebo není platný v aktuálním seznamu procesních modelů.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="PRAVNI PREDPIS NEEXISTUJE NEBO NENI PLATNY">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Právní předpis s danou identifikací není k dispozici nebo není platný v aktuálním seznamu předpisů.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="USTANOVENI NEEXISTUJE">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Ustanovení s danou identifikací není k dispozici.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="VYUZITI NEEXISTUJE">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Pro zadané IČO nebo AIFO a období neexistuje žádný záznam o využití údajů.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="ENTITA NEEXISTUJE">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                       Neexistující typ entity.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="VAZBA SLUZBA CINNOST AGENDY NEEXISTUJE">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Vazba mezi službou a činností agendy neexistuje.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="VAZBA TYP OVM OVM NEEXISTUJE">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Vazba mezi typem OVM a OVM neexistuje.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="VAZBA AGENDA AIS NEEXISTUJE">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Vazba mezi agendou a AIS neexistuje.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="DUPLICITA NAZVU SLA">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Název SLA je již uveden v aktuálním číselníku SLA.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="DUPLICITA KODU AGENDY">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Agenda s tímto kódem již existuje v daném intervalu platnosti.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="DUPLICITA PUSOBNOSTI">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Deprecated.
                    </xs:documentation>
                    <xs:documentation xml:lang="cs">
                        Působnost s těmito údaji již existuje.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="DUPLICITA SLUZBY">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Služba s těmito údaji již existuje.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="DUPLICITA ROZHODNUTI">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Rozhodnutí s těmito údaji již existuje.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="DUPLICITA PROCESNIHO MODELU">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Procesní model s těmito údaji již existuje.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="DUPLICITA PRAVNIHO PREDPISU">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Právní předpis s těmito údaji již existuje.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="DUPLICITA VAZBY SLUZBA CINNOST AGENDY">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Vazba mezi službou a činností agendy již existuje.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="DUPLICITA NAZVU REZIMU SLUZBY">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Název režimu služby je již uveden v aktuálním číselníku.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="DUPLICITA NAZVU KATEGORIE SLUZBY">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Název kategorie služby je již uveden v aktuálním číselníku.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="DUPLICITA NAZVU TYPU SLUZBY">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Název typu služby je již uveden v aktuálním číselníku.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="DUPLICITA NAZVU INICIALIZACE SLUZBY">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Název inicializace služby je již uveden v aktuálním číselníku.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="DUPLICITA NAZVU OPERACE SLUZBY">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Název operace služby je již uveden v aktuálním číselníku.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="DUPLICITA NAZVU MNOZINY SLUZBY">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Název množiny služby je již uveden v aktuálním číselníku.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="DUPLICITA NAZVU TYPU ODPOVEDI">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Název typu odpovědi služby je již uveden v aktuálním číselníku.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="DUPLICITA NAZVU UDAJE AIS">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Název údaje AIS je již uveden v aktuálním číselníku.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="DUPLICITA NAZVU TYPU OVM">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Název názvu typu OVM je již uveden v aktuálním číselníku.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="DUPLICITA NAZVU TYPU CINNOSTI">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Název typu činnosti je již uveden v aktuálním číselníku.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="DUPLICITA NAZVU METRIKY">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Název metriky je již uveden v aktuálním číselníku.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="DUPLICITA KODU IS">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Kód informačního systému je již uveden v aktuálním číselníku.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="DUPLICITA KODU OVM">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Kód orgánu veřejné moci je již uveden v aktuálním číselníku.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="DUPLICITA KODU SPUU">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Kód SPUÚ je již uveden v aktuálním číselníku.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="DUPLICITA VAZBY TYP OVM OVM">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Vazba mezi OVM a typem OVM již existuje.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="DUPLICITA KODU OBJEKTU">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Kód objektu údajů je již uveden v předaném seznamu objektů údajů.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="DUPLICITA KODU UDAJE">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Kód údaje je již uveden v předaném seznamu údajů k objektu údajů.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="DUPLICITA KODU CINNOSTI">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Kód činnosti je již uveden v předaném seznamu činností.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="DUPLICITA KODU AIS">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Kód AIS je již uveden v předaném seznamu AIS.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="DUPLICITA KODU KATEGORIE OVM">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Kód kategorie OVM je již uveden v aktuálním číselníku jádra RPP.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="DUPLICITA KODU KATEGORIE SPUU">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Kód kategorie SPUU je již uveden v aktuálním číselníku jádra RPP.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="DUPLICITA KODU UKONU">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Kód úkonu je již uveden v předaném seznamu úkonů.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="DUPLICITA DATOVE SCHRANKY">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Datová schánka je již evidována k danému OVM.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="CHYBA VAZBY SLA">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        SLA je použito ve službách.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="CHYBI CINNOST">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Agenda musí mít přiřazenu alespoň jednu činnost.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="CHYBI OPRAVNENY SUBJEKT">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Agenda musí mít přiřazen alespoň jeden OVM / SPUU / Kategorii OVM / Kategorii SPUU.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="CHYBI USTANOVENI PRAVNIHO PREDPISU">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Agenda musí mít přiřazeno ustanovení právního předpisu, na jehož základě OVM vykonává působnost v agendě.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="CHYBNA STRUKTURA USTANOVENI">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Ustanovení má neplatnou strukturu.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="ZPOCHYBNENA AGENDA">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Agenda je ve stavu zpochybnění.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="PREKROCEN POCET">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Překročen počet povolených záznamů.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="CHYBA OPRAVNENI">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Není oprávnění na provedení akce, rozhodnutí RPP.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="ZAZNAM NENALEZEN">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Pro zadané vstupní parametry nebyl nalezen žádný záznam.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="SPUU NEMA SLUZBY">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        SPUU nemá služby VS v působnosti.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="SPUU NEMA PREVEDENI">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        SPUU nepřevádí působnost na jiné SPUU.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="AIS NEEXISTUJE">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Ais neexistuje.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="NEVALIDNI AGENDA">
                <xs:annotation>
                    <xs:documentation xml:lang="cs">
                        Agenda není validní.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="KodSpuuType">
        <xs:annotation>
            <xs:documentation>Kód soukromoprávního uživatele údajů</xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:IdentifikatorType">
            <xs:maxLength value="36"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="KodKategorieType">
        <xs:annotation>
            <xs:documentation>Kód kategorie OVM/SPUÚ</xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:IdentifikatorType">
            <xs:maxLength value="15"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="KodUdajeType">
        <xs:annotation>
            <xs:documentation>Kód údaje</xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyNormStringType">
            <xs:maxLength value="20"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="KodOsType">
        <xs:annotation>
            <xs:documentation>Kód oprávněné osoby</xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:IdentifikatorType">
            <xs:minLength value="3"/>
            <xs:maxLength value="32"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="OpravneniUdajTypType">
        <xs:restriction base="xs:string">
            <xs:enumeration value="RH">
                <xs:annotation>
                    <xs:documentation>Čtení aktuálních i historických hodnot údajů</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="R">
                <xs:annotation>
                    <xs:documentation>Čtení aktuálních hodnot údajů</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="RN">
                <xs:annotation>
                    <xs:documentation>Čtení aktuálních hodnot údajů i notifikací změn</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="W">
                <xs:annotation>
                    <xs:documentation>Zápis i čtení</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="RHN">
                <xs:annotation>
                    <xs:documentation>Čtení aktuálních i historických hodnot údajů i notifikací změn</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="DefinovaneOpravneniType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Typ oprávnění přístupu k údajům.
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyNormStringType">
            <xs:maxLength value="20"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="PopisUdajeType">
        <xs:annotation>
            <xs:documentation>Popis údaje</xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyNormStringType">
            <xs:maxLength value="255"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="DatumVznikuAgendyType">
        <xs:restriction base="xs:date"/>
    </xs:simpleType>
    <xs:simpleType name="DatumZanikuAgendyType">
        <xs:restriction base="xs:date"/>
    </xs:simpleType>
    <xs:simpleType name="PoradiCinnostiType">
        <xs:restriction base="reg:KladneCeleCisloType"/>
    </xs:simpleType>
    <xs:simpleType name="TypCinnostiType">
        <xs:restriction base="reg:NonEmptyNormStringType">
            <xs:maxLength value="10"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="PopisTypuCinnostiType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Popis typu činnosti.
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyNormStringType">
            <xs:maxLength value="255"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="NazevObjektuType">
        <xs:restriction base="reg:NonEmptyNormStringType">
            <xs:maxLength value="100"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="PopisObjektuType">
        <xs:restriction base="reg:NonEmptyNormStringType">
            <xs:maxLength value="255"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="KodObjektuUdajeType">
        <xs:annotation>
            <xs:documentation>Kód objektu údaje</xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:IdentifikatorType"/>
    </xs:simpleType>
    <xs:simpleType name="NazevKategorieType">
        <xs:annotation>
            <xs:documentation>Název kategorie OVM/SPUÚ</xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyNormStringType">
            <xs:maxLength value="250"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="DatumPrimarnihoZapisuType">
        <xs:annotation>
            <xs:documentation>Datum primárního zápisu</xs:documentation>
        </xs:annotation>
        <xs:restriction base="xs:date"/>
    </xs:simpleType>
    <xs:simpleType name="TypOvmType">
        <xs:restriction base="xs:string">
            <xs:enumeration value="B">
                <xs:annotation>
                    <xs:documentation>z ROB</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="O">
                <xs:annotation>
                    <xs:documentation>ostatní</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="S">
                <xs:annotation>
                    <xs:documentation>z ROS</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="AdresaTextemType">
        <xs:annotation>
            <xs:documentation>Adresa textem</xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyNormStringType">
            <xs:maxLength value="1500"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="FoTextemType">
        <xs:annotation>
            <xs:documentation>Jméno a příjmení fyzické osoby</xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyNormStringType">
            <xs:maxLength value="256"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="DatumVznikuType">
        <xs:restriction base="xs:date"/>
    </xs:simpleType>
    <xs:simpleType name="DatumZanikuType">
        <xs:restriction base="xs:date"/>
    </xs:simpleType>
    <xs:simpleType name="KodPravniFormyType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">Kód právní formy osoby v ROS.</xs:documentation>
        </xs:annotation>
        <xs:restriction base="xs:int">
            <xs:minInclusive value="100"/>
            <xs:maxInclusive value="999"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="NazevSpuuType">
        <xs:annotation>
            <xs:documentation>Název SPUÚ</xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyNormStringType">
            <xs:maxLength value="2000"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="CasZmenyOdType">
        <xs:restriction base="reg:CasovaZnackaType"/>
    </xs:simpleType>
    <xs:simpleType name="CasZmenyDoType">
        <xs:restriction base="reg:CasovaZnackaType"/>
    </xs:simpleType>
    <xs:simpleType name="CasZpracovaniType">
        <xs:annotation>
            <xs:documentation>Datum a čas zpracování.</xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:CasovaZnackaType"/>
    </xs:simpleType>
    <xs:simpleType name="TextovaHodnotaType">
        <xs:restriction base="reg:NonEmptyLineStringType">
            <xs:maxLength value="2000"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="NazevPusobnostiType">
        <xs:restriction base="reg:NonEmptyNormStringType">
            <xs:maxLength value="2000"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="PopisPusobnostiType">
        <xs:restriction base="reg:NonEmptyLineStringType">
            <xs:maxLength value="2000"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="TypIsType">
        <xs:restriction base="reg:NonEmptyNormStringType">
            <xs:maxLength value="10"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="TypUdajeType">
        <xs:annotation>
            <xs:documentation>Typ údaje.</xs:documentation>
        </xs:annotation>
        <xs:restriction base="xs:string">
            <xs:maxLength value="50"/>
            <xs:enumeration value="REFERENCNI"/>
            <xs:enumeration value="NEREFERENCNI"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="NazevOpravneniAisType">
        <xs:restriction base="reg:NonEmptyNormStringType">
            <xs:maxLength value="250"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="KodStatuType">
        <xs:annotation>
            <xs:documentation>Kód statu.</xs:documentation>
        </xs:annotation>
        <xs:restriction base="xs:int">
            <xs:maxInclusive value="99999"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="NazevStatuType">
        <xs:annotation>
            <xs:documentation>Název státu.</xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyNormStringType">
            <xs:maxLength value="255"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="KodPracovisteType">
        <xs:annotation>
            <xs:documentation>Kód pracoviště.</xs:documentation>
        </xs:annotation>
        <xs:restriction base="xs:long"/>
    </xs:simpleType>
    <xs:simpleType name="IdentifikatorUkonuType">
        <xs:annotation>
            <xs:documentation>Identifikátor úkonu</xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyNormStringType">
            <xs:maxLength value="15"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="NazevUkonuType">
        <xs:annotation>
            <xs:documentation>Název úkonu</xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyNormStringType">
            <xs:maxLength value="255"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="FormaUkonuType">
        <xs:annotation>
            <xs:documentation>Název úkonu</xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyNormStringType">
            <xs:maxLength value="50"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="UkonElektronickyType">
        <xs:annotation>
            <xs:documentation>Umožnění elektronické formy úkonu.</xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyNormStringType">
            <xs:maxLength value="50"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="PopisUkonuType">
        <xs:annotation>
            <xs:documentation>Popis reklamace</xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyLineStringType">
            <xs:maxLength value="2000"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="KomentarUkonuType">
        <xs:annotation>
            <xs:documentation>Popis reklamace</xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyLineStringType">
            <xs:maxLength value="2000"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="TypSubjektuType">
        <xs:annotation>
            <xs:documentation>Typ subjektu</xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyNormStringType">
            <xs:maxLength value="150"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="SubjektType">
        <xs:annotation>
            <xs:documentation>Subjekt</xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyNormStringType">
            <xs:maxLength value="150"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="MistniPrislusnostType">
        <xs:annotation>
            <xs:documentation>Vymezení subjektu</xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyNormStringType">
            <xs:maxLength value="150"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="KratkyNazevType">
        <xs:annotation>
            <xs:documentation>Název kratší než 40 znaků s diakritikou.</xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyNormStringType">
            <xs:maxLength value="40"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="DlouhyNazevType">
        <xs:annotation>
            <xs:documentation>Libovolný název s diakritikou.</xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyNormStringType">
            <xs:maxLength value="255"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="AsciiNazevType">
        <xs:annotation>
            <xs:documentation>Krátký název bez diakritiky.</xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyNormStringType">
            <xs:maxLength value="40"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="DatovyTypType">
        <xs:annotation>
            <xs:documentation>Datový typ s namespace.</xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyNormStringType">
            <xs:maxLength value="2048"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="DefPracovisteType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Definice zda a jak definovat úkon u působnosti, výčtový typ.
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="xs:string">
            <xs:enumeration value="VZDY">
                <xs:annotation/>
            </xs:enumeration>
            <xs:enumeration value="VOLBA_NEPOSKYT">
                <xs:annotation/>
            </xs:enumeration>
            <xs:enumeration value="NEPOSKYTUJE">
                <xs:annotation/>
            </xs:enumeration>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="IdZmenyType">
        <xs:restriction base="xs:long"/>
    </xs:simpleType>
    <xs:simpleType name="TypSeznamuType">
        <xs:annotation>
            <xs:documentation>Typ seznamu pro zjištění důvodu neplatnosti oprávnění.</xs:documentation>
        </xs:annotation>
        <xs:restriction base="xs:string">
            <xs:maxLength value="20"/>
            <xs:enumeration value="AGENDA CERPAJICI">
                <xs:annotation>
                    <xs:documentation>Zneplatnění oprávnění pro agendu čerpající oprávnění</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="OVM SPUU">
                <xs:annotation>
                    <xs:documentation>Zneplatnění oprávnění pro OVM (SPUU)</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="AIS">
                <xs:annotation>
                    <xs:documentation>Zneplatnění oprávnění pro AIS podporující výkon agendy</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="UDAJ">
                <xs:annotation>
                    <xs:documentation>Zneplatnění oprávnění pro údaj agendy</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="OVEROVACI PROVOZ">
                <xs:annotation>
                    <xs:documentation>Zneplatnění oprávnění pro ověřovací provoz</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="DefinicePpEselType">
        <xs:annotation>
            <xs:documentation>Popis definice právního předpisu v ESEL.
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyNormStringType">
            <xs:maxLength value="4000"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="UstanoveniPpEselType">
        <xs:annotation>
            <xs:documentation>Definice právního předpisu v ESEL.
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyNormStringType">
            <xs:maxLength value="2000"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="SlozeniPpEselType">
        <xs:annotation>
            <xs:documentation>Popis definice právního předpisu v ESEL.
            </xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyNormStringType">
            <xs:maxLength value="4000"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="PoznamkaType">
        <xs:annotation>
            <xs:documentation>Poznámka.</xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyLineStringType">
            <xs:maxLength value="4000"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="HodnotaCharakteristikyType">
        <xs:annotation>
            <xs:documentation>Hodnota charakteristiky.</xs:documentation>
        </xs:annotation>
        <xs:restriction base="xs:long"/>
    </xs:simpleType>
    <xs:simpleType name="DatovaSadaType">
        <xs:annotation>
            <xs:documentation>URL/IRI odkaz na datovou sadu</xs:documentation>
        </xs:annotation>
        <xs:restriction base="xs:string">
            <xs:maxLength value="1024"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="KodKontextuType">
        <xs:annotation>
            <xs:documentation>Kód kontextu</xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyNormStringType">
            <xs:maxLength value="100"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="NazevKontextuType">
        <xs:annotation>
            <xs:documentation>Název kontextu.</xs:documentation>
        </xs:annotation>
        <xs:restriction base="xs:string">
            <xs:maxLength value="500"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="IriUmisteniType">
        <xs:annotation>
            <xs:documentation>Umístění datové sady s údajem.</xs:documentation>
        </xs:annotation>
        <xs:restriction base="xs:string">
            <xs:maxLength value="1024"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="TextDuvoduType">
        <xs:annotation>
            <xs:documentation>Text</xs:documentation>
        </xs:annotation>
        <xs:restriction base="xs:string">
            <xs:maxLength value="4000"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="KodCinnostiAgendyPrurezType">
        <xs:annotation>
            <xs:documentation>Kód činnostní role: PCcislo.</xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:IdentifikatorType">
            <xs:maxLength value="15"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="TextZduvodneniType">
        <xs:annotation>
            <xs:documentation>Text zdůvodnění</xs:documentation>
        </xs:annotation>
        <xs:restriction base="reg:NonEmptyLineStringType">
            <xs:maxLength value="4000"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:complexType name="AgendaAbstractType" abstract="true">
        <xs:annotation>
            <xs:documentation>
                Agenda, předek.
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="Kod" type="reg:KodAgendyType"/>
            <xs:element name="Nazev" type="NazevAgendyType"/>
            <xs:element name="DatumPlatnostiOd" type="DatumPlatnostiOdType"/>
            <xs:element name="DatumPlatnostiDo" type="DatumPlatnostiDoType" minOccurs="0"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="CinnostAgendyAbstractType" abstract="true">
        <xs:annotation>
            <xs:documentation>
                Činnost agendy, předek.
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="Kod" type="KodCinnostiAgendyType"/>
            <xs:element name="Nazev" type="NazevCinnostiAgendyType"/>
            <xs:element name="Popis" type="PopisCinnostiAgendyType" minOccurs="0"/>
            <xs:element name="DatumPlatnostiOd" type="DatumPlatnostiOdType"/>
            <xs:element name="DatumPlatnostiDo" type="DatumPlatnostiDoType" minOccurs="0"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="OpravneniAisAbstractType" abstract="true">
        <xs:annotation>
            <xs:documentation>
                Oprávnění přístupu k AIS, předek.
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="Opravneni" type="PopisOpravneniType" minOccurs="0"/>
            <xs:element name="SeznamUstanoveni" type="SeznamPravnichUstanoveniPredpisType" minOccurs="0"/>
            <xs:element name="SeznamUdajuAis" type="SeznamUdajuAisOpravneniType" minOccurs="0"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="SluzbaAbstractType" abstract="true">
        <xs:annotation>
            <xs:documentation>
                Údaje o službě, předek.
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="Kod" type="reg:KodSluzbyType"/>
            <xs:element name="Verze" type="VerzeSluzbyType"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="InformacniSystemAbstractType" abstract="true">
        <xs:annotation>
            <xs:documentation>
                Agendový informační systém, předek.
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="Kod" type="reg:KodAisType"/>
            <xs:element name="Nazev" type="NazevAisType"/>
            <xs:element name="Verze" type="VerzeAisType" minOccurs="0"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="ProcesniModelAbstractType" abstract="true">
        <xs:annotation>
            <xs:documentation>
                Údaje o procesním modelu, předek.
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="Kod" type="KodProcesnihoModeluType"/>
            <xs:element name="Verze" type="VerzeProcesnihoModeluType"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="SeznamNazvuTypuOvmType">
        <xs:annotation>
            <xs:documentation>
                Seznam názvů typů OVM.
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="NazevTypuOvm" type="NazevTypuOvmType" maxOccurs="unbounded"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="OvmType">
        <xs:annotation>
            <xs:documentation>
                Orgán veřejné moci.
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="Kod" type="reg:KodOvmType"/>
            <xs:element name="Nazev" type="NazevOvmType"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="SeznamOvmType">
        <xs:annotation>
            <xs:documentation>
                Seznam OVM.
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="Ovm" type="OvmType" maxOccurs="unbounded"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="UdajAisType">
        <xs:annotation>
            <xs:documentation>
                Údaj AIS.
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="Nazev" type="NazevUdajeAisType"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="UdajAisOpravneniAisType">
        <xs:annotation>
            <xs:documentation>
                Údaj AIS ve vztahu k oprávnění AIS.
            </xs:documentation>
        </xs:annotation>
        <xs:complexContent>
            <xs:extension base="UdajAisType">
                <xs:sequence>
                    <xs:element name="TypOpravneniUdaje" type="TypOpravneniUdajeAisType"/>
                </xs:sequence>
            </xs:extension>
        </xs:complexContent>
    </xs:complexType>
    <xs:complexType name="SeznamUdajuAisOpravneniType">
        <xs:annotation>
            <xs:documentation>
                Seznam údajů AIS ve vztahu k oprávnění.
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="UdajAisOpravneniAis" type="UdajAisOpravneniAisType" maxOccurs="unbounded"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="PravniUstanoveniPredpisType">
        <xs:annotation>
            <xs:documentation>
                Údaje pro jednoznačnou identifikaci právního předpisu a jeho ustanovení.
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="CisloPravnihoPredpisu" type="CisloPravnihoPredpisuType" minOccurs="0"/>
            <xs:element name="RokPravnihoPredpisu" type="RokPravnihoPredpisuType" minOccurs="0"/>
            <xs:element name="NazevPravnihoPredpisu" type="NazevPravnihoPredpisuType" minOccurs="0"/>
            <xs:element name="ParagrafUstanoveni" type="ParagrafUstanoveniType" minOccurs="0"/>
            <xs:element name="OdstavecUstanoveni" type="OdstavecUstanoveniType" minOccurs="0"/>
            <xs:element name="PismenoUstanoveni" type="PismenoUstanoveniType" minOccurs="0"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="SeznamPravnichUstanoveniPredpisType">
        <xs:annotation>
            <xs:documentation>
                Seznam jednoznačných identifikací právních předpisů a jejich ustanovení.
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="PravniUstanoveniPredpis" type="PravniUstanoveniPredpisType" maxOccurs="unbounded"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="IdentifikatorReferencnihoUdajeType">
        <xs:choice>
            <xs:element name="Ico" type="reg:IcoType"/>
            <xs:element name="Aifo" type="reg:LokalniAifoType"/>
            <xs:element name="OdkazRuian" type="reg:IdentifikatorRuianType"/>
        </xs:choice>
    </xs:complexType>
    <xs:complexType name="PravoPovinnostType">
        <xs:annotation>
            <xs:documentation>
                Údaje o právu a povinnosti.
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="Text" type="PopisPravaPovinnostiType"/>
            <xs:element name="Typ" type="TypPravaPovinnostiType"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="PravoPovinnostOvmType">
        <xs:annotation>
            <xs:documentation>
                Údaje o právu nebo povinnosti na základě kterého orgán veřejné moci rozhodl
                včetně seznamu identifikátorů osob nebo obyvatel, ke kterým se PP vztahuje.
            </xs:documentation>
        </xs:annotation>
        <xs:complexContent>
            <xs:extension base="PravoPovinnostType">
                <xs:sequence>
                    <xs:element name="SeznamIdentifikatoruReferencnihoUdaje" minOccurs="0">
                        <xs:complexType>
                            <xs:sequence>
                                <xs:element name="Ico" type="reg:IcoType" minOccurs="0" maxOccurs="unbounded"/>
                                <xs:element name="Aifo" type="reg:LokalniAifoType" minOccurs="0" maxOccurs="unbounded"/>
                                <xs:element name="OdkazRuian" type="reg:IdentifikatorRuianType" minOccurs="0" maxOccurs="unbounded"/>
                            </xs:sequence>
                        </xs:complexType>
                    </xs:element>
                </xs:sequence>
            </xs:extension>
        </xs:complexContent>
    </xs:complexType>
    <xs:complexType name="IdentifikacePusobnostiType">
        <xs:sequence>
            <xs:element name="KodAgendy" type="reg:KodAgendyType"/>
            <xs:element name="DatumPlatnostiAgendyOd" type="DatumPlatnostiOdType"/>
            <xs:element name="KodOvm" type="reg:KodOvmType"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="PopisnySouborSluzbyType">
        <xs:simpleContent>
            <xs:extension base="xs:base64Binary">
                <xs:attribute name="popisnySouborTyp" type="TypPopisnehoSouboruSluzbyType" use="required"/>
            </xs:extension>
        </xs:simpleContent>
    </xs:complexType>
    <xs:complexType name="ProcesniModelType">
        <xs:annotation>
            <xs:documentation>
                Údaje o procesním modelu.
            </xs:documentation>
        </xs:annotation>
        <xs:complexContent>
            <xs:extension base="ProcesniModelAbstractType">
                <xs:sequence>
                    <xs:element name="Nazev" type="NazevProcesnihoModeluType"/>
                    <xs:element name="NazevKategorieModelu" type="NazevKategorieModeluType"/>
                    <xs:sequence minOccurs="0">
                        <xs:element name="KodAgendy" type="reg:KodAgendyType"/>
                        <xs:element name="DatumPlatnostiAgendyOd" type="DatumPlatnostiOdType"/>
                        <xs:element name="KodCinnostiAgendy" type="KodCinnostiAgendyType" minOccurs="0"/>
                    </xs:sequence>
                    <xs:element name="PopisnySoubor" type="PopisnySouborProcesnihoModeluType"/>
                    <xs:element name="GrafickySoubor" type="GrafickySouborProcesnihoModeluType"/>
                </xs:sequence>
            </xs:extension>
        </xs:complexContent>
    </xs:complexType>
    <xs:complexType name="PravniPredpisType">
        <xs:annotation>
            <xs:documentation>
                Údaje o právním předpisu.
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="Cislo" type="CisloPravnihoPredpisuType" minOccurs="0"/>
            <xs:element name="Rok" type="RokPravnihoPredpisuType" minOccurs="0"/>
            <xs:element name="Nazev" type="NazevPravnihoPredpisuType" minOccurs="0"/>
            <xs:element name="DatumUcinnosti" type="DatumUcinnostiPravnihoPredpisuType" minOccurs="0"/>
            <xs:element name="DatumVydani" type="DatumVydaniPravnihoPredpisuType" minOccurs="0"/>
            <xs:element name="Typ" type="TypPravnihoPredpisuType"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="UstanoveniType">
        <xs:annotation>
            <xs:documentation>
                Údaje o ustanovení právního předpisu.
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:choice>
                <xs:element name="Paragraf" type="ParagrafUstanoveniType"/>
                <xs:element name="Odstavec" type="OdstavecUstanoveniType"/>
                <xs:element name="Pismeno" type="PismenoUstanoveniType"/>
            </xs:choice>
            <xs:element name="Popis" type="PopisUstanoveniType" minOccurs="0"/>
            <xs:element name="Text" type="TextUstanoveniType" minOccurs="0"/>
            <xs:element name="Typ" type="TypUstanoveniType"/>
            <xs:element name="SeznamUstanoveni" type="SeznamUstanoveniType" minOccurs="0"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="SeznamUstanoveniType">
        <xs:annotation>
            <xs:documentation>
                Seznam ustanovení právního předpisu.
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="Ustanoveni" type="UstanoveniType" maxOccurs="unbounded"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="VysledekDetailType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Detailní popis aplikační chyby.
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="VysledekSubKod" type="VysledekSubKodRppType"/>
            <xs:element name="VysledekPopis" type="reg:VysledekPopisType" minOccurs="0"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="AplikacniStatusType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Aplikační chyba, doplnění k StatusType ze systémové části zprávy.
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="VysledekKod" type="reg:VysledekKodType"/>
            <xs:element name="VysledekDetail" type="VysledekDetailType" minOccurs="0" maxOccurs="unbounded"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="DatovaSchrankaStavType">
        <xs:annotation>
            <xs:documentation>Datové schránky.</xs:documentation>
        </xs:annotation>
        <xs:simpleContent>
            <xs:extension base="reg:DatovaSchrankaType">
                <xs:attribute name="stav" type="StavRppType" use="required"/>
            </xs:extension>
        </xs:simpleContent>
    </xs:complexType>
    <xs:complexType name="SeznamUstanoveniPpType">
        <xs:sequence>
            <xs:element name="UstanoveniPp" type="UstanoveniPravnihoPredpisuType" maxOccurs="unbounded">
                <xs:annotation>
                    <xs:documentation>Seznam ustanovení právních předpisů definujících agendu</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="SeznamUstanoveniPp2Type">
        <xs:sequence>
            <xs:element name="UstanoveniPp" type="UstanoveniPpType" maxOccurs="unbounded">
                <xs:annotation>
                    <xs:documentation>Seznam ustanovení právních předpisů</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="UstanoveniPpType">
        <xs:annotation>
            <xs:documentation>
                Ustanovení právního předpisu
            </xs:documentation>
        </xs:annotation>
        <xs:choice>
            <xs:element name="UstanoveniPpEsel" type="UstanoveniPpEsel2Type"/>
            <xs:element name="UstanoveniPpOstatni" type="UstanoveniPpOstatniType"/>
        </xs:choice>
    </xs:complexType>
    <xs:complexType name="UstanoveniPpEsel2Type">
        <xs:annotation>
            <xs:documentation>Právní předpisy podle ESEL. </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="Eli" type="EliType">
                <xs:annotation>
                    <xs:documentation>Odkaz do ESEL.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="Bod" type="Text255Type" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Bod.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="Cast" type="Text255Type" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Část PP.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="Cislo" type="Text255Type" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Číslo právního předpisu.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="Clanek" type="Text255Type" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Článek.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="DatumUcinnosti" type="DatumUcinnostiPravnihoPredpisuType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Datum počátku účinnosti PP. </xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="Dil" type="Text255Type" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Díl PP.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="Hlava" type="Text255Type" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Hlava PP.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="Nazev" type="TextMaxType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Název právního předpisu</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="Oddil" type="Text255Type" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Oddíl PP.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="Odstavec" type="Text255Type" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Odstavec PP.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="Paragraf" type="Text255Type" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Paragraf PP.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="Pismeno" type="Text255Type" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Písmeno PP.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="Pododdíl" type="Text255Type" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Pododdíl.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="Rok" type="RokPravnihoPredpisuType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Rok právního předpisu.</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="UstanoveniPpOstatniType">
        <xs:annotation>
            <xs:documentation>Seznam použitých ustanovení evropských a ostatních v ZR. </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="Bod" type="TextMaxType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Bod ustanovení právního předpisu.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="Cislo" type="CisloPravnihoPredpisuType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Číslo právního předpisu.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="Clanek" type="TextMaxType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Článek.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="DatumUcinnosti" type="DatumUcinnostiPravnihoPredpisuType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Datum počátku účinnosti PP. </xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="Nazev" type="TextMaxType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Název právního předpisu</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="Odstavec" type="TextMaxType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Odstavec.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="Pismeno" type="TextMaxType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Písmeno.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="Podbod" type="TextMaxType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Podbod.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="Rok" type="RokPravnihoPredpisuType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Rok právního předpisu.</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="UstanoveniPpEselOstType">
        <xs:annotation>
            <xs:documentation>Právní předpisy podle ESEL. </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="TypPP" type="TypPravnihoPredpisuType">
                <xs:annotation>
                    <xs:documentation>Typ právního předpisu.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="EliEsel" type="EliType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Odkaz do ESEL.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="CisloPravPredpisuOst" type="Text50Type" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Číslo právního předpisu.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="RokPravPredpisuOst" type="RokPravnihoPredpisuType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Rok právního předpisu.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="NazevPravPredpisuOst" type="Text2000Type" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Název právního předpisu</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="DatumUcinnostiOst" type="DatumUcinnostiPravnihoPredpisuType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Datum počátku účinnosti PP. </xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="ClanekOst" type="TextMaxType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Článek.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="OdstavecOst" type="TextMaxType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Odstavec PP.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="PismenoOst" type="TextMaxType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Písmeno PP.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="BodOst" type="TextMaxType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Bod.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="PodbodOst" type="TextMaxType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Podbod PP.</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="UstanoveniPravnihoPredpisuType">
        <xs:annotation>
            <xs:documentation>Seznam právních předpisů, seznam jejich částí, zahrnuje nadřízený právní předpis. </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="CisloPravnihoPredpisu" type="CisloPravnihoPredpisuType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Číslo nadřízeného právního předpisu</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="RokPravnihoPredpisu" type="RokPravnihoPredpisuType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Rok vydání nadřízeného právního předpisu</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="NazevPravnihoPredpisu" type="NazevPravnihoPredpisuType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Název nadřízeného právního předpisu</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="TypPravnihoPredpisu" type="TypPravnihoPredpisuType">
                <xs:annotation>
                    <xs:documentation>Typ nadřízeného právního předpisu</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="Paragraf" type="ParagrafUstanoveniType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Paragraf zákona.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="Odstavec" type="OdstavecUstanoveniType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Odstavec paragrafu.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="Pismeno" type="PismenoUstanoveniType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Písmeno odstavce paragrafu.</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="SeznamSpuuVKategoriiType">
        <xs:sequence>
            <xs:element name="KategorieSpuu" type="SpuuVKategoriiType" maxOccurs="unbounded"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="SpuuVKategoriiType">
        <xs:annotation>
            <xs:documentation>Příslušnost OVM a SPUU do kategorie.</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="KodSpuu" type="KodSpuuType">
                <xs:annotation>
                    <xs:documentation>Kód SPUU.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="ZarazeniOd" type="DatumPlatnostiOdType">
                <xs:annotation>
                    <xs:documentation>Datum počátku zařazení SPUU do kategorie.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="ZarazeniDo" type="DatumPlatnostiDoType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Datum konce zařazení SPUU do kategorie.</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
        <xs:attribute name="stav" type="StavRppType" use="required">
            <xs:annotation>
                <xs:documentation>Příznak, že údaj nebyl zpochybněn.</xs:documentation>
            </xs:annotation>
        </xs:attribute>
    </xs:complexType>
    <xs:complexType name="SeznamOvmVKategoriiType">
        <xs:sequence>
            <xs:element name="KategorieOvm" type="OvmVKategoriiType" maxOccurs="unbounded"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="OvmVKategoriiType">
        <xs:annotation>
            <xs:documentation>Příslušnost OVM a SPUU do kategorie.</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="KodOvm" type="reg:KodOvmType">
                <xs:annotation>
                    <xs:documentation>Kód OVM.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="ZarazeniOd" type="DatumPlatnostiOdType">
                <xs:annotation>
                    <xs:documentation>Datum počátku zařazení OVM do kategorie.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="ZarazeniDo" type="DatumPlatnostiDoType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Datum konce zařazení OVM do kategorie.</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
        <xs:attribute name="stav" type="StavRppType" use="required">
            <xs:annotation>
                <xs:documentation>Příznak, že údaj nebyl zpochybněn.</xs:documentation>
            </xs:annotation>
        </xs:attribute>
    </xs:complexType>
    <xs:complexType name="SeznamDatovychSchranekType">
        <xs:sequence>
            <xs:element name="DatovaSchranka" type="DatovaSchrankaStavType" maxOccurs="unbounded"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="SeznamPrislusnostOvmDoKatType">
        <xs:sequence>
            <xs:element name="PrislusnostDoKategorii" type="ZarazeniOvmKategorieType" maxOccurs="unbounded">
                <xs:annotation>
                    <xs:documentation>Příslušnost do kategorií OVM.</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="ZarazeniOvmKategorieType">
        <xs:annotation>
            <xs:documentation>Příslušnost OVM do kategorie.</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="KodKategorieOvm" type="KodKategorieType">
                <xs:annotation>
                    <xs:documentation>Kód kategorie OVM.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="NazevKategorieOvm" type="NazevKategorieType">
                <xs:annotation>
                    <xs:documentation>Název kategorie - zákon č. 111/2009 Sb. § 51 odst. 1 písm. g) 2.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="ZarazeniOd" type="DatumPlatnostiOdType">
                <xs:annotation>
                    <xs:documentation>Počátek přiřazení do kategorie.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="ZarazeniDo" type="DatumPlatnostiDoType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Konec přiřazení do kategorie.</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
        <xs:attribute name="stav" type="StavRppType" use="required">
            <xs:annotation>
                <xs:documentation>Příznak správnosti údaje.</xs:documentation>
            </xs:annotation>
        </xs:attribute>
    </xs:complexType>
    <xs:complexType name="SeznamPrislusnostSpuuDoKatType">
        <xs:sequence>
            <xs:element name="PrislusnostDoKategorii" type="ZarazeniSpuuKategorieType" maxOccurs="unbounded">
                <xs:annotation>
                    <xs:documentation>Příslušnost do kategorií SPUU.</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="ZarazeniSpuuKategorieType">
        <xs:annotation>
            <xs:documentation>Přiřazení SPUU do kategorie.</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="KodKategorieSpuu" type="KodKategorieType">
                <xs:annotation>
                    <xs:documentation>Kód kategorie SPUU.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="NazevKategorieSpuu" type="NazevKategorieType">
                <xs:annotation>
                    <xs:documentation>Název kategorie - zákon č. 111/2009 Sb. § 51 odst. 1 písm. g) 2.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="ZarazeniOd" type="DatumPlatnostiOdType">
                <xs:annotation>
                    <xs:documentation>Počátek přiřazení do kategorie.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="ZarazeniDo" type="DatumPlatnostiDoType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Konec přiřazení do kategorie.</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
        <xs:attribute name="stav" type="StavRppType" use="required">
            <xs:annotation>
                <xs:documentation>Příznak správnosti údaje.</xs:documentation>
            </xs:annotation>
        </xs:attribute>
    </xs:complexType>
    <xs:complexType name="SeznamOsobVCeleType">
        <xs:sequence>
            <xs:element name="OsobaCelo" type="OsobaOvmType" maxOccurs="unbounded"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="OsobaOvmType">
        <xs:annotation>
            <xs:documentation>Osoba stojící v čele OVM.</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="Aifo" type="reg:LokalniAifoType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Osoba stojící v čele OVM vyjádřená odkazem do ROB - dle zákona č. 111/2009 Sb. § 51 odst. 1 písm. i).</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="FoTextem" type="FoTextemType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Jméno a příjmení, pokud není z ROB.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="AdresaTextem" type="AdresaTextemType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Adresa pobytu textem (pokud není z ROB).</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="OdkazRuian" type="reg:KodAdresniMistoType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Pobyt (pokud není z ROB).</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
        <xs:attribute name="stav" type="StavRppType" use="required">
            <xs:annotation>
                <xs:documentation>Příznak správnosti údaje.</xs:documentation>
            </xs:annotation>
        </xs:attribute>
    </xs:complexType>
    <xs:complexType name="SeznamKoduKategoriiSpuuType">
        <xs:sequence>
            <xs:element name="KodKategorieSpuu" type="KodKategorieType" maxOccurs="unbounded"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="SeznamKoduKategoriiOvmType">
        <xs:sequence>
            <xs:element name="KodKategorieOvm" type="KodKategorieType" maxOccurs="unbounded">
                <xs:annotation>
                    <xs:documentation>Kód kategorie OVM.</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="SeznamObjektUdajVypisType">
        <xs:sequence>
            <xs:element name="ObjektUdaj" type="ObjektUdajVypisType" maxOccurs="unbounded">
                <xs:annotation>
                    <xs:documentation>Seznam objektů/subjektu dané agendy</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="ObjektUdajVypisType">
        <xs:annotation>
            <xs:documentation>Výpis informací o objektech, o kterých vede agenda údaje. </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="Kod" type="KodObjektuUdajeType">
                <xs:annotation>
                    <xs:documentation>Kód objektu/subjektu údajů.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="Nazev" type="NazevObjektuType">
                <xs:annotation>
                    <xs:documentation>Název objektu/subjektu údajů.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="Popis" type="PopisObjektuType">
                <xs:annotation>
                    <xs:documentation>Popis objektu/subjektu.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="SeznamUstanoveniPp" type="SeznamUstanoveniPpType">
                <xs:annotation>
                    <xs:documentation>Seznam ustanovení právních předpisů na jejich základě je objekt poskytován</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="SeznamUdajVypis" type="SeznamUdajVypisType">
                <xs:annotation>
                    <xs:documentation>Údaje, které tvoří objekt údajů</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
        <xs:attribute name="stavObjektu" type="StavRppType" use="required">
            <xs:annotation>
                <xs:documentation>Správnost objektu/subjektu</xs:documentation>
            </xs:annotation>
        </xs:attribute>
    </xs:complexType>
    <xs:complexType name="SeznamUdajVypisType">
        <xs:sequence>
            <xs:element name="Udaj" type="UdajVypisType" maxOccurs="unbounded">
                <xs:annotation>
                    <xs:documentation>Údaje, které tvoří objekt údajů</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="UdajVypisType">
        <xs:annotation>
            <xs:documentation>Charakteristika údaje, vedeného agendou.</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="Kod" type="KodUdajeType">
                <xs:annotation>
                    <xs:documentation>Kód údaje.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="Nazev" type="NazevUdajeAisType">
                <xs:annotation>
                    <xs:documentation>Název údaje.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="Popis" type="PopisUdajeType">
                <xs:annotation>
                    <xs:documentation>Popis údaje.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="TypUdaje" type="TypUdajeType">
                <xs:annotation>
                    <xs:documentation>Typ údaje.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="SeznamUstanoveniPp" type="SeznamUstanoveniPpType">
                <xs:annotation>
                    <xs:documentation>Ustanovení právního předpisu na jehož základě se údaj poskytuje</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
        <xs:attribute name="stavUdaje" type="StavRppType" use="required">
            <xs:annotation>
                <xs:documentation>Správnost údaje</xs:documentation>
            </xs:annotation>
        </xs:attribute>
    </xs:complexType>
    <xs:complexType name="SeznamPovolSubjektVypisType">
        <xs:sequence>
            <xs:element name="PovolenyOs" type="PovolenySubjektVypisType" maxOccurs="unbounded">
                <xs:annotation>
                    <xs:documentation>Seznam OVM povolených k agendě</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="PovolenySubjektVypisType">
        <xs:annotation>
            <xs:documentation>Seznam povolených subjektů (OVM, SPUU, kategorie OVM, kategorie SPUU) k agendě včetně správnosti</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="KodOs" type="KodOsType">
                <xs:annotation>
                    <xs:documentation>Kód oprávněného subjektu</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
        <xs:attribute name="stavOs" type="StavRppType" use="required">
            <xs:annotation>
                <xs:documentation>Správnost vazby povoleného oprávněného subjektu k agendě</xs:documentation>
            </xs:annotation>
        </xs:attribute>
    </xs:complexType>
    <xs:complexType name="SeznamCinnostAgendyVypisType">
        <xs:sequence>
            <xs:element name="CinnostniRole" type="CinnostAgendyVypisType" maxOccurs="unbounded">
                <xs:annotation>
                    <xs:documentation>Seznam činnostních rolí k agendě</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="CinnostAgendyVypisType">
        <xs:annotation>
            <xs:documentation>Výčet a popis činností, které jsou vykonávány v agendě, včetně příznaku zpochybnění pro činnostní roli</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="Kod" type="KodCinnostiAgendyType">
                <xs:annotation>
                    <xs:documentation>Povinný atribut. Je unikátní v rámci jedné agendy, jedná se o pořadové číslo činnosti v rámci agendy.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="Nazev" type="NazevCinnostiAgendyType">
                <xs:annotation>
                    <xs:documentation>Název činnosti agendy -zákon č.111/2009 Sb. §51/5/c . Povinný atribut.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="Popis" type="PopisCinnostiAgendyType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Popis činnosti v rámci výkonu agendy. Povinný údaj.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="TypCinnosti" type="TypCinnostiType">
                <xs:annotation>
                    <xs:documentation>Typ činnosti</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="PopisTypuCinnosti" type="PopisTypuCinnostiType">
                <xs:annotation>
                    <xs:documentation>Popis typu činnosti.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="Poradi" type="PoradiCinnostiType">
                <xs:annotation>
                    <xs:documentation>Pořadí činnosti v rámci agendy.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="PlatnostOd" type="DatumPlatnostiOdType">
                <xs:annotation>
                    <xs:documentation>Datum počátku platnosti činnosti.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="PlatnostDo" type="DatumPlatnostiDoType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Datum konce platnosti činnosti.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="SeznamPovolOvm" type="SeznamPovolOsCinAgendyVypisType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Povolené OVM k činnosti agendy (§51, odst. 5, písm. c)</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="SeznamPovolSpuu" type="SeznamPovolOsCinAgendyVypisType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Povolené SPUU k činnosti agendy (§51, odst. 5, písm. c)</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="SeznamPovolKatOvm" type="SeznamPovolOsCinAgendyVypisType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Povolený typ OVM k činnosti agendy (§51, odst. 5, písm. c)</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="SeznamPovolKatSpuu" type="SeznamPovolOsCinAgendyVypisType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Povolený typ SPUU k činnosti agendy (§51, odst. 5, písm. c)</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
        <xs:attribute name="stavCinnostniRole" type="StavRppType" use="required">
            <xs:annotation>
                <xs:documentation>Příznak zpochybnění činnostní role</xs:documentation>
            </xs:annotation>
        </xs:attribute>
    </xs:complexType>
    <xs:complexType name="SeznamCinnostAgendyZmenaType">
        <xs:sequence>
            <xs:element name="CinnostAgendy" type="CinnostAgendyZmenaType" maxOccurs="unbounded">
                <xs:annotation>
                    <xs:documentation>Seznam činností k Agendě</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="CinnostAgendyZmenaType">
        <xs:annotation>
            <xs:documentation>Výčet a popis činností, které jsou vykonávány v agendě, včetně příznaku zpochybnění pro činnostní roli</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="Kod" type="KodCinnostiAgendyType">
                <xs:annotation>
                    <xs:documentation>Povinný atribut. Je unikátní v rámci jedné agendy, jedná se o pořadové číslo činnosti v rámci agendy.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="Nazev" type="NazevCinnostiAgendyType">
                <xs:annotation>
                    <xs:documentation>Název činnosti agendy -zákon č.111/2009 Sb. §51/5/c . Povinný atribut.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="Popis" type="PopisCinnostiAgendyType">
                <xs:annotation>
                    <xs:documentation>Popis činnosti v rámci výkonu agendy. Povinný údaj.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="TypCinnosti" type="TypCinnostiType">
                <xs:annotation>
                    <xs:documentation>Typ činnosti</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="Poradi" type="PoradiCinnostiType">
                <xs:annotation>
                    <xs:documentation>Pořadí činnosti v rámci agendy.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="PlatnostOd" type="DatumPlatnostiOdType">
                <xs:annotation>
                    <xs:documentation>Datum počátku platnosti činnosti.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="PlatnostDo" type="DatumPlatnostiDoType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Datum konce platnosti činnosti.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="SeznamPovolOvm" type="SeznamPovolOsCinAgendyVypisType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Povolené OVM k činnosti agendy (§51, odst. 5, písm. c)</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="SeznamPovolSpuu" type="SeznamPovolOsCinAgendyVypisType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Povolené SPUU k činnosti agendy (§51, odst. 5, písm. c)</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="SeznamPovolKatOvm" type="SeznamPovolOsCinAgendyVypisType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Povolený typ OVM k činnosti agendy (§51, odst. 5, písm. c)</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="SeznamPovolKatSpuu" type="SeznamPovolOsCinAgendyVypisType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Povolený typ SPUU k činnosti agendy (§51, odst. 5, písm. c)</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
        <xs:attribute name="stavCinnostniRole" type="StavRppType" use="required">
            <xs:annotation>
                <xs:documentation>Příznak zpochybnění činnostní role</xs:documentation>
            </xs:annotation>
        </xs:attribute>
    </xs:complexType>
    <xs:complexType name="SeznamPovolOsCinAgendyVypisType">
        <xs:sequence>
            <xs:element name="PovoleneOs" type="PovolenyOsCinnostAgendyVypisType" maxOccurs="unbounded">
                <xs:annotation>
                    <xs:documentation>Povolené OVM k činnosti agendy (§51, odst. 5, písm. c)</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="PovolenyOsCinnostAgendyVypisType">
        <xs:annotation>
            <xs:documentation>Seznam povolených subjektů (OVM, SPUU, kategorie OVM, kategorie SPUU) k činnosti agendy včetně správnosti vazby</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="KodOs" type="KodOsType">
                <xs:annotation>
                    <xs:documentation>Kód oprávněného subjektu.</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
        <xs:attribute name="stavOsCinnostAgendy" type="StavRppType" use="required">
            <xs:annotation>
                <xs:documentation>Správnost vazby opravněného subjektu a činostní role</xs:documentation>
            </xs:annotation>
        </xs:attribute>
    </xs:complexType>
    <xs:complexType name="SeznamPovolenychOsCinnostAgendyType">
        <xs:sequence>
            <xs:element name="PovolenyOs" type="PovolenyOsCinnostAgendyType" maxOccurs="unbounded">
                <xs:annotation>
                    <xs:documentation>Povolené OVM pro činnost agendy</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="PovolenyOsCinnostAgendyType">
        <xs:annotation>
            <xs:documentation>Zákon č.111/2009 Sb. §51/5 - Referenční údaje agendy - výčet orgánů veřejné moci, které agendu vykonávají, nebo souhrnné označení. </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="CinnostAgendy" type="KodCinnostiAgendyType">
                <xs:annotation>
                    <xs:documentation>Činnost agendy</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="KodOs" type="KodOsType">
                <xs:annotation>
                    <xs:documentation>Kód oprávněného subjektu</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="SeznamAisPusobnostType">
        <xs:sequence>
            <xs:element name="AisPusobnost" type="AisPusobnostType" maxOccurs="unbounded"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="AisPusobnostType">
        <xs:annotation>
            <xs:documentation>Kód a stav AIS.</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="KodAis" type="reg:KodAisType">
                <xs:annotation>
                    <xs:documentation>Kód AIS.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="LokalniAis" type="xs:boolean">
                <xs:annotation>
                    <xs:documentation>Příznak lokálního AIS.</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
        <xs:attribute name="stav" type="StavRppType" use="required">
            <xs:annotation>
                <xs:documentation>Příznak, že údaj nebyl zpochybněn.</xs:documentation>
            </xs:annotation>
        </xs:attribute>
    </xs:complexType>
    <xs:complexType name="SeznamPovolAisCinRoleVypisType">
        <xs:sequence>
            <xs:element name="PovolenyAis" type="PovoleneAisCinnostniRoleVypisType" minOccurs="0" maxOccurs="unbounded">
                <xs:annotation>
                    <xs:documentation>Seznam povolených AIS</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="PovoleneAisCinnostniRoleVypisType">
        <xs:annotation>
            <xs:documentation>Povolené agendové informační systémy pro OVM / SPUU / Kategorii OVM / Kategorii SPUU a činnost agendy, včetně správnosti AIS</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="KodAis" type="reg:KodAisType">
                <xs:annotation>
                    <xs:documentation>Kód agendového informačního systému.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="SeznamPovolOvm" type="SeznamAisPovolOsCinAgendyVypisType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Povolené OVM pro činnost agendy včetně správnosti vazby</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="SeznamPovolSpuu" type="SeznamAisPovolOsCinAgendyVypisType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Povolené SPUU pro činnost agendy včetně správnosti vazby</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="SeznamPovolKatOvm" type="SeznamAisPovolOsCinAgendyVypisType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Povolené kategorie OVM pro činnost agendy včetně správnosti vazby</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="SeznamPovolKatSpuu" type="SeznamAisPovolOsCinAgendyVypisType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Povolené kategorie SPUU pro činnost agendy včetně správnosti vazby</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="SeznamAisPovolOsCinAgendyVypisType">
        <xs:sequence>
            <xs:element name="PovolenyOs" type="AisPovolenyOsCinnostAgendyVypisType" maxOccurs="unbounded">
                <xs:annotation>
                    <xs:documentation>Povolené kategorie OVM pro činnost agendy včetně správnosti vazby</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="AisPovolenyOsCinnostAgendyVypisType">
        <xs:annotation>
            <xs:documentation>AIS a povolené opravněné subjekty k činnostem agendy včetně příznaku správnosti vazby</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="CinnostniRole" type="PovolenyOsCinnostAgendyType">
                <xs:annotation>
                    <xs:documentation>Činnostní role agendy.</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
        <xs:attribute name="stavCinnostniRoleAis" type="StavRppType" use="required">
            <xs:annotation>
                <xs:documentation>Správnost vazby AIS a činnostní role</xs:documentation>
            </xs:annotation>
        </xs:attribute>
    </xs:complexType>
    <xs:complexType name="SeznamOpravneniUdajCinRoleVypisType">
        <xs:sequence>
            <xs:element name="OpravneniUdaj" type="OpravneniUdajCinnostniRoleVypisType" minOccurs="0" maxOccurs="unbounded">
                <xs:annotation>
                    <xs:documentation>Seznam oprávnění k údajům</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="OpravneniUdajCinnostniRoleVypisType">
        <xs:annotation>
            <xs:documentation>Oprávnění na údaj vedený jinou agendou s ustanoveními právních předpisů, podle kterých se poskytruje pro OVM / SPUU / Kategorii OVM / Kategorii SPUU a Činnost agendy včetně správnosti oprávnění k údaji</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="KodUdaje" type="KodUdajeType">
                <xs:annotation>
                    <xs:documentation>Kód údaje vedeného jinou agendou (ZR, AIS)</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="OpravneniTyp" type="OpravneniUdajTypType"/>
            <xs:element name="SeznamUstanoveniPp" type="SeznamUstanoveniPpType">
                <xs:annotation>
                    <xs:documentation>Ustanovení právních předpisů podle nich se přístup k údaji umožňuje</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="SeznamPovolOvm" type="SeznamOpravneniPovolOsCinAgendyVypisType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Činnosti agendy povolené pro OVM</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="SeznamPovolSpuu" type="SeznamOpravneniPovolOsCinAgendyVypisType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Činnosti agendy povolené pro SPUU</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="SeznamPovolKatOvm" type="SeznamOpravneniPovolOsCinAgendyVypisType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Činnosti agendy povolené pro kategorii OVM.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="SeznamPovolKatSpuu" type="SeznamOpravneniPovolOsCinAgendyVypisType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Činnosti agendy povolené pro kategorii SPUU.</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="SeznamOpravneniPovolOsCinAgendyVypisType">
        <xs:sequence>
            <xs:element name="PovolenyOs" type="OpravneniPovolenyOsCinnostAgendyVypisType" maxOccurs="unbounded">
                <xs:annotation>
                    <xs:documentation>Činnosti agendy povolené pro OVM</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="OpravneniPovolenyOsCinnostAgendyVypisType">
        <xs:annotation>
            <xs:documentation>Seznam povolených subjektů (OVM, SPUU, kategorie OVM, kategorie SPUU) k činnosti agendy včetně správnosti vazby</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="CinnostniRole" type="PovolenyOsCinnostAgendyType">
                <xs:annotation>
                    <xs:documentation>Činnostní role agendy</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
        <xs:attribute name="stavOpravneniOsCinnostAgendy" type="StavRppType" use="required">
            <xs:annotation>
                <xs:documentation>Správnost vazby oprávnění k údaji a činnostní role</xs:documentation>
            </xs:annotation>
        </xs:attribute>
    </xs:complexType>
    <xs:complexType name="SeznamKoduCinnostiType">
        <xs:sequence>
            <xs:element name="KodCinnosti" type="KodCinnostiAgendyType" maxOccurs="unbounded"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="SeznamOpravneniUdajCinRoleZmenaType">
        <xs:sequence>
            <xs:element name="OpravneniUdaj" type="OpravneniUdajCinnostniRoleZmenaType" minOccurs="0" maxOccurs="unbounded">
                <xs:annotation>
                    <xs:documentation>Seznam oprávnění k údajům</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="OpravneniUdajCinnostniRoleZmenaType">
        <xs:annotation>
            <xs:documentation>Oprávnění na údaj vedený jinou agendou s ustanoveními právních předpisů, podle kterých se poskytruje pro OVM / SPUU / Kategorii OVM / Kategorii SPUU a Činnost agendy včetně správnosti oprávnění k údaji</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="KodUdaje" type="KodUdajeType">
                <xs:annotation>
                    <xs:documentation>Kód údaje vedeného jinou agendou (ZR, AIS)</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="OpravneniTyp" type="DefinovaneOpravneniType">
                <xs:annotation>
                    <xs:documentation>Typ oprávnění</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="SeznamUstanoveniPp" type="SeznamUstanoveniPpType">
                <xs:annotation>
                    <xs:documentation>Ustanovení právních předpisů podle nich se přístup k údaji umožňuje</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="SeznamPovolOvm" type="SeznamOpravneniPovolOsCinAgendyVypisType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Činnosti agendy povolené pro OVM</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="SeznamPovolSpuu" type="SeznamOpravneniPovolOsCinAgendyVypisType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Činnosti agendy povolené pro SPUU</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="SeznamPovolKatOvm" type="SeznamOpravneniPovolOsCinAgendyVypisType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Činnosti agendy povolené pro kategorii OVM.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="SeznamPovolKatSpuu" type="SeznamOpravneniPovolOsCinAgendyVypisType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Činnosti agendy povolené pro kategorii SPUU.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="AutomatickeOpravneni" type="xs:boolean">
                <xs:annotation>
                    <xs:documentation>Příznak, že oprávnění vzniklo automaticky.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="GenerovanoSb" type="xs:boolean" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Příznak, že se jedná o generované oprávění pro SB.</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="SeznamPovolAisCinRoleZmenaType">
        <xs:sequence>
            <xs:element name="PovolenyAis" type="PovoleneAisCinnostniRoleZmenaType" minOccurs="0" maxOccurs="unbounded">
                <xs:annotation>
                    <xs:documentation>Seznam povolených AIS</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="PovoleneAisCinnostniRoleZmenaType">
        <xs:annotation>
            <xs:documentation>Povolené agendové informační systémy pro OVM / SPUU / Kategorii OVM / Kategorii SPUU a činnost agendy, včetně správnosti AIS</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="KodAis" type="reg:KodAisType">
                <xs:annotation>
                    <xs:documentation>Kód agendového informačního systému.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="SeznamPovolOvm" type="SeznamAisPovolOsCinAgendyVypisType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Povolené OVM pro činnost agendy včetně správnosti vazby.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="SeznamPovolSpuu" type="SeznamAisPovolOsCinAgendyVypisType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Povolené SPUU pro činnost agendy včetně správnosti vazby.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="SeznamPovolKatOvm" type="SeznamAisPovolOsCinAgendyVypisType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Povolené kategorie OVM pro činnost agendy včetně správnosti vazby.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="SeznamPovolKatSpuu" type="SeznamAisPovolOsCinAgendyVypisType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Povolené kategorie SPUU pro činnost agendy včetně správnosti vazby.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="DodatSouhlas" type="xs:boolean">
                <xs:annotation>
                    <xs:documentation>Dodatečný souhlas.</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="SeznamNespravneOpravneniType">
        <xs:sequence>
            <xs:element name="NespravneOpravneni" type="NespravneOpravneniType" minOccurs="0" maxOccurs="unbounded">
                <xs:annotation>
                    <xs:documentation>Seznam oprávnění k údajům</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="NespravneOpravneniType">
        <xs:annotation>
            <xs:documentation>Oprávnění na údaj vedený jinou agendou s ustanoveními právních předpisů, podle kterých se poskytruje pro OVM / SPUU / Kategorii OVM / Kategorii SPUU a Činnost agendy.</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="KodUdaje" type="KodUdajeType">
                <xs:annotation>
                    <xs:documentation>Kód údaje vedeného jinou agendou (ZR, AIS).</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="OpravneniTyp" type="DefinovaneOpravneniType">
                <xs:annotation>
                    <xs:documentation>Typ oprávnění.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="ClenRoleKategorieOvm" type="ClenRoleKategorieOsType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Činnosti agendy povolené pro OVM.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="ClenRoleKategorieSpuu" type="ClenRoleKategorieOsType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Činnosti agendy povolené pro SPUU.</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="ClenRoleKategorieOsType">
        <xs:sequence>
            <xs:element name="IdentifikatorKategorie" type="KodKategorieType">
                <xs:annotation>
                    <xs:documentation>Identifikátor kategorie</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="KodOs" type="KodOsType">
                <xs:annotation>
                    <xs:documentation>Kód oprávněného subjektu.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="CinnostAgendy" type="KodCinnostiAgendyType">
                <xs:annotation>
                    <xs:documentation>Činnost agendy.</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="SeznamUkonuCinnostiType">
        <xs:annotation>
            <xs:documentation>Seznam úkonů činnosti.</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="UkonCinnost" type="UkonCinnostType" maxOccurs="unbounded">
                <xs:annotation>
                    <xs:documentation>Forma úkonu podle místa příslušnosti.</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="UkonCinnostType">
        <xs:annotation>
            <xs:documentation>Přiřazení úkonů k činnostem.</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="KodCinnosti" type="KodCinnostiAgendyType">
                <xs:annotation>
                    <xs:documentation>Kód činnosti, ke kterému úkon patří.</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="SeznamSubjektUkonuOsType">
        <xs:annotation>
            <xs:documentation>Seznam forem úkonu podle místa příslušnosti.</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="SubjektUkonuOs" type="SubjektUkonuOsType" maxOccurs="unbounded">
                <xs:annotation>
                    <xs:documentation>Forma úkonu podle místa příslušnosti.</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="SubjektUkonuOsType">
        <xs:sequence>
            <xs:element name="TypSubjektu" type="TypSubjektuType">
                <xs:annotation>
                    <xs:documentation>Typ subjektu, kterému je úkon určen.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="MistniPrislusnost" type="MistniPrislusnostType">
                <xs:annotation>
                    <xs:documentation>Forma úkonu podle místa příslušnosti.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:choice>
                <xs:element name="KodOvm" type="reg:KodOvmType">
                    <xs:annotation>
                        <xs:documentation>Kód OVM.</xs:documentation>
                    </xs:annotation>
                </xs:element>
                <xs:element name="KodKategorieOvm" type="KodKategorieType">
                    <xs:annotation>
                        <xs:documentation>Kód kategorie OVM.</xs:documentation>
                    </xs:annotation>
                </xs:element>
            </xs:choice>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="SeznamSubjektuType">
        <xs:annotation>
            <xs:documentation>Seznam subjektů.</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="Subjekt" type="SubjektType" maxOccurs="unbounded">
                <xs:annotation>
                    <xs:documentation>Subjekt.</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="SeznamKoduPracovisteType">
        <xs:sequence>
            <xs:element name="KodPracoviste" type="KodPracovisteType" maxOccurs="unbounded"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="SeznamKoduOvmType">
        <xs:sequence>
            <xs:element name="KodOvm" type="reg:KodOvmType" maxOccurs="unbounded"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="SeznamKoduSpuuType">
        <xs:sequence>
            <xs:element name="KodSpuu" type="KodSpuuType" maxOccurs="unbounded"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="PovoleneOvmStatutType">
        <xs:annotation>
            <xs:documentation>Přidané a odebrané povolené OVM k agendě.</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="KodOvm" type="reg:KodOvmType">
                <xs:annotation>
                    <xs:documentation>Kód OVM městké části nebo statutárního města.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="Odebrano" type="xs:boolean" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Příznak odebrání z povolených OVM k agendě.</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="SeznamPovolenychOvmStatutType">
        <xs:annotation>
            <xs:documentation>Seznam povolených OVM k agendě vzniklých z definice statutu.</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="PovoleneOvmStatut" type="PovoleneOvmStatutType" maxOccurs="unbounded"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="SeznamDefinicPpEselType">
        <xs:sequence>
            <xs:element name="DefinicePpEsel" type="DefinicePpEselType" maxOccurs="unbounded"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="SeznamDefinicPpEselOstType">
        <xs:sequence>
            <xs:element name="DefinicePpEsel" type="UstanoveniPpEselOstType" maxOccurs="unbounded"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="SeznamUstanoveniPpEselType">
        <xs:sequence>
            <xs:element name="UstanoveniPpEsel" type="UstanoveniPpEselType" maxOccurs="unbounded"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="SeznamUstanoveniPpEselOstType">
        <xs:sequence>
            <xs:element name="UstanoveniPpEsel" type="UstanoveniPpEselOstType" maxOccurs="unbounded"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="SeznamSlozeniPpEselType">
        <xs:sequence>
            <xs:element name="SlozeniPpEsel" type="SlozeniPpEselType" maxOccurs="unbounded"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="SeznamSlozeniPpEselOstType">
        <xs:sequence>
            <xs:element name="SlozeniPpEsel" type="UstanoveniPpEselOstType" maxOccurs="unbounded"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="SeznamDefinicPpType">
        <xs:sequence>
            <xs:element name="DefinicePp" type="UstanoveniPpType" maxOccurs="unbounded"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="SeznamSlozeniPpType">
        <xs:sequence>
            <xs:element name="SlozeniPp" type="UstanoveniPpType" maxOccurs="unbounded"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="SeznamOvmVKategorii2Type">
        <xs:sequence>
            <xs:element name="OvmVKategorii" type="OvmVKategorii2Type" maxOccurs="unbounded"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="OvmVKategorii2Type">
        <xs:annotation>
            <xs:documentation>Příslušnost OVM do kategorie.</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="IdentifikatorOvm" type="reg:KodOvmType">
                <xs:annotation>
                    <xs:documentation>Identifikátor OVM.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="ZarazeniOd" type="DatumPlatnostiOdType">
                <xs:annotation>
                    <xs:documentation>Datum počátku zařazení OVM do kategorie.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="ZarazeniDo" type="DatumPlatnostiDoType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Datum konce zařazení OVM do kategorie.</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
        <xs:attribute name="stav" type="StavRppType" use="optional">
            <xs:annotation>
                <xs:documentation>Příznak, že údaj nebyl zpochybněn.</xs:documentation>
            </xs:annotation>
        </xs:attribute>
    </xs:complexType>
    <xs:complexType name="SeznamSpuuVKategorii2Type">
        <xs:sequence>
            <xs:element name="SpuuVKategorii" type="SpuuVKategorii2Type" maxOccurs="unbounded"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="SpuuVKategorii2Type">
        <xs:annotation>
            <xs:documentation>Příslušnost SPUU do kategorie.</xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="IdentifikatorSpuu" type="KodSpuuType">
                <xs:annotation>
                    <xs:documentation>identifikátor SPUU.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="ZarazeniOd" type="DatumPlatnostiOdType">
                <xs:annotation>
                    <xs:documentation>Datum počátku zařazení SPUU do kategorie.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="ZarazeniDo" type="DatumPlatnostiDoType" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Datum konce zařazení SPUU do kategorie.</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
        <xs:attribute name="stav" type="StavRppType" use="optional">
            <xs:annotation>
                <xs:documentation>Příznak, že údaj nebyl zpochybněn.</xs:documentation>
            </xs:annotation>
        </xs:attribute>
    </xs:complexType>
</xs:schema>
