<?xml version="1.0" encoding="UTF-8" ?>
<xsd:schema elementFormDefault="qualified" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

    <xsd:include schemaLocation="F_OVZ_common_2026_1.xsd" />

    <!-- form element -->
    <xsd:element name="F_OVZ_TERM_JME">
        <xsd:complexType>

            <xsd:sequence>
                <xsd:element name="meta-info" type="MetaInfoTyp" />
                <xsd:element name="sekceZakladniUdaje" type="SekceZakladniUdajeTyp" />
                <xsd:element name="sekceMereni" type="SekceMereniTyp" />
            </xsd:sequence>

            <xsd:attribute name="version" type="ShortStringTyp" use="required" fixed="2026" />
            <xsd:attribute name="revision" type="ShortStringTyp" use="required" fixed="1" />

        </xsd:complexType>
    </xsd:element>
    <!-- end of form element -->

    <!-- sekce complex types -->
    <xsd:complexType name="SekceZakladniUdajeTyp">
        <xsd:all>
            <xsd:element name="radneDoplneneHlaseni" type="RadneDoplneneHlaseniTyp" />
            <xsd:element name="rok" type="RokTyp" fixed="2027" />
            <xsd:element name="rokUskutecneniMereni" type="RokTyp" />

            <xsd:element name="ohlasovatelProvozovatel" type="OhlasovatelVseTyp" />
            <xsd:element name="provozovna" type="ProvozovnaOvzTyp" />

            <xsd:element name="mericiSkupina" type="OhlasovatelVseTyp" />
            <xsd:element name="mericiSkupinaOstatni" type="MericiSkupinaOstatniTyp" />

            <xsd:element name="hlaseniVyplnil" type="ZpracovatelNTTyp" />
        </xsd:all>
    </xsd:complexType>

    <xsd:complexType name="SekceMereniTyp">
        <xsd:all>
            <xsd:element name="mereni" type="MereniTyp" />
            <xsd:element name="poznamka" type="ExtraLongStringTyp" minOccurs="0" />
            <xsd:element name="prilohy" type="PrilohyTyp" minOccurs="0" />
        </xsd:all>
    </xsd:complexType>
    <!-- end of sekce complex types -->

    <!-- complex types -->
    <xsd:complexType name="MericiSkupinaOstatniTyp">
        <xsd:sequence>
        </xsd:sequence>
    </xsd:complexType>

    <xsd:complexType name="MereniTyp">
        <xsd:sequence>
            <xsd:element name="termin" type="TerminOznameniTyp" />
            <xsd:element name="ucel" type="UcelTyp" />
            <xsd:element name="udajeOZdrojichVydusichALatkach" type="UdajeOZdrojichVydusichALatkachTyp" />
        </xsd:sequence>
    </xsd:complexType>

    <xsd:complexType name="TerminOznameniTyp">
        <xsd:sequence>
            <xsd:element name="oznameniTerminuMereniEmisiOd" type="xsd:date" />
            <xsd:element name="oznameniTerminuMereniEmisiDo" type="xsd:date" minOccurs="0" />
            <xsd:element name="zruseniTerminuMereni" type="xsd:boolean" minOccurs="0" />
        </xsd:sequence>
    </xsd:complexType>

    <xsd:complexType name="UcelTyp">
        <xsd:sequence>
            <xsd:element name="vycetZnecistujicichLatek" type="VycetLatekTyp" />
            <xsd:element name="overeniAKontrola" type="OvereniAKontrolaVyberTyp" />
        </xsd:sequence>
    </xsd:complexType>

    <xsd:complexType name="VycetLatekTyp">
        <xsd:sequence>
            <xsd:element name="znecistujiciLatka" type="ZnecistujiciLatkaTyp" minOccurs="1" maxOccurs="unbounded" />
        </xsd:sequence>
    </xsd:complexType>

    <xsd:complexType name="ZnecistujiciLatkaTyp">
        <xsd:sequence>
            <xsd:element name="znecistujiciLatkaKod" type="MediumStringTyp" />
            <xsd:element name="znecistujiciLatkaUpresneni" type="LongStringTyp" minOccurs="0" />
        </xsd:sequence>
    </xsd:complexType>

    <xsd:complexType name="UdajeOZdrojichVydusichALatkachTyp">
        <xsd:sequence>
            <xsd:element name="predmetJednorazovehoMereniEmisi" type="PredmetMereniTyp" minOccurs="1" maxOccurs="unbounded" />
        </xsd:sequence>
    </xsd:complexType>

    <xsd:complexType name="PredmetMereniTyp">
        <xsd:sequence>
            <xsd:element name="nazevMerenehoStacionarnihoZdroje" type="LongStringTyp" />
            <xsd:element name="stacionarniZdroje" type="StacionarniZdrojeTyp" />
            <xsd:element name="vyduchy" type="VyduchyTyp" />
        </xsd:sequence>
    </xsd:complexType>

    <xsd:complexType name="StacionarniZdrojeTyp">
        <xsd:sequence>
            <xsd:element name="zdroj" type="StacionarniZdrojTyp" minOccurs="1" maxOccurs="unbounded" />
        </xsd:sequence>
    </xsd:complexType>

    <xsd:complexType name="StacionarniZdrojTyp">
        <xsd:sequence>
            <xsd:element name="poradoveCisloStacionarnihoZdrojeVIspop" type="CisloZdrojeObecneTyp" />
        </xsd:sequence>
    </xsd:complexType>

    <xsd:complexType name="VyduchyTyp">
        <xsd:sequence>
            <xsd:element name="vyduch" type="VyduchTyp" minOccurs="1" maxOccurs="unbounded" />
        </xsd:sequence>
    </xsd:complexType>

    <xsd:complexType name="VyduchTyp">
        <xsd:sequence>
            <xsd:element name="poradoveCisloVyduchuKominuVIspop" type="CisloZdrojeObecneTyp" />
        </xsd:sequence>
    </xsd:complexType>

    <xsd:complexType name="OvereniAKontrolaVyberTyp">
        <xsd:sequence>
            <xsd:element name="overeniPlneniEmisnichLimitu" type="xsd:boolean" minOccurs="0" />
            <xsd:element name="kontrolaAms" type="xsd:boolean" minOccurs="0" />
        </xsd:sequence>
    </xsd:complexType>

    <xsd:complexType name="PrilohyTyp">
        <xsd:sequence>
            <xsd:element name="priloha" type="FileDataTyp" minOccurs="0" maxOccurs="unbounded" />
        </xsd:sequence>
    </xsd:complexType>
    <!-- end of complex types -->

    <!-- simple types -->
    <xsd:simpleType name="CisloZdrojeObecneTyp">
        <xsd:restriction base="xsd:integer">
            <xsd:minInclusive value="1" />
            <xsd:maxInclusive value="999" />
        </xsd:restriction>
    </xsd:simpleType>
    <!-- end of simple types -->

</xsd:schema>
