<?xml version="1.0" encoding="UTF-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <!-- DEFINICIE TYPOV -->
  <xs:complexType name="stringType">
    <xs:simpleContent>
      <xs:extension base="xs:string">
        <xs:attribute type="xs:string" name="title" />
        <xs:attribute type="xs:string" name="type" />
      </xs:extension>
    </xs:simpleContent>
  </xs:complexType>
  <xs:simpleType name="nonNegativeIntegerOrNothingTypeType">
    <xs:union memberTypes="xs:nonNegativeInteger empty-string" />
  </xs:simpleType>
  <xs:complexType name="nonNegativeIntegerTypeOrNothingType">
    <xs:simpleContent>
      <xs:extension base="nonNegativeIntegerOrNothingTypeType">
        <xs:attribute type="xs:string" name="title" />
        <xs:attribute type="xs:string" name="type" />
      </xs:extension>
    </xs:simpleContent>
  </xs:complexType>
  <xs:complexType name="nonNegativeIntegerType">
    <xs:simpleContent>
      <xs:extension base="xs:nonNegativeInteger">
        <xs:attribute type="xs:string" name="title" />
        <xs:attribute type="xs:string" name="type" />
      </xs:extension>
    </xs:simpleContent>
  </xs:complexType>
  <xs:simpleType name="empty-string">
    <xs:restriction base="xs:string">
      <xs:enumeration value="" />
    </xs:restriction>
  </xs:simpleType>
  <xs:complexType name="decimalType">
    <xs:simpleContent>
      <xs:extension base="xs:decimal">
        <xs:attribute type="xs:string" name="title" />
        <xs:attribute type="xs:string" name="type" />
      </xs:extension>
    </xs:simpleContent>
  </xs:complexType>
  <!-- KONIEC DEFINICIE TYPOV -->
  <xs:element name="formular">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="il" maxOccurs="unbounded">
          <xs:complexType>
            <xs:sequence>
              <xs:element type="stringType" name="vysoka_skola" />
              <xs:element type="stringType" name="fakulta" />
              <xs:element type="stringType" name="kod_predmetu" />
              <xs:element type="stringType" name="nazov_predmetu" />
              <xs:element name="vzdelavacie_cinnosti" minOccurs="0" maxOccurs="1">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="vzdelavacia_cinnost" minOccurs="0" maxOccurs="unbounded">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element type="stringType" name="druh" />
                          <xs:choice>
                            <xs:element type="nonNegativeIntegerType" name="rozsah_tyzdenne" />
                            <xs:element type="nonNegativeIntegerType" name="rozsah_za_semester" />
                          </xs:choice>
                          <xs:element type="stringType" name="metoda" />
                        </xs:sequence>
                        <xs:attribute type="xs:string" name="title" />
                        <xs:attribute type="xs:string" name="type" />
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                  <xs:attribute type="xs:string" name="title" />
                  <xs:attribute type="xs:string" name="type" />
                </xs:complexType>
              </xs:element>
              <xs:element type="nonNegativeIntegerType" name="pocet_kreditov" />
              <xs:element name="odporucany_semester_studia_zoznam">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="odporucany_semester_studia" minOccurs="1" maxOccurs="unbounded">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element type="stringType" name="studijny_program" />
                          <xs:choice>
                            <xs:element type="nonNegativeIntegerType" name="semester" />
                            <xs:element type="nonNegativeIntegerType" name="trimester" />
                          </xs:choice>
                        </xs:sequence>
                        <xs:attribute type="xs:string" name="title" />
                        <xs:attribute type="xs:string" name="type" />
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                  <xs:attribute type="xs:string" name="title" />
                  <xs:attribute type="xs:string" name="type" />
                </xs:complexType>
              </xs:element>
              <xs:element type="stringType" name="stupen_studia" />
              <xs:element name="podmienujuce_predmety">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="podmienujuci_predmet" maxOccurs="unbounded" minOccurs="0">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element type="stringType" name="kod_predmetu" />
                          <xs:element type="stringType" name="nazov_predmetu" />
                        </xs:sequence>
                        <xs:attribute type="xs:string" name="title" />
                        <xs:attribute type="xs:string" name="type" />
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                  <xs:attribute type="xs:string" name="title" />
                  <xs:attribute type="xs:string" name="type" />
                </xs:complexType>
              </xs:element>
              <xs:element name="podmienky_absolvovania">
                <xs:complexType mixed="true">
                  <xs:sequence>
                    <xs:element type="stringType" name="p" minOccurs="0" maxOccurs="unbounded" />
                  </xs:sequence>
                  <xs:attribute type="xs:string" name="title" />
                  <xs:attribute type="xs:string" name="type" />
                </xs:complexType>
              </xs:element>
              <xs:element name="vysledky_vzdelavania">
                <xs:complexType mixed="true">
                  <xs:sequence>
                    <xs:element type="stringType" name="p" minOccurs="0" maxOccurs="unbounded" />
                  </xs:sequence>
                  <xs:attribute type="xs:string" name="title" />
                  <xs:attribute type="xs:string" name="type" />
                </xs:complexType>
              </xs:element>
              <xs:element name="strucna_osnova_predmetu">
                <xs:complexType mixed="true">
                  <xs:sequence>
                    <xs:element type="stringType" name="p" minOccurs="0" maxOccurs="unbounded" />
                  </xs:sequence>
                  <xs:attribute type="xs:string" name="title" />
                  <xs:attribute type="xs:string" name="type" />
                </xs:complexType>
              </xs:element>
              <xs:element name="odporucana_literatura">
                <xs:complexType mixed="true">
                  <xs:sequence>
                    <xs:element type="stringType" name="p" minOccurs="0" maxOccurs="unbounded" />
                  </xs:sequence>
                  <xs:attribute type="xs:string" name="title" />
                  <xs:attribute type="xs:string" name="type" />
                </xs:complexType>
              </xs:element>
              <xs:element type="stringType" name="jazyk" />
              <xs:element name="poznamky">
                <xs:complexType mixed="true">
                  <xs:sequence>
                    <xs:element type="stringType" name="p" minOccurs="0" maxOccurs="unbounded" />
                  </xs:sequence>
                  <xs:attribute type="xs:string" name="title" />
                  <xs:attribute type="xs:string" name="type" />
                </xs:complexType>
              </xs:element>
              <xs:element name="hodnotenie_predmetov">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element type="nonNegativeIntegerType" name="celkovy_pocet_hodnotenych_studentov" />
                    <xs:element type="decimalType" name="percentualny_podiel_hodnotenia_A" />
                    <xs:element type="decimalType" name="percentualny_podiel_hodnotenia_B" />
                    <xs:element type="decimalType" name="percentualny_podiel_hodnotenia_C" />
                    <xs:element type="decimalType" name="percentualny_podiel_hodnotenia_D" />
                    <xs:element type="decimalType" name="percentualny_podiel_hodnotenia_E" />
                    <xs:element type="decimalType" name="percentualny_podiel_hodnotenia_FX" />
                  </xs:sequence>
                  <xs:attribute type="xs:string" name="title" />
                  <xs:attribute type="xs:string" name="type" />
                </xs:complexType>
              </xs:element>
              <xs:element name="vyucujuci_zoznam">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="vyucujuci" minOccurs="1" maxOccurs="unbounded">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element type="stringType" name="meno" />
                          <xs:element type="stringType" name="druh" />
                          <xs:element type="stringType" name="jazyk" />
                        </xs:sequence>
                        <xs:attribute type="xs:string" name="title" />
                        <xs:attribute type="xs:string" name="type" />
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                  <xs:attribute type="xs:string" name="title" />
                  <xs:attribute type="xs:string" name="type" />
                </xs:complexType>
              </xs:element>
              <xs:element type="stringType" name="datum_poslednej_zmeny" />
              <xs:element type="stringType" name="schvalil" />
            </xs:sequence>
            <xs:attribute type="xs:string" name="title" />
            <xs:attribute type="xs:string" name="type" />
          </xs:complexType>
        </xs:element>
      </xs:sequence>
      <xs:attribute type="xs:string" name="title" />
      <xs:attribute type="xs:string" name="type" />
    </xs:complexType>
  </xs:element>
</xs:schema>