<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns="urn:cz:isvs:ros:schemas:RosEditaceTypy:v1" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:reg="urn:cz:isvs:reg:schemas:RegTypy:v1" xmlns:ros="urn:cz:isvs:ros:schemas:RosTypy:v2" targetNamespace="urn:cz:isvs:ros:schemas:RosEditaceTypy:v1" elementFormDefault="qualified" attributeFormDefault="unqualified" version="2.4.0">
    <xs:annotation>
        <xs:documentation xml:lang="cs">Návrh XML schématu s definicemi editačních datových prvků IS ROS.
          Toto schéma obsahuje definice datových prvků, používaných pro editační dotazy a odpovědi na editační
          dotazy registru osob (ROS).
        </xs:documentation>
    </xs:annotation>
    <!-- Verze 1.0.0, 9.2.2012 -->
    <!-- Verze 1.0.2, 24.8.2012 prechod na novou verzi RegTypy.xsd -->
    <!-- Verze 1.0.3, 28.7.2014 zmena v RosDotazyData.xsd-->
    <!-- Verze 1.1.0, 23.10.2014 zmena v RosEditaceData.xsd-->
    <!-- Verze 1.2.0, 29.6.2016 blokace vydeje - nove sluzby S24, S25-->
    <!-- Verze 1.3.0, 7.11.2016 nova sluzba S27-->
    <!-- Verze 1.3.1, 14.11.2016 ROS111 - uprava sluzeb S03 a S04-->
    <!-- Verze 1.3.2, 25.11.2016 ROS111 - globalni zmena nazvu PreruseniPozastaveni na PozastaveniPreruseni-->
    <!-- Verze 2.0.0, 5.5.2020 pridani struktur pro nove sluzby pridani RosVlozOsobu2, RosZmenOsobu2, RosZapisPravniStav2-->
    <!-- Verze 2.1.0, 26.4.2021 pridani nove sluzby RosZapisKontaktniUdaje-->
    <!-- Verze 2.1.1, 8.6.2021 prechod na datove typy kontaktnich udaju z RegTypy.xsd-->
    <!-- Verze 2.2.0, 24.8.2021 pridani struktur pro integritu dat -->
    <!-- Verze 2.3.0, 25.11.2021 pridani struktur pro dorucovaci adresu a datum narozeni -->
    <!-- Verze 2.4.0, 5.4.2022 vypusteni struktur LikvidatoriStavType, OpatrovniciStavType, NuceniSpravciStavType, InsolvencniSpravciStavType-->    
    <xs:import namespace="urn:cz:isvs:reg:schemas:RegTypy:v1" schemaLocation="../../RegTypy.xsd"/>
    <xs:import namespace="urn:cz:isvs:ros:schemas:RosTypy:v2" schemaLocation="RosTypy.xsd"/>
    <xs:complexType name="KodPravnihoStavuStavType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Kód právního stavu osoby v editačním dotazu do ROS včetně stavu.
            </xs:documentation>
        </xs:annotation>
        <xs:simpleContent>
            <xs:extension base="ros:KodPravnihoStavuType">
                <xs:attribute name="stav">
                    <xs:simpleType>
                        <xs:restriction base="ros:StavRosType">
                            <xs:enumeration value="spravny"/>
                            <xs:enumeration value="nespravny"/>
                        </xs:restriction>
                    </xs:simpleType>
                </xs:attribute>
            </xs:extension>
        </xs:simpleContent>
    </xs:complexType>
    <xs:complexType name="KodPravniFormyStavType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Kód právní formy osoby v editačním dotazu do ROS včetně stavu.
            </xs:documentation>
        </xs:annotation>
        <xs:simpleContent>
            <xs:extension base="ros:KodPravniFormyType">
                <xs:attribute name="stav">
                    <xs:simpleType>
                        <xs:restriction base="ros:StavRosType">
                            <xs:enumeration value="spravny"/>
                            <xs:enumeration value="nespravny"/>
                        </xs:restriction>
                    </xs:simpleType>
                </xs:attribute>
            </xs:extension>
        </xs:simpleContent>
    </xs:complexType>
    <xs:complexType name="NazevOsobyStavType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Název osoby v editačním dotazu do ROS včetně stavu. 
            </xs:documentation>
        </xs:annotation>
        <xs:simpleContent>
            <xs:extension base="ros:NazevOsobyType">
                <xs:attribute name="stav">
                    <xs:simpleType>
                        <xs:restriction base="ros:StavRosType">
                            <xs:enumeration value="spravny"/>
                            <xs:enumeration value="nespravny"/>
                        </xs:restriction>
                    </xs:simpleType>
                </xs:attribute>
            </xs:extension>
        </xs:simpleContent>
    </xs:complexType>
    <xs:complexType name="DatovaSchrankaStavType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Datová schránka osoby v editačním dotazu do ROS včetně stavu.
            </xs:documentation>
        </xs:annotation>
        <xs:simpleContent>
            <xs:extension base="reg:DatovaSchrankaType">
                <xs:attribute name="stav">
                    <xs:simpleType>
                        <xs:restriction base="ros:StavRosType">
                            <xs:enumeration value="spravny"/>
                            <xs:enumeration value="nespravny"/>
                        </xs:restriction>
                    </xs:simpleType>
                </xs:attribute>
            </xs:extension>
        </xs:simpleContent>
    </xs:complexType>
    <xs:complexType name="DatovaSchrankaUkonEditStavType">
        <xs:annotation>
            <xs:documentation>
                Datová schránka osoby v editačním dotazu (pouze vložení a výmaz) do ROS včetně stavu jednotlivých údajů
                a s rozlišením vložení a výmazu.
            </xs:documentation>
        </xs:annotation>
        <xs:choice>
            <xs:element name="UdajeDatoveSchrankyVlozeni" type="DatovaSchrankaStavType"/>
            <xs:element name="UdajeDatoveSchrankyVymaz" type="reg:DatovaSchrankaType"/>
        </xs:choice>
    </xs:complexType>
    <xs:complexType name="DatumVznikuOpravneniStavType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Datum vzniku oprávnění k činnosti osoby v agendě v editačním dotazu do ROS včetně stavu.
            </xs:documentation>
        </xs:annotation>
        <xs:simpleContent>
            <xs:extension base="ros:DatumVznikuOpravneniType">
                <xs:attribute name="stav">
                    <xs:simpleType>
                        <xs:restriction base="ros:StavRosType">
                            <xs:enumeration value="spravny"/>
                            <xs:enumeration value="nespravny"/>
                        </xs:restriction>
                    </xs:simpleType>
                </xs:attribute>
            </xs:extension>
        </xs:simpleContent>
    </xs:complexType>
    <xs:complexType name="DatumZanikuOpravneniStavType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Datum zániku oprávnění k činnosti osoby v agendě v editačním dotazu do ROS včetně stavu.
            </xs:documentation>
        </xs:annotation>
        <xs:simpleContent>
            <xs:extension base="ros:DatumZanikuOpravneniType">
                <xs:attribute name="stav">
                    <xs:simpleType>
                        <xs:restriction base="ros:StavRosType">
                            <xs:enumeration value="spravny"/>
                            <xs:enumeration value="nespravny"/>
                        </xs:restriction>
                    </xs:simpleType>
                </xs:attribute>
            </xs:extension>
        </xs:simpleContent>
    </xs:complexType>
    <xs:complexType name="DatumZahajeniCinnostiStavType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Datum zahájení provozování činnosti v provozovně v editačním dotazu do ROS včetně stavu.
            </xs:documentation>
        </xs:annotation>
        <xs:simpleContent>
            <xs:extension base="ros:DatumZahajeniCinnostiType">
                <xs:attribute name="stav">
                    <xs:simpleType>
                        <xs:restriction base="ros:StavRosType">
                            <xs:enumeration value="spravny"/>
                            <xs:enumeration value="nespravny"/>
                        </xs:restriction>
                    </xs:simpleType>
                </xs:attribute>
            </xs:extension>
        </xs:simpleContent>
    </xs:complexType>
    <xs:complexType name="DatumUkonceniCinnostiStavType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Datum ukončení provozování činnosti v provozovně v editačním dotazu do ROS včetně stavu.
            </xs:documentation>
        </xs:annotation>
        <xs:simpleContent>
            <xs:extension base="ros:DatumUkonceniCinnostiType">
                <xs:attribute name="stav">
                    <xs:simpleType>
                        <xs:restriction base="ros:StavRosType">
                            <xs:enumeration value="spravny"/>
                            <xs:enumeration value="nespravny"/>
                        </xs:restriction>
                    </xs:simpleType>
                </xs:attribute>
            </xs:extension>
        </xs:simpleContent>
    </xs:complexType>
    <xs:complexType name="FoStavType">
        <xs:annotation>
            <xs:documentation>
                Fyzická osoba (obyvatel) v ROS s vazbou na statutární orgán v editačním dotazu do ROS
                včetně stavu jednotlivých údajů.
            </xs:documentation>
        </xs:annotation>
        <xs:complexContent>
            <xs:extension base="ros:FoType">
                <xs:attribute name="stav">
                    <xs:simpleType>
                        <xs:restriction base="ros:StavRosType">
                            <xs:enumeration value="spravny"/>
                            <xs:enumeration value="nespravny"/>
                        </xs:restriction>
                    </xs:simpleType>
                </xs:attribute>
            </xs:extension>
        </xs:complexContent>
    </xs:complexType>
    <xs:complexType name="AdresaStavType">
        <xs:annotation>
            <xs:documentation>
                Adresa v editačním dotazu do ROS včetně stavu.
            </xs:documentation>
        </xs:annotation>
        <xs:complexContent>
            <xs:extension base="ros:AdresaType">
                <xs:attribute name="stav">
                    <xs:simpleType>
                        <xs:restriction base="ros:StavRosType">
                            <xs:enumeration value="spravny"/>
                            <xs:enumeration value="nespravny"/>
                        </xs:restriction>
                    </xs:simpleType>
                </xs:attribute>
            </xs:extension>
        </xs:complexContent>
    </xs:complexType>
    <xs:complexType name="AdresaDorucovaciStavType">
        <xs:annotation>
            <xs:documentation>
                Adresa doručovací včetně stavu.
            </xs:documentation>
        </xs:annotation>
        <xs:complexContent>
            <xs:extension base="ros:AdresaDorucovaciType">
                <xs:attribute name="stav">
                    <xs:simpleType>
                        <xs:restriction base="ros:StavRosType">
                            <xs:enumeration value="spravny"/>
                            <xs:enumeration value="nespravny"/>
                        </xs:restriction>
                    </xs:simpleType>
                </xs:attribute>
            </xs:extension>
        </xs:complexContent>
    </xs:complexType>
    <xs:complexType name="ProvozovnaStavType">
        <xs:annotation>
            <xs:documentation>
                Provozovna v editačním dotazu do ROS včetně stavu jednotlivých údajů.
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="Icp" type="reg:IcpType"/>
            <xs:element name="DatumZahajeniCinnosti" type="DatumZahajeniCinnostiStavType"/>
            <xs:element name="DatumUkonceniCinnosti" type="DatumUkonceniCinnostiStavType" minOccurs="0"/>
            <xs:element name="AdresaProvozovny" type="AdresaStavType"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="ProvozovnaStav2Type">
        <xs:annotation>
            <xs:documentation>
                Provozovna v editačním dotazu do ROS včetně stavu jednotlivých údajů pro druhou verzi služeb.
            </xs:documentation>
        </xs:annotation>
        <xs:complexContent>
            <xs:extension base="ProvozovnaStavType">
                <xs:sequence>
                    <xs:element name="DorucovaciAdresaProvozovny" type="AdresaDorucovaciStavType" minOccurs="0"/>
                </xs:sequence>
            </xs:extension>
        </xs:complexContent>
    </xs:complexType>
    <xs:complexType name="ProvozovnyStavType">
        <xs:annotation>
            <xs:documentation>
                Provozovny osoby v editačním dotazu (pouze vložení) do ROS 
                včetně stavu jednotlivých údajů provozoven.
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="Provozovna" type="ProvozovnaStavType" maxOccurs="unbounded"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="ProvozovnyStav2Type">
        <xs:annotation>
            <xs:documentation>
                <!--doplnit text-->
                Provozovny osoby v editačním dotazu (pouze vložení) do ROS 
                včetně stavu jednotlivých údajů provozoven.
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="Provozovna" type="ProvozovnaStav2Type" maxOccurs="unbounded"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="ProvozovnaEditStavType">
        <xs:annotation>
            <xs:documentation>
                Provozovna v editačním dotazu do ROS (pouze změny) včetně stavu jednotlivých údajů.
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="Icp" type="reg:IcpType"/>
            <xs:element name="DatumZahajeniCinnosti" type="DatumZahajeniCinnostiStavType" minOccurs="0"/>
            <xs:element name="DatumUkonceniCinnosti" type="DatumUkonceniCinnostiStavType" nillable="true" minOccurs="0"/>
            <xs:element name="AdresaProvozovny" type="AdresaStavType" minOccurs="0"/>
            <xs:element name="DorucovaciAdresaProvozovny" type="AdresaDorucovaciStavType" nillable="true" minOccurs="0"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="StatutarniOrganStavType">
        <xs:annotation>
            <xs:documentation>
                Statutární orgán osoby v ROS v editačním dotazu do ROS včetně jeho stavu.
            </xs:documentation>
        </xs:annotation>
        <xs:complexContent>
            <xs:extension base="ros:StatutarniOrganType">
                <xs:attribute name="stav">
                    <xs:simpleType>
                        <xs:restriction base="ros:StavRosType">
                            <xs:enumeration value="spravny"/>
                            <xs:enumeration value="nespravny"/>
                        </xs:restriction>
                    </xs:simpleType>
                </xs:attribute>
            </xs:extension>
        </xs:complexContent>
    </xs:complexType>
    <xs:complexType name="StatutarniOrganyStavType">
        <xs:annotation>
            <xs:documentation>
                Statutární orgány osoby v editačním dotazu (pouze vložení) do ROS
                včetně stavu jednotlivých statutárních orgánů. 
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="StatutarniOrgan" type="StatutarniOrganStavType" maxOccurs="unbounded"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="StatutarniOrganUkonEditStavType">
        <xs:annotation>
            <xs:documentation>
                Statutární orgán osoby v editačním dotazu (pouze změny) do ROS včetně stavu jednotlivých údajů
                a typu úkonu.
            </xs:documentation>
        </xs:annotation>
        <xs:choice>
            <xs:element name="UdajeStatutarnihoOrganuVlozeni" type="StatutarniOrganStavType"/>
            <xs:element name="UdajeStatutarnihoOrganuVymaz" type="ros:StatutarniOrganType"/>
        </xs:choice>
    </xs:complexType>
    <xs:complexType name="StatutarniOrganyUkonEditStavType">
        <xs:annotation>
            <xs:documentation>
                Statutární orgány osoby v editačním dotazu (pouze změny) do ROS.
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="StatutarniOrgan" type="StatutarniOrganUkonEditStavType" maxOccurs="unbounded"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="OsobaStavAbstractType" abstract="true">
        <xs:annotation>
            <xs:documentation>
                Společný předek pro fyzickou a právnickou osobu v editačním dotazu (pouze vložení) do ROS včetně stavu
                jednotlivých údajů.
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="Ico" type="reg:IcoType"/>
            <xs:element name="IcoKontrola" type="ros:IcoKontrolaType" minOccurs="0"/>
            <xs:element name="NazevOsoby" type="NazevOsobyStavType"/>
            <xs:element name="KodPravniFormy" type="KodPravniFormyStavType"/>
            <xs:element name="DatumVznikuOpravneni" type="DatumVznikuOpravneniStavType"/>
            <xs:element name="DatumZanikuOpravneni" type="DatumZanikuOpravneniStavType" minOccurs="0"/>
            <xs:element name="AdresaSidla" type="AdresaStavType"/>
            <xs:element name="PozastaveniPreruseni" type="PozastaveniPreruseniStavType" minOccurs="0"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="OsobaStavAbstract2Type" abstract="true">
        <xs:annotation>
            <xs:documentation>
                Společný předek pro fyzickou a právnickou osobu v editačním dotazu (pouze vložení) do ROS včetně stavu
                jednotlivých údajů pro druhou verzi služeb.
            </xs:documentation>
        </xs:annotation>
        <xs:complexContent>
            <xs:extension base="OsobaStavAbstractType">
                <xs:sequence>
                    <xs:element name="AdresaDorucovaci" type="AdresaDorucovaciStavType" minOccurs="0"/>
                </xs:sequence>
            </xs:extension>
        </xs:complexContent>
    </xs:complexType>
    <xs:complexType name="VerejnaProspesnostStavType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Příznak veřejné prospěšnosti v ROS včetně stavu.
            </xs:documentation>
        </xs:annotation>
        <xs:simpleContent>
            <xs:extension base="ros:VerejnaProspesnostType">
                <xs:attribute name="stav">
                    <xs:simpleType>
                        <xs:restriction base="ros:StavRosType">
                            <xs:enumeration value="spravny"/>
                            <xs:enumeration value="nespravny"/>
                        </xs:restriction>
                    </xs:simpleType>
                </xs:attribute>
            </xs:extension>
        </xs:simpleContent>
    </xs:complexType>
    <xs:complexType name="PozastaveniPreruseniStavType">
        <xs:annotation>
            <xs:documentation xml:lang="cs">
                Příznak pozastavení/přerušení činnosti osoby v ROS včetně stavu.
            </xs:documentation>
        </xs:annotation>
        <xs:simpleContent>
            <xs:extension base="ros:PozastaveniPreruseniType">
                <xs:attribute name="stav">
                    <xs:simpleType>
                        <xs:restriction base="ros:StavRosType">
                            <xs:enumeration value="spravny"/>
                            <xs:enumeration value="nespravny"/>
                        </xs:restriction>
                    </xs:simpleType>
                </xs:attribute>
            </xs:extension>
        </xs:simpleContent>
    </xs:complexType>
    <xs:complexType name="LikvidatorStavType">
        <xs:annotation>
            <xs:documentation>
                Likvidátor v editačním dotazu do ROS včetně jeho stavu.
            </xs:documentation>
        </xs:annotation>
        <xs:complexContent>
            <xs:extension base="ros:AngazovanaOsobaAbstractType">
                <xs:attribute name="stav">
                    <xs:simpleType>
                        <xs:restriction base="ros:StavRosType">
                            <xs:enumeration value="spravny"/>
                            <xs:enumeration value="nespravny"/>
                        </xs:restriction>
                    </xs:simpleType>
                </xs:attribute>
            </xs:extension>
        </xs:complexContent>
    </xs:complexType>
    <xs:complexType name="LikvidatorStav2Type">
        <xs:annotation>
            <xs:documentation>
                Likvidátor v editačním dotazu do ROS včetně jeho stavu ve druhé verzi služeb.
            </xs:documentation>
        </xs:annotation>
        <xs:complexContent>
            <xs:extension base="ros:AngazovanaOsobaAbstract2Type">
                <xs:attribute name="stav">
                    <xs:simpleType>
                        <xs:restriction base="ros:StavRosType">
                            <xs:enumeration value="spravny"/>
                            <xs:enumeration value="nespravny"/>
                        </xs:restriction>
                    </xs:simpleType>
                </xs:attribute>
            </xs:extension>
        </xs:complexContent>
    </xs:complexType>
    <xs:complexType name="OpatrovnikStavType">
        <xs:annotation>
            <xs:documentation>
                Opatrovník v editačním dotazu do ROS včetně jeho stavu.
            </xs:documentation>
        </xs:annotation>
        <xs:complexContent>
            <xs:extension base="ros:AngazovanaOsobaAbstractType">
                <xs:attribute name="stav">
                    <xs:simpleType>
                        <xs:restriction base="ros:StavRosType">
                            <xs:enumeration value="spravny"/>
                            <xs:enumeration value="nespravny"/>
                        </xs:restriction>
                    </xs:simpleType>
                </xs:attribute>
            </xs:extension>
        </xs:complexContent>
    </xs:complexType>
    <xs:complexType name="OpatrovnikStav2Type">
        <xs:annotation>
            <xs:documentation>
                Opatrovník v editačním dotazu do ROS včetně jeho stavu ve druhé verzi služeb.
            </xs:documentation>
        </xs:annotation>
        <xs:complexContent>
            <xs:extension base="ros:AngazovanaOsobaAbstract2Type">
                <xs:attribute name="stav">
                    <xs:simpleType>
                        <xs:restriction base="ros:StavRosType">
                            <xs:enumeration value="spravny"/>
                            <xs:enumeration value="nespravny"/>
                        </xs:restriction>
                    </xs:simpleType>
                </xs:attribute>
            </xs:extension>
        </xs:complexContent>
    </xs:complexType>
    <xs:complexType name="NucenySpravceStavType">
        <xs:annotation>
            <xs:documentation>
                Nucený správce v editačním dotazu do ROS včetně jeho stavu.
            </xs:documentation>
        </xs:annotation>
        <xs:complexContent>
            <xs:extension base="ros:AngazovanaOsobaAbstractType">
                <xs:attribute name="stav">
                    <xs:simpleType>
                        <xs:restriction base="ros:StavRosType">
                            <xs:enumeration value="spravny"/>
                            <xs:enumeration value="nespravny"/>
                        </xs:restriction>
                    </xs:simpleType>
                </xs:attribute>
            </xs:extension>
        </xs:complexContent>
    </xs:complexType>
    <xs:complexType name="NucenySpravceStav2Type">
        <xs:annotation>
            <xs:documentation>
                Nucený správce v editačním dotazu do ROS včetně jeho stavu ve druhé verzi služeb.
            </xs:documentation>
        </xs:annotation>
        <xs:complexContent>
            <xs:extension base="ros:AngazovanaOsobaAbstract2Type">
                <xs:attribute name="stav">
                    <xs:simpleType>
                        <xs:restriction base="ros:StavRosType">
                            <xs:enumeration value="spravny"/>
                            <xs:enumeration value="nespravny"/>
                        </xs:restriction>
                    </xs:simpleType>
                </xs:attribute>
            </xs:extension>
        </xs:complexContent>
    </xs:complexType>
    <xs:complexType name="InsolvencniSpravceStavType">
        <xs:annotation>
            <xs:documentation>
                Insolvenční správce v editačním dotazu do ROS včetně jeho stavu.
            </xs:documentation>
        </xs:annotation>
        <xs:complexContent>
            <xs:extension base="ros:AngazovanaOsobaAbstractType">
                <xs:attribute name="stav">
                    <xs:simpleType>
                        <xs:restriction base="ros:StavRosType">
                            <xs:enumeration value="spravny"/>
                            <xs:enumeration value="nespravny"/>
                        </xs:restriction>
                    </xs:simpleType>
                </xs:attribute>
            </xs:extension>
        </xs:complexContent>
    </xs:complexType>
    <xs:complexType name="InsolvencniSpravceStav2Type">
        <xs:annotation>
            <xs:documentation>
                Insolvenční správce v editačním dotazu do ROS včetně jeho stavu ve druhé verzi služeb.
            </xs:documentation>
        </xs:annotation>
        <xs:complexContent>
            <xs:extension base="ros:AngazovanaOsobaAbstract2Type">
                <xs:attribute name="stav">
                    <xs:simpleType>
                        <xs:restriction base="ros:StavRosType">
                            <xs:enumeration value="spravny"/>
                            <xs:enumeration value="nespravny"/>
                        </xs:restriction>
                    </xs:simpleType>
                </xs:attribute>
            </xs:extension>
        </xs:complexContent>
    </xs:complexType>
    <xs:complexType name="LikvidatoriStav2Type">
        <xs:annotation>
            <xs:documentation>
                Likvidátoři osoby v editačním dotazu do ROS
                včetně stavu jednotlivých likvidátorů ve druhé verzi služeb. 
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="Likvidator" type="LikvidatorStav2Type" maxOccurs="unbounded"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="OpatrovniciStav2Type">
        <xs:annotation>
            <xs:documentation>
                Opatrovnici osoby v editačním dotazu do ROS
                včetně stavu jednotlivých opatrovníků ve druhé verzi služeb. 
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="Opatrovnik" type="OpatrovnikStav2Type" maxOccurs="unbounded"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="NuceniSpravciStav2Type">
        <xs:annotation>
            <xs:documentation>
                Nucení správci osoby v editačním dotazu do ROS
                včetně stavu jednotlivých nucených správců ve druhé verzi služeb. 
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="NucenySpravce" type="NucenySpravceStav2Type" maxOccurs="unbounded"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="InsolvencniSpravciStav2Type">
        <xs:annotation>
            <xs:documentation>
                Insolvenční správci osoby v editačním dotazu do ROS
                včetně stavu jednotlivých Insolvenčních správců ve druhé verzi služeb. 
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="InsolvencniSpravce" type="InsolvencniSpravceStav2Type" maxOccurs="unbounded"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="ZastupciStavType">
        <xs:annotation>
            <xs:documentation>
                Seznam zástupců statutárního orgánu. 
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="Zastupce" type="ros:FoStav2Type" maxOccurs="unbounded"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="StatOrganZastupceStavType">
        <xs:annotation>
            <xs:documentation>
                Statutární orgán osoby v ROS v editačním dotazu do ROS včetně jeho stavu a seznamu zástupců se stavem.
            </xs:documentation>
        </xs:annotation>
        <xs:choice>
            <xs:sequence>
                <xs:choice>
                    <xs:element name="OsobaIco" type="reg:IcoType"/>
                    <xs:element name="NazevAdresa" type="ros:NazevAdresaType"/>
                </xs:choice>
                <xs:element name="Zastupci" type="ZastupciStavType" minOccurs="0"/>
            </xs:sequence>
            <xs:element name="FyzickaOsoba" type="ros:FoAngazovaneOsobyStav2Type"/>
        </xs:choice>
        <xs:attribute name="stav">
            <xs:simpleType>
                <xs:restriction base="ros:StavRosType">
                    <xs:enumeration value="spravny"/>
                    <xs:enumeration value="nespravny"/>
                </xs:restriction>
            </xs:simpleType>
        </xs:attribute>
    </xs:complexType>
    <xs:complexType name="StatOrganyZastupceStavType">
        <xs:annotation>
            <xs:documentation>
               Statutární orgány osoby v editačním dotazu do ROS
               včetně stavu jednotlivých statutárních orgánů a seznamu zástupců se stavem. 
            </xs:documentation>
        </xs:annotation>
        <xs:sequence>
            <xs:element name="StatutarniOrganZastupce" type="StatOrganZastupceStavType" maxOccurs="unbounded"/>
        </xs:sequence>
    </xs:complexType>
</xs:schema>
