<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
    <xsd:include schemaLocation="F_OVZ_common_2026_1.xsd" />

    <!-- form element -->
    <xsd:element name="F_OVZ_SPE_L5">
        <xsd:complexType>
            <xsd:sequence>
                <xsd:element name="sekce5" type="SekceAutorizovaneMereni" />
            </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="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>
    <!-- end of sekce complex types -->

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

    <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>
    <!-- end of complex types -->

    <xsd:simpleType name="DecimalPoz3FrTyp">
        <xsd:restriction base="NonNegativeDecimal">
            <xsd:minExclusive value="0" />
            <xsd:fractionDigits value="3" />
        </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:schema>
