<?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_SPE">
        <xsd:complexType>

            <xsd:sequence>
                <xsd:element name="meta-info" type="MetaInfoTyp" />
                <xsd:element name="sekce1" type="Sekce1Typ" />
                <xsd:choice>
                    <xsd:element name="uplneOhlaseni" type="UplneOhlaseniTyp" />
                    <xsd:element name="zjednoduseneOhlaseni" type="ZjednoduseneOhlaseniTyp" />
                </xsd:choice>
                <xsd:element name="sekce6" type="Sekce6Typ" />
            </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="UplneOhlaseniTyp">
        <xsd:sequence>
            <xsd:element name="sekce2" type="SpalovaciZdrojeTyp" />
            <xsd:element name="sekce3" type="OstatniZdrojeTyp" />
            <xsd:element name="sekce4" type="SekceKomin" />
            <xsd:element name="sekce5" type="SekceAutorizovaneMereni" />
        </xsd:sequence>
    </xsd:complexType>

    <xsd:complexType name="ZjednoduseneOhlaseniTyp">
        <xsd:sequence>
            <xsd:element name="tykajiSeUdajePravidelnehoMereni" type="xsd:boolean" minOccurs="0" />
            <xsd:element name="sekce2z" type="SpalovaciZdrojeZjednoduseneTyp" />
            <xsd:element name="sekce3z" type="SpalovaciZdrojeZjednoduseneTyp" />
            <xsd:element name="sekce4z" type="CerpaciStaniceZjednoduseneTyp" />
        </xsd:sequence>
    </xsd:complexType>

    <xsd:complexType name="Sekce1Typ">
        <xsd:all>
            <xsd:element name="radneDoplneneHlaseni" type="RadneDoplneneHlaseniTyp" />
            <xsd:element name="rok" type="RokTyp" fixed="2026" />

            <xsd:element name="provozovnaSPremistitelnymiZdroji" type="ProvozovnaSPremistitelnymiZdrojiTyp" minOccurs="0" />
            <xsd:element name="provozNaJednomMiste" type="xsd:boolean" minOccurs="0" />

            <xsd:element name="hlaseniVyplnil" type="ZpracovatelNTTyp" />
            <xsd:element name="ohlasovatel" type="OhlasovatelOvzTyp" />
            <xsd:element name="provozovna" type="ProvozovnaOvzTyp" />

            <xsd:element name="prilohaObecne" type="FileDataTyp" minOccurs="0" />
            <xsd:element name="prilohaRocniHmBilance" type="FileDataTyp" minOccurs="0" />
            <xsd:element name="pripojeneDokumenty" type="AttachmentsTyp" minOccurs="0" />
        </xsd:all>
    </xsd:complexType>


    <xsd:complexType name="ProvozovnaSPremistitelnymiZdrojiTyp">
        <xsd:sequence>
            <xsd:choice>
                <xsd:element name="provozovnaSPovolenimKU" type="ProvozovnaSPovolenimKUTyp" />
                <xsd:element name="provozovnaBezPovoleniKU" type="ProvozovnaBezPovoleniKUTyp" />
            </xsd:choice>
        </xsd:sequence>
    </xsd:complexType>

    <xsd:complexType name="ProvozovnaSPovolenimKUTyp">
        <xsd:sequence>
            <xsd:element name="krajskyUrad" type="KrajskyUradTyp" />
        </xsd:sequence>
    </xsd:complexType>

    <xsd:complexType name="ProvozovnaBezPovoleniKUTyp" />

    <xsd:complexType name="KrajskyUradTyp">
        <xsd:all>
            <xsd:element name="kod" type="MediumStringTyp" />
        </xsd:all>
    </xsd:complexType>

    <xsd:complexType name="SpalovaciZdrojeTyp">
        <xsd:all>
            <xsd:element name="zdroje">
                <xsd:complexType>
                    <xsd:sequence>
                        <xsd:element name="zdroj" type="ZdrojTyp" minOccurs="0" maxOccurs="unbounded" />
                    </xsd:sequence>
                </xsd:complexType>
            </xsd:element>
        </xsd:all>
    </xsd:complexType>

    <xsd:complexType name="SpalovaciZdrojeZjednoduseneTyp">
        <xsd:all>
            <xsd:element name="zdroje">
                <xsd:complexType>
                    <xsd:sequence>
                        <xsd:element name="zdroj" type="ZdrojZjednodusenyTyp" minOccurs="0" maxOccurs="unbounded" />
                    </xsd:sequence>
                </xsd:complexType>
            </xsd:element>
        </xsd:all>
    </xsd:complexType>

    <xsd:complexType name="OstatniZdrojeTyp">
        <xsd:all>
            <xsd:element name="zdroje">
                <xsd:complexType>
                    <xsd:sequence>
                        <xsd:element name="zdroj" type="OstatniZdrojTyp" minOccurs="0" maxOccurs="unbounded" />
                    </xsd:sequence>
                </xsd:complexType>
            </xsd:element>
        </xsd:all>
    </xsd:complexType>

    <xsd:complexType name="CerpaciStaniceZjednoduseneTyp">
        <xsd:all>
            <xsd:element name="zdroje">
                <xsd:complexType>
                    <xsd:sequence>
                        <xsd:element name="zdroj" type="CerpaciStaniceTyp" minOccurs="0" maxOccurs="unbounded" />
                    </xsd:sequence>
                </xsd:complexType>
            </xsd:element>
        </xsd:all>
    </xsd:complexType>

    <xsd:complexType name="SekceKomin">
        <xsd:all>
            <xsd:element name="kominy" minOccurs="0">
                <xsd:complexType>
                    <xsd:sequence>
                        <xsd:element name="komin" type="KominTyp" minOccurs="0" maxOccurs="unbounded" />
                    </xsd:sequence>
                </xsd:complexType>
            </xsd:element>
        </xsd:all>
    </xsd:complexType>

    <xsd:complexType name="SekceAutorizovaneMereni">
        <xsd:all>
            <xsd:element name="autorizovaneMereni" minOccurs="0">
                <xsd:complexType>
                    <xsd:sequence>
                        <xsd:element name="mereni" type="MereniTyp" minOccurs="0" maxOccurs="unbounded" />
                    </xsd:sequence>
                </xsd:complexType>
            </xsd:element>
        </xsd:all>
    </xsd:complexType>

    <xsd:complexType name="MereniTyp">
        <xsd:all>
            <xsd:element name="zdroje">
                <xsd:complexType>
                    <xsd:sequence>
                        <xsd:element name="zdroj" maxOccurs="unbounded">
                            <xsd:complexType>
                                <xsd:sequence>
                                    <xsd:element name="cislo" type="CisloZdrojeObecneTyp" />
                                </xsd:sequence>
                            </xsd:complexType>
                        </xsd:element>
                    </xsd:sequence>
                </xsd:complexType>
            </xsd:element>
            <xsd:element name="oznaceniMista" type="MediumStringTyp" minOccurs="0" />
            <xsd:element name="emiseTZL" type="EmiseMereniTyp" />
            <xsd:element name="emiseSO2" type="EmiseMereniTyp" />
            <xsd:element name="emiseNOx" type="EmiseMereniTyp" />
            <xsd:element name="emiseCO" type="EmiseMereniTyp" />
            <xsd:element name="emiseTOC" type="EmiseMereniTyp" />
            <xsd:element name="emiseVOC" type="EmiseMereniTyp" />
            <xsd:element name="emise">
                <xsd:complexType>
                    <xsd:sequence>
                        <xsd:element name="emiseSeq" type="EmiseMereniList5Typ" minOccurs="0" maxOccurs="unbounded" />
                    </xsd:sequence>
                </xsd:complexType>
            </xsd:element>
            <xsd:element name="prilohaList5AutorizovaneMereni_1" type="FileDataTyp" minOccurs="0" />
            <xsd:element name="prilohaList5AutorizovaneMereni_2" type="FileDataTyp" minOccurs="0" />
            <xsd:element name="prilohaList5AutorizovaneMereni_3" type="FileDataTyp" minOccurs="0" />
            <xsd:element name="prilohaList5AutorizovaneMereni_4" type="FileDataTyp" minOccurs="0" />
            <xsd:element name="prilohaList5AutorizovaneMereni_5" type="FileDataTyp" minOccurs="0" />
        </xsd:all>
    </xsd:complexType>

    <xsd:complexType name="Sekce6Typ">
        <xsd:all>
            <xsd:element name="integrovanePovoleni" type="IntegrovanePovoleni10Typ" minOccurs="0" />
        </xsd:all>
    </xsd:complexType>

    <!-- end of sekce complex types -->

    <!-- complex types -->
    <xsd:complexType name="ZdrojTyp">
        <xsd:all>
            <xsd:element name="cislo" type="CisloZdrojeTyp" />
            <xsd:element name="souhrnneVyplneniUdaju" type="xsd:boolean" />
            <xsd:element name="zarazeni" type="ShortStringTyp" />
            <xsd:element name="datumVydaniPovoleni" type="xsd:date" />
            <xsd:element name="datumUvedeniDoProvozu" type="xsd:date" minOccurs="0" />
            <xsd:element name="nazev" type="LongStringTyp" />
            <xsd:element name="zalozniZdrojElEnergie" type="xsd:boolean" />
            <xsd:element name="ucinnost" type="DecimalPoz1FrTyp" minOccurs="0" />
            <xsd:element name="tepelnyVykon" type="DecimalPoz3FrTyp" minOccurs="0" />
            <xsd:element name="elektrickyVykon" type="DecimalPoz3FrTyp" minOccurs="0" />
            <xsd:element name="tepelnyPrikon" type="DecimalPoz3FrTyp" minOccurs="0" />
            <xsd:element name="celkovyTepelnyPrikon" type="DecimalPoz3FrTyp" minOccurs="0" />
            <xsd:element name="kapacita" type="DecimalPoz1FrTyp" minOccurs="0" />
            <xsd:element name="druhTopeniste" type="LongStringTyp" minOccurs="0" />
            <xsd:element name="provozniHodiny" type="Decimal0FrTyp" />
            <xsd:element name="celkoveProvozniHodiny" type="Decimal0FrTyp" minOccurs="0" />
            <xsd:element name="vyuzitiKapacity" type="Procenta0FrTyp" minOccurs="0" />
            <xsd:element name="teploDodaneKVyuziti" type="Decimal0FrTyp" minOccurs="0" />
            <xsd:element name="podilTeplaVeFormePary" type="Procenta1FrTyp" minOccurs="0" />
            <xsd:element name="paliva">
                <xsd:complexType>
                    <xsd:sequence>
                        <xsd:element name="palivoSeq" type="PalivoTyp" minOccurs="0" maxOccurs="unbounded" />
                    </xsd:sequence>
                </xsd:complexType>
            </xsd:element>
            <xsd:element name="emiseTZL" type="EmiseTyp" />
            <xsd:element name="emiseSO2" type="EmiseTyp" />
            <xsd:element name="emiseNOx" type="EmiseTyp" />
            <xsd:element name="emiseCO" type="EmiseTyp" />
            <xsd:element name="emiseTOC" type="EmiseTyp" />
            <xsd:element name="emise">
                <xsd:complexType>
                    <xsd:sequence>
                        <xsd:element name="emiseSeq" type="EmiseTyp" minOccurs="0" maxOccurs="unbounded" />
                    </xsd:sequence>
                </xsd:complexType>
            </xsd:element>
        </xsd:all>
    </xsd:complexType>

    <xsd:complexType name="ZdrojZjednodusenyTyp">
        <xsd:all>
            <xsd:element name="paliva">
                <xsd:complexType>
                    <xsd:sequence>
                        <xsd:element name="palivoSeq" type="PalivoTyp" minOccurs="0" maxOccurs="unbounded" />
                    </xsd:sequence>
                </xsd:complexType>
            </xsd:element>
        </xsd:all>
    </xsd:complexType>

    <xsd:complexType name="KominTyp">
        <xsd:all>
            <xsd:element name="cislo" type="CisloKominuTyp" />
            <xsd:element name="fiktivni" type="xsd:boolean" />
            <xsd:element name="zdroj" type="CisloZdrojeObecneTyp" />
            <xsd:element name="vyska" type="NonNegativeDecimal" />
            <xsd:element name="prurez" type="NonNegativeDecimal" minOccurs="0" />
            <xsd:element name="souradniceNdeg" type="xsd:nonNegativeInteger" />
            <xsd:element name="souradniceNmin" type="xsd:nonNegativeInteger" />
            <xsd:element name="souradniceNsec" type="Decimal3FrTyp" />
            <xsd:element name="souradniceEdeg" type="xsd:nonNegativeInteger" />
            <xsd:element name="souradniceEmin" type="xsd:nonNegativeInteger" />
            <xsd:element name="souradniceEsec" type="Decimal3FrTyp" />
            <xsd:element name="rychlostPlynu" type="Decimal0FrTyp" minOccurs="0" />
            <xsd:element name="teplotaPlynu" type="Decimal0FrTyp" />
            <xsd:element name="casovyRezim" type="CasovyRezimTyp" minOccurs="0" />
            <xsd:element name="provozniHodiny" type="Decimal0FrTyp" />
            <xsd:element name="emiseTZL" type="EmiseKominTyp" />
            <xsd:element name="emiseSO2" type="EmiseKominTyp" />
            <xsd:element name="emiseNOx" type="EmiseKominTyp" />
            <xsd:element name="emiseCO" type="EmiseKominTyp" />
            <xsd:element name="emiseTOC" type="EmiseKominTyp" />
            <xsd:element name="emiseVOC" type="EmiseKominTyp" />
            <xsd:element name="emiseNH3" type="EmiseKominTyp" />
            <xsd:element name="emise">
                <xsd:complexType>
                    <xsd:sequence>
                        <xsd:element name="emiseSeq" type="EmiseKominTyp" minOccurs="0" maxOccurs="unbounded" />
                    </xsd:sequence>
                </xsd:complexType>
            </xsd:element>
        </xsd:all>
    </xsd:complexType>

    <xsd:simpleType name="CisloZdrojeTyp">
        <xsd:restriction base="xsd:integer">
            <xsd:minInclusive value="0" />
            <xsd:maxInclusive value="99" />
        </xsd:restriction>
    </xsd:simpleType>

    <xsd:simpleType name="CisloZdrojeOstatniTyp">
        <xsd:restriction base="xsd:integer">
            <xsd:minInclusive value="101" />
            <xsd:maxInclusive value="999" />
        </xsd:restriction>
    </xsd:simpleType>

    <xsd:simpleType name="CisloKominuTyp">
        <xsd:restriction base="xsd:integer">
            <xsd:minInclusive value="1" />
            <xsd:maxInclusive value="999" />
        </xsd:restriction>
    </xsd:simpleType>

    <xsd:simpleType name="CisloZdrojeObecneTyp">
        <xsd:restriction base="xsd:integer">
            <xsd:minInclusive value="1" />
            <xsd:maxInclusive value="999" />
        </xsd:restriction>
    </xsd:simpleType>

    <xsd:complexType name="EmiseTyp">
        <xsd:sequence>
            <xsd:element name="nazev" type="LongStringTyp" minOccurs="0" />
            <xsd:element name="kod" type="LongStringTyp" minOccurs="0" />
            <xsd:element name="mnozstvi" type="Decimal12FrTyp" minOccurs="0" />
        </xsd:sequence>
    </xsd:complexType>

    <xsd:complexType name="EmiseKominTyp">
        <xsd:complexContent>
            <xsd:extension base="EmiseTyp">
                <xsd:sequence>
                    <xsd:element name="druhTechnologie" type="ShortStringTyp" minOccurs="0" />
                    <xsd:element name="ucinnostTechnologie" type="Decimal3FrTyp" minOccurs="0" />
                </xsd:sequence>
            </xsd:extension>
        </xsd:complexContent>
    </xsd:complexType>


    <xsd:complexType name="PalivoTyp">
        <xsd:all>
            <xsd:element name="druh" type="MediumStringTyp" minOccurs="0" />
            <xsd:element name="vyhrevnost" type="Decimal0FrTyp" minOccurs="0" />
            <xsd:element name="spotreba" type="Decimal3FrTyp" minOccurs="0" />
        </xsd:all>
    </xsd:complexType>

    <xsd:complexType name="EmiseMereniTyp">
        <xsd:sequence>
            <xsd:element name="latkaKod" type="MediumStringTyp" minOccurs="0" />
            <xsd:element name="latkaNazev" type="LongStringTyp" minOccurs="0" />

            <xsd:element name="emisniLimit" type="Decimal3FrTyp" minOccurs="0" />
            <xsd:element name="emisniLimitJednotka" type="MediumStringTyp" minOccurs="0" />
            <xsd:element name="emisniKoncentrace" type="Decimal3FrTyp" minOccurs="0" />
            <xsd:element name="emisniKoncentraceJednotka" type="MediumStringTyp" minOccurs="0" />

            <xsd:element name="koncentrace" type="Decimal3FrTyp" minOccurs="0" />
            <xsd:element name="jednotkaKoncentrace" type="MediumStringTyp" minOccurs="0" />
            <xsd:element name="hmotnostniTok" type="Decimal12FrTyp" minOccurs="0" />
            <xsd:element name="mve" type="Decimal3FrTyp" minOccurs="0" />
            <xsd:element name="mveJednotka" type="MediumStringTyp" minOccurs="0" />
        </xsd:sequence>
    </xsd:complexType>

    <xsd:complexType name="EmiseMereniList5Typ">
        <xsd:complexContent>
            <xsd:extension base="EmiseMereniTyp">
                <xsd:sequence>
                    <xsd:element name="latkaUpresneni" type="LongStringTyp" minOccurs="0" />
                </xsd:sequence>
            </xsd:extension>
        </xsd:complexContent>
    </xsd:complexType>

    <xsd:complexType name="CasovyRezimTyp">
        <xsd:all>
            <xsd:element name="denni">
                <xsd:complexType>
                    <xsd:all>
                        <xsd:element name="sestAzSestnact" type="xsd:boolean" minOccurs="0" />
                        <xsd:element name="ctrnactAzPulnoc" type="xsd:boolean" minOccurs="0" />
                        <xsd:element name="dvacetAzOsm" type="xsd:boolean" minOccurs="0" />
                    </xsd:all>
                </xsd:complexType>
            </xsd:element>
            <xsd:element name="tydenni">
                <xsd:complexType>
                    <xsd:all>
                        <xsd:element name="pracDny" type="xsd:boolean" minOccurs="0" />
                        <xsd:element name="soboty" type="xsd:boolean" minOccurs="0" />
                        <xsd:element name="nedele" type="xsd:boolean" minOccurs="0" />
                    </xsd:all>
                </xsd:complexType>
            </xsd:element>
            <xsd:element name="rocni">
                <xsd:complexType>
                    <xsd:all>
                        <xsd:element name="aDekada" type="xsd:boolean" minOccurs="0" />
                        <xsd:element name="bDekada" type="xsd:boolean" minOccurs="0" />
                        <xsd:element name="cDekada" type="xsd:boolean" minOccurs="0" />
                        <xsd:element name="dDekada" type="xsd:boolean" minOccurs="0" />
                    </xsd:all>
                </xsd:complexType>
            </xsd:element>
            <xsd:element name="casRezim" type="LongStringTyp" />
        </xsd:all>
    </xsd:complexType>

    <xsd:complexType name="OstatniZdrojTyp">
        <xsd:all>
            <xsd:element name="souhrnneVyplneniUdaju" type="xsd:boolean" />
            <xsd:element name="zarazeni" type="ShortStringTyp" />
            <xsd:element name="cislo" type="CisloZdrojeOstatniTyp" />
            <xsd:element name="provozniHodiny" type="Decimal0FrTyp" minOccurs="0" />
            <xsd:element name="vyjimkaZMinVzdalenosti" type="xsd:boolean" />
            <xsd:element name="kod" type="LongStringTyp" />
            <xsd:element name="nazev" type="ExtraLongStringTyp" />
            <xsd:element name="nevyjmenovany" type="LongStringTyp" minOccurs="0" />
            <xsd:element name="paliva">
                <xsd:complexType>
                    <xsd:sequence>
                        <xsd:element name="palivoSeq" type="PalivoTyp" minOccurs="0" maxOccurs="unbounded" />
                    </xsd:sequence>
                </xsd:complexType>
            </xsd:element>
            <xsd:element name="spotrebaVOCa" type="Decimal3FrTyp" minOccurs="0" />
            <xsd:element name="spotrebaVOCb" type="Decimal3FrTyp" minOccurs="0" />
            <xsd:element name="spotrebaVOCc" type="Decimal3FrTyp" minOccurs="0" />
            <xsd:element name="druhVyrobku" type="LongStringTyp" minOccurs="0" />
            <xsd:element name="jinyDruhVyrobku" type="LongStringTyp" minOccurs="0" />
            <xsd:element name="mnozstviVyrobku" type="Decimal0FrTyp" minOccurs="0" />
            <xsd:element name="emiseTZL" type="EmiseTyp" />
            <xsd:element name="emiseSO2" type="EmiseTyp" />
            <xsd:element name="emiseNOx" type="EmiseTyp" />
            <xsd:element name="emiseCO" type="EmiseTyp" />
            <xsd:element name="emiseTOC" type="EmiseTyp" />
            <xsd:element name="emiseVOC" type="EmiseTyp" />
            <xsd:element name="emiseNH3" type="EmiseTyp" />
            <xsd:element name="emise">
                <xsd:complexType>
                    <xsd:sequence>
                        <xsd:element name="emiseSeq" type="EmiseTyp" minOccurs="0" maxOccurs="unbounded" />
                    </xsd:sequence>
                </xsd:complexType>
            </xsd:element>
        </xsd:all>
    </xsd:complexType>

    <xsd:complexType name="CerpaciStaniceTyp">
        <xsd:all>
            <xsd:element name="vydaneMnozstviBenzinu" type="Decimal0FrTyp" minOccurs="0" />
        </xsd:all>
    </xsd:complexType>

    <xsd:complexType name="IntegrovanePovoleni10Typ">
        <xsd:sequence>
            <xsd:element name="pidSeq" minOccurs="0" maxOccurs="10">
                <xsd:complexType>
                    <xsd:sequence>
                        <xsd:element name="pid" type="PIDTyp" />
                    </xsd:sequence>
                </xsd:complexType>
            </xsd:element>
        </xsd:sequence>
    </xsd:complexType>

    <xsd:simpleType name="DecimalPoz1FrTyp">
        <xsd:restriction base="NonNegativeDecimal">
            <xsd:minExclusive value="0" />
            <xsd:fractionDigits value="1" />
        </xsd:restriction>
    </xsd:simpleType>

    <xsd:simpleType name="DecimalPoz3FrTyp">
        <xsd:restriction base="NonNegativeDecimal">
            <xsd:minExclusive value="0" />
            <xsd:fractionDigits value="3" />
        </xsd:restriction>
    </xsd:simpleType>

    <xsd:simpleType name="Decimal0FrTyp">
        <xsd:restriction base="NonNegativeDecimal">
            <xsd:fractionDigits value="0" />
        </xsd:restriction>
    </xsd:simpleType>

    <xsd:simpleType name="Decimal8FrTyp">
        <xsd:restriction base="NonNegativeDecimal">
            <xsd:fractionDigits value="8" />
        </xsd:restriction>
    </xsd:simpleType>

    <xsd:simpleType name="Decimal12FrTyp">
        <xsd:restriction base="xsd:decimal">
            <xsd:minInclusive value="0" />
            <xsd:totalDigits value="19" />
            <xsd:fractionDigits value="12" />
        </xsd:restriction>
    </xsd:simpleType>

    <xsd:simpleType name="Procenta0FrTyp">
        <xsd:restriction base="xsd:decimal">
            <xsd:minInclusive value="0" />
            <xsd:totalDigits value="3" />
            <xsd:fractionDigits value="0" />
        </xsd:restriction>
    </xsd:simpleType>

    <xsd:simpleType name="Procenta1FrTyp">
        <xsd:restriction base="xsd:decimal">
            <xsd:minInclusive value="0" />
            <xsd:totalDigits value="4" />
            <xsd:fractionDigits value="1" />
        </xsd:restriction>
    </xsd:simpleType>

    <!-- end of complex types -->

</xsd:schema>
