<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xml="http://www.w3.org/XML/1998/namespace" elementFormDefault="qualified" attributeFormDefault="unqualified" targetNamespace="http://data.gov.sk/doc/eform/00151866.ElektronickyRodnyList.sk/1.1" xmlns:msg="http://data.gov.sk/doc/eform/00151866.ElektronickyRodnyList.sk/1.1" xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:skos="http://www.w3.org/2004/02/skos/core#">
  <xs:element name="Birth_Certificate">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="RegistryEntry" type="msg:RegistryEntryCType">
          <xs:annotation>
            <xs:documentation xml:lang="sk">Údaje matričného úradu.</xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="Child" type="msg:ChildPersonDataCType">
          <xs:annotation>
            <xs:documentation xml:lang="sk">Údaje dieťaťa.</xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="Father" type="msg:ParentPersonDataCType" minOccurs="0" maxOccurs="1" nillable="true">
          <xs:annotation>
            <xs:documentation xml:lang="sk">Údaje otca.</xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="Mother" type="msg:ParentPersonDataCType" minOccurs="0" maxOccurs="1" nillable="true">
          <xs:annotation>
            <xs:documentation xml:lang="sk">Udaje matky.</xs:documentation>
          </xs:annotation>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:complexType name="RegistryEntryCType">
    <xs:annotation>
      <xs:documentation xml:lang="sk">Zlozeny datovy prvok pre rozne informacie týkajúce sa matričného úradu a sobášneho listu.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Identifier" type="msg:xsdNumberStr50" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation xml:lang="sk">Registratúrne číslo.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Publisher" type="msg:PublisherCType">
        <xs:annotation>
          <xs:documentation xml:lang="sk">V knihe narodení matričného úradu.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Creator" type="msg:CreatorCType">
        <xs:annotation>
          <xs:documentation xml:lang="sk">Udaje pracovníka matriky, ktorý vydal rodný list.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Issued" type="xs:date">
        <xs:annotation>
          <xs:documentation xml:lang="sk">Dátum vydania rodného listu.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Spatial" type="msg:PhysicalAddressCType">
        <xs:annotation>
          <xs:documentation xml:lang="sk">Udaje o mieste vydania rodného listu.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Note" type="msg:xsdStr255" minOccurs="0" maxOccurs="20">
        <xs:annotation>
          <xs:documentation xml:lang="sk">Doplňujúce záznamy ku zápisu narodenia.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="CreatorCType">
    <xs:annotation>
      <xs:documentation xml:lang="sk">Zlozeny datovy prvok pre informácie o pracovníkovi matriky, ktorý vydal rodný list.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="PersonName" type="msg:PersonNameCType">
        <xs:annotation>
          <xs:documentation xml:lang="sk">D.1.1.1 Zlozeny datovy prvok pre rozne sucasti mena.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Role" type="msg:RoleType" minOccurs="0" maxOccurs="2">
        <xs:annotation>
          <xs:documentation xml:lang="sk">Funkcia pracovnika matriky.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="PublisherCType">
    <xs:annotation>
      <xs:documentation xml:lang="sk">Zlozeny datovy prvok pre informácie o zápise rodného listu v knihe narodení.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="RegistryOffice" type="msg:CodelistDataElementCType">
        <xs:annotation>
          <xs:documentation xml:lang="sk">Matričný úrad zapisujúci narodenie.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="BundleNumber" type="msg:xsdNumberStr50">
        <xs:annotation>
          <xs:documentation xml:lang="sk">Zväzok matričnej knihy.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="BundleYear" type="msg:xsdNumberStr50">
        <xs:annotation>
          <xs:documentation xml:lang="sk">Ročník matričnej knihy.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PageNumber" type="msg:xsdNumberStr50">
        <xs:annotation>
          <xs:documentation xml:lang="sk">Strana matričnej knihy.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="SequenceNumber" type="msg:xsdNumberStr50">
        <xs:annotation>
          <xs:documentation xml:lang="sk">Poradové číslo v rámci matričnej knihy.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="ParentPersonDataCType">
    <xs:annotation>
      <xs:documentation xml:lang="sk">D.1 Zložený dátový prvok pre rôzne informácie o rodičovi.</xs:documentation>
    </xs:annotation>
    <xs:complexContent>
      <xs:extension base="msg:PhysicalPersonCType">
        <xs:sequence>
          <xs:element name="BirthNumber" type="msg:SlovakBirthNumberType" minOccurs="0" maxOccurs="1" nillable="true">
            <xs:annotation>
              <xs:documentation xml:lang="sk">Rodné číslo.</xs:documentation>
            </xs:annotation>
          </xs:element>
          <xs:element name="Citizenship" type="msg:CountryCType" minOccurs="0" maxOccurs="1" nillable="true">
            <xs:annotation>
              <xs:documentation xml:lang="sk">Štátna príslušnosť.</xs:documentation>
            </xs:annotation>
          </xs:element>
          <xs:element name="Birth" type="msg:BirthCType" minOccurs="0" maxOccurs="1" nillable="true">
            <xs:annotation>
              <xs:documentation xml:lang="sk">D.1.1.5 Zlozeny datovy prvok obsahujuci udaje o narodeni.</xs:documentation>
            </xs:annotation>
          </xs:element>
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:complexType name="ChildPersonDataCType">
    <xs:annotation>
      <xs:documentation xml:lang="sk">D.1 Zložený dátový prvok pre rôzne informácie o dieťati.</xs:documentation>
    </xs:annotation>
    <xs:complexContent>
      <xs:extension base="msg:PhysicalPersonCType">
        <xs:sequence>
          <xs:element name="BirthNumber" type="msg:SlovakBirthNumberType">
            <xs:annotation>
              <xs:documentation xml:lang="sk">Rodné číslo.</xs:documentation>
            </xs:annotation>
          </xs:element>
          <xs:element name="Birth" type="msg:BirthCType">
            <xs:annotation>
              <xs:documentation xml:lang="sk">D.1.1.5 Zlozeny datovy prvok obsahujuci udaje o narodeni.</xs:documentation>
            </xs:annotation>
          </xs:element>
          <xs:element name="Sex" type="msg:SexCType">
            <xs:annotation>
              <xs:documentation xml:lang="sk">Pohlavie evidovane</xs:documentation>
            </xs:annotation>
          </xs:element>
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:complexType name="PhysicalPersonCType">
    <xs:annotation>
      <xs:documentation xml:lang="sk">D.1.1 Zlozeny datovy prvok pre rozne informacie o osobe.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="PersonName" type="msg:PersonNameCType">
        <xs:annotation>
          <xs:documentation xml:lang="sk">D.1.1.1 Zlozeny datovy prvok pre rozne sucasti mena.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="PersonNameCType">
    <xs:annotation>
      <xs:documentation xml:lang="sk">D.1.1 Zlozeny datovy prvok pre rozne informacie o osobe.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="FormattedName" type="msg:FormattedNameType" minOccurs="0" maxOccurs="2" nillable="true">
        <xs:annotation>
          <xs:documentation xml:lang="sk">D.1.1.1.1 Formatovane meno vratane predpony a pripony.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="GivenName" type="msg:GivenNameType" minOccurs="0" maxOccurs="unbounded" nillable="true">
        <xs:annotation>
          <xs:documentation xml:lang="sk">D.1.1.1.3 Obsahuje rodne meno, ktorym je nededena cast mena osoby. Zname aj ako prve meno osoby alebo v uzsom vyzname krstne meno osoby. Pravidla pouzitia: Moze byt pouzity viackrat, v takom pripade je poradie pouzitia urcujuce.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="FamilyName" type="msg:FamilyNameCType" minOccurs="0" maxOccurs="unbounded" nillable="true">
        <xs:annotation>
          <xs:documentation xml:lang="sk">D.1.1.1.6 Obsahuje priezvisko. Moze byt pouzity viackrat, v takom pripade je poradie pouzitia urcujuce.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="GivenFamilyName" type="msg:GivenFamilyNameCType" minOccurs="0" maxOccurs="unbounded" nillable="true">
        <xs:annotation>
          <xs:documentation xml:lang="sk">D.1.1.1.7 Obsahuje rodne priezvisko. Moze byt pouzity viackrat, v takom pripade je poradie pouzitia urcujuce.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Affix" type="msg:AffixCType" minOccurs="0" maxOccurs="unbounded" nillable="true">
        <xs:annotation>
          <xs:documentation xml:lang="sk">D.1.1.1.8 Zlozeny datovy prvok pre zakladny ciselnik, ktory obsahuje ostatne casti mena osoby (predponu alebo priponu), tak ako ju definuju jednotlive typy atributov. Hodnoty: V pripade uvadzania slovenskych akademickych titulov sa v podradenych prvkoch pouzivaju zakladne ciselniky CL000062 Titul pred menom a CL000063 Titul za menom. Moze byt pouzity  viackrat (ani pouzitie rovnakeho typu nie je obmedzene), v takom pripade je poradie pouzitia urcujuce.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="FamilyNameCType">
    <xs:annotation>
      <xs:documentation xml:lang="sk">D.1.1.1.6 Obsahuje priezvisko. Moze byt pouzity viackrat, v takom pripade je poradie pouzitia urcujuce.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Value" type="msg:FamilyNameType" minOccurs="1" maxOccurs="2">
      </xs:element>
    </xs:sequence>
    <xs:attribute name="primary" type="msg:PrimaryType" use="required">
      <xs:annotation>
        <xs:documentation xml:lang="sk">Hodnoty: primary="true"Znamena, ze tento vyskyt priezviska je primarny. Odporuca sa uvadzat ako prve v poradi pouzitych  priezvisk. primary="false"Znamena, ze tento vyskyt sa nepovazuje za primarny. Odporuca sa uvadzat az po primarnom vyskyte priezviska. Poradie priezvisk s atributom"false"je urcujuce. primary="undefined"Znamena, ze sa nepouzivaju viacere priezviska, pripadne v ich viacnasobnom pouziti s tymto atributom je urcujuce iba ich poradie pouzitia.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="prefix" type="msg:PrefixType" use="optional">
      <xs:annotation>
        <xs:documentation xml:lang="sk">Moze obsahovat slachticky alebo ekvivalentny titul. Ak existuje v priezvisku, vzdy sa uvadza. Hodnoty: Priklady pouzitia: de (ako v"de Witt"), la (ako v"la Salle"); van (ako v"van der Voss"). </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="GivenFamilyNameCType">
    <xs:annotation>
      <xs:documentation xml:lang="sk">D.1.1.1.7 Obsahuje rodne priezvisko. Moze byt pouzity viackrat, v takom pripade je poradie pouzitia urcujuce.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Value" type="msg:GivenFamilyNameType" minOccurs="1" maxOccurs="2">
      </xs:element>
    </xs:sequence>
    <xs:attribute name="primary" type="msg:PrimaryType" use="required">
      <xs:annotation>
        <xs:documentation xml:lang="sk">Hodnoty: primary="true"Znamena, ze tento vyskyt rodneho priezviska je primarny. Odporuca sa uvadzat ako prve v poradi pouzitych rodnych priezvisk. primary="false"Znamena, ze tento vyskyt sa nepovazuje za primarny. Odporuca sa uvadzat az po primarnom vyskyte rodneho priezviska. Poradie rodnych priezvisk s atributom"false"je urcujuce. primary="undefined"Znamena, ze sa nepouzivaju viacere rodne priezviska, pripadne v ich viacnasobnom pouziti s tymto atributom je urcujuce iba ich poradie pouzitia.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="prefix" type="msg:PrefixType" use="optional">
      <xs:annotation>
        <xs:documentation xml:lang="sk">Moze obsahovat slachticky alebo ekvivalentny titul. Ak existuje v rodnom priezvisku, vzdy sa uvadza. Hodnoty: Priklady pouzitia: de (ako v"de Witt"), la (ako v"la Salle"); van (ako v"van der Voss"). </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="AffixCType">
    <xs:annotation>
      <xs:documentation xml:lang="sk">D.1.1.1.8 Zlozeny datovy prvok pre zakladny ciselnik, ktory obsahuje ostatne casti mena osoby (predponu alebo priponu), tak ako ju definuju jednotlive typy atributov. Hodnoty: V pripade uvadzania slovenskych akademickych titulov sa v podradenych prvkoch pouzivaju zakladne ciselniky CL000062 Titul pred menom a CL000063 Titul za menom. Moze byt pouzity  viackrat (ani pouzitie rovnakeho typu nie je obmedzene), v takom pripade je poradie pouzitia urcujuce.</xs:documentation>
    </xs:annotation>
    <xs:complexContent>
      <xs:extension base="msg:CodelistDataElementCType">
        <xs:attribute name="type" type="msg:TypeOfAffixType" use="required">
          <xs:annotation>
            <xs:documentation xml:lang="sk">Definuje kontext predpony alebo pripony. Hodnoty: type=aristocraticTitle Uvadza sa, ak hodnota Affix obsahuje slachticky titul. Priklady pouzitia: Baron, Graf, Earl, Vojvoda a podobne. type=formOfAddress Uvadza sa, ak hodnota Affix obsahuje oslovenie. Priklady pouzitia: Pan, Pani., Hon., Dr., Major a podobne. type=generation Uvadza sa, ak hodnota Affix obsahuje generacny titul. Priklady pouzitia: Sr., Jr., III (treti) a podobne. type=qualification Uvadza sa, ak hodnota Affix obsahuje pismena, ktore sa pouzivaju na popis akademickeho titulu alebo ineho typu kvalifikacie, ktore osobe prinalezi.</xs:documentation>
          </xs:annotation>
        </xs:attribute>
        <xs:attribute name="position" type="msg:PositionType" use="required">
          <xs:annotation>
            <xs:documentation xml:lang="sk">Urcuje poziciu ostatnej casti mena. Hodnoty: prefix - Predpona - ak sa titul alebo oslovenie uvadza pred menom osoby.  postfix - Pripona - ak sa titul alebo oslovenie uvadza za menom osoby.</xs:documentation>
          </xs:annotation>
        </xs:attribute>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:complexType name="CountryCType">
    <xs:annotation>
      <xs:documentation xml:lang="sk">Krajina OSN.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Country" type="msg:CodelistDataElementCType">
        <xs:annotation>
          <xs:documentation xml:lang="sk">D.1.3.2 Zlozeny datovy prvok pre zakladny ciselnik, obsahujuci udaje o state. Hodnoty: Podradene prvky sa vyplnaju v sulade so zakladnym ciselnikom CL000086 Krajina OSN.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="BirthCType">
    <xs:annotation>
      <xs:documentation xml:lang="sk">D.1.1.5 Zlozeny datovy prvok obsahujuci udaje o narodeni.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="DateOfBirth" type="xs:date" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation xml:lang="sk">D.1.1.5.1 Obsahuje datum narodenia fyzickej osoby. Hodnoty: Podla formatu Date. Pravidla pouzitia: Datum narodenia ma byt skorsi ako datum umrtia, ak su zname obidva datumy.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="DateOfBirthText" type="msg:DateOfBirthText" minOccurs="0" maxOccurs="2">
        <xs:annotation>
          <xs:documentation xml:lang="sk">Obsahuje datum narodenia fyzickej osoby v textovej podobe.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Age" type="xs:integer" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation xml:lang="sk">Vek osoby ak nepoznáme presný dátum narodenia.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="YearOfBirth" type="xs:gYear" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation xml:lang="sk">D.1.1.5.3 Obsahuje rok narodenia fyzickej osoby. Hodnoty: V tvare RRRR. Priklady pouzitia: 1991, 2014. Pouziva sa najma ak nie je mozne urcit uplny datum umrtia.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="YearAndMonthOfBirth" type="xs:gYearMonth" minOccurs="0" maxOccurs="1">
        <xs:annotation>
          <xs:documentation xml:lang="sk">D.1.1.5.4 Obsahuje mesiac narodenia fyzickej osoby. Podla formatu gYearMonth. Hodnoty: V tvare RRRR-MM. Pouziva sa najma ak nie je mozne urcit uplny datum narodenia</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="PlaceOfBirth" type="msg:PhysicalAddressCType">
        <xs:annotation>
          <xs:documentation xml:lang="sk">Miesto narodenia.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="SexCType">
    <xs:annotation>
      <xs:documentation xml:lang="sk">Pohlavie evidovane.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Sex" type="msg:CodelistDataElementCType">
        <xs:annotation>
          <xs:documentation xml:lang="sk">D.1.1.4 Zlozeny datovy prvok pre zakladny ciselnik, obsahujuci udaje o pohlavi fyzickej osoby. Hodnoty: Podradene prvky sa vyplnaju v sulade so zakladnym ciselnikom CL003003 Pohlavie. Ak ide o ciselnikovu polozku, tak musi byt vyplnene: Sex/Codelist/CodelistCode=CL003003</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="PhysicalAddressCType">
    <xs:annotation>
      <xs:documentation xml:lang="sk">D.1.3 Zlozeny datovy prvok pre oznacenie adresy organizacnej jednotky, spravidla sidla.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="Municipality" type="msg:CodelistDataElementCType">
        <xs:annotation>
          <xs:documentation xml:lang="sk">D.1.3.5 Zlozeny datovy prvok pre zakladny ciselnik obsahujuci udaje o obci. Obcou je uzemnospravna jednotka charakterizovana suvislym domovym osidlenim a vlastnym nazvom. Obcou je aj mesto. V podradenych prvkoch sa uvadza textova informacia podla pouziteho atributu zakladneho ciselnika CL000025 Lokalna statisticka uzemna jednotka 2 - obec.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="County" type="msg:CodelistDataElementCType" minOccurs="0" maxOccurs="1" nillable="true">
        <xs:annotation>
          <xs:documentation xml:lang="sk">D.1.3.4 Zlozeny datovy prvok pre zakladny ciselnik obsahujuci udaje o okrese ako uzemnospravnom cleneni. V podradenych prvkoch sa uvadza textova informacia podla pouziteho atributu zakladneho ciselnika CL000024 Lokalna statisticka uzemna jednotka 1 - okres.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Country" type="msg:CodelistDataElementCType" minOccurs="0" maxOccurs="1" nillable="true">
        <xs:annotation>
          <xs:documentation xml:lang="sk">D.1.3.2 Zlozeny datovy prvok pre zakladny ciselnik, obsahujuci udaje o state. Hodnoty: Podradene prvky sa vyplnaju v sulade so zakladnym ciselnikom CL000086 Krajina OSN.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="CodelistDataElementCType">
    <xs:annotation>
      <xs:documentation xml:lang="sk">D.3.4 Zlozeny datovy prvok pouzivajuci udaje podla zakladnych ciselnikov.</xs:documentation>
    </xs:annotation>
    <xs:choice>
      <xs:element name="NonCodelistData" type="msg:NonCodelistDataType" minOccurs="0" maxOccurs="2" nillable="true">
        <xs:annotation>
          <xs:documentation xml:lang="sk">D.3.4.1 Obsahuje volnu neciselnikovu hodnotu. Pravidla pouzitia: Pouziva sa ak hodnotu nie je mozne najst v ciselniku, pricom vtedy je povinny.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="Codelist" type="msg:CodelistCType" minOccurs="0" maxOccurs="1" nillable="true">
        <xs:annotation>
          <xs:documentation xml:lang="sk">D.5 Zlozeny datovy prvok, ktory obsahuje polozku zo zakladneho ciselnika.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:choice>
  </xs:complexType>
  <xs:complexType name="CodelistCType">
    <xs:annotation>
      <xs:documentation xml:lang="sk">D.5 Zlozeny datovy prvok, ktory obsahuje polozku zo zakladneho ciselnika.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="CodelistCode" type="msg:CodelistCodeType">
        <xs:annotation>
          <xs:documentation xml:lang="sk">D.5.1 Jedinecny kod zakladneho ciselnika</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ReferenceIdentifier" type="msg:CodelistReferenceIdentifierType" minOccurs="0" maxOccurs="1" nillable="true">
        <xs:annotation>
          <xs:documentation xml:lang="sk">D.5.9 Zlozeny datovy prvok, identifikator METAIS ciselnika.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="CodelistItem" type="msg:CodelistItemCType">
        <xs:annotation>
          <xs:documentation xml:lang="sk">D.5.9 Zlozeny datovy prvok na popis datovej struktury polozky ciselnika. Pravidla pouzitia: Moze byt pouzity viackrat. Ciselnik musi obsahovat najmenej jednu polozku ciselnika.</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="CodelistItemCType">
    <xs:annotation>
      <xs:documentation xml:lang="sk">D.5.9 Zlozeny datovy prvok na popis datovej struktury polozky ciselnika. Pravidla pouzitia: Moze byt pouzity viackrat. Ciselnik musi obsahovat najmenej jednu polozku ciselnika.</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="ItemCode" type="msg:ItemCodeType">
        <xs:annotation>
          <xs:documentation xml:lang="sk">D.5.9.1 Jedinecny kod polozky</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ReferenceIdentifier" type="msg:CodelistItemReferenceIdentifierType" minOccurs="0" maxOccurs="1" nillable="true">
        <xs:annotation>
          <xs:documentation xml:lang="sk">D.5.9.1 Identifikator polozky METAIS ciselnika.</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element name="ItemName" type="msg:ItemNameType" minOccurs="1" maxOccurs="2">
        <xs:annotation>
          <xs:documentation xml:lang="sk">D.5.9.2 Uplny nazov plozky. Hodnoty: Nema predpisany obsah. Na umoznenie spracovania problematickych hodnot sa poskytuje polozka s nazvom"Ine"a podobne, pricom sa spravidla prislusnou obsluznou aplikaciou poskytuje moznost volne vyplnatelneho datoveho pola. </xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="GivenNameType">
    <xs:simpleContent>
      <xs:restriction base="msg:BaseStringWithLang">
        <xs:minLength value="1"/>
        <xs:maxLength value="255"/>
      </xs:restriction>
    </xs:simpleContent>
  </xs:complexType>
  <xs:complexType name="FamilyNameType">
    <xs:simpleContent>
      <xs:restriction base="msg:BaseStringWithLang">
        <xs:minLength value="1"/>
        <xs:maxLength value="255"/>
      </xs:restriction>
    </xs:simpleContent>
  </xs:complexType>
  <xs:simpleType name="PrimaryType">
    <xs:restriction base="xs:string">
      <xs:minLength value="1"/>
      <xs:maxLength value="20"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="PrefixType">
    <xs:restriction base="xs:string">
      <xs:minLength value="1"/>
      <xs:maxLength value="100"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:complexType name="GivenFamilyNameType">
    <xs:simpleContent>
      <xs:restriction base="msg:BaseStringWithLang">
        <xs:minLength value="1"/>
        <xs:maxLength value="255"/>
      </xs:restriction>
    </xs:simpleContent>
  </xs:complexType>
  <xs:simpleType name="TypeOfAffixType">
    <xs:restriction base="xs:string">
      <xs:minLength value="1"/>
      <xs:maxLength value="20"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="PositionType">
    <xs:restriction base="xs:string">
      <xs:minLength value="1"/>
      <xs:maxLength value="20"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:complexType name="NonCodelistDataType">
    <xs:simpleContent>
      <xs:restriction base="msg:BaseStringWithLang">
        <xs:minLength value="1"/>
        <xs:maxLength value="2047"/>
      </xs:restriction>
    </xs:simpleContent>
  </xs:complexType>
  <xs:simpleType name="CodelistCodeType">
    <xs:restriction base="xs:string">
      <xs:minLength value="1"/>
      <xs:maxLength value="100"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="ItemCodeType">
    <xs:restriction base="xs:string">
      <xs:minLength value="1"/>
      <xs:maxLength value="255"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:complexType name="ItemNameType">
    <xs:simpleContent>
      <xs:restriction base="msg:BaseStringWithLang">
        <xs:minLength value="1"/>
        <xs:maxLength value="2047"/>
      </xs:restriction>
    </xs:simpleContent>
  </xs:complexType>
  <xs:simpleType name="SlovakBirthNumberType">
    <xs:restriction base="xs:string">
      <xs:pattern value="\d{6}/\d{3,4}"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:complexType name="xsdStr255">
    <xs:simpleContent>
      <xs:restriction base="msg:BaseStringWithLang">
        <xs:minLength value="1"/>
        <xs:maxLength value="255"/>
      </xs:restriction>
    </xs:simpleContent>
  </xs:complexType>
  <xs:simpleType name="xsdNumberStr50">
    <xs:restriction base="xs:string">
      <xs:minLength value="1"/>
      <xs:maxLength value="50"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="CodelistReferenceIdentifierType">
    <xs:restriction base="xs:string">
      <xs:minLength value="1"/>
      <xs:maxLength value="255"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="CodelistItemReferenceIdentifierType">
    <xs:restriction base="xs:string">
      <xs:minLength value="1"/>
      <xs:maxLength value="255"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:complexType name="FormattedNameType">
    <xs:simpleContent>
      <xs:restriction base="msg:BaseStringWithLang">
        <xs:minLength value="1"/>
        <xs:maxLength value="1023"/>
      </xs:restriction>
    </xs:simpleContent>
  </xs:complexType>
  <xs:complexType name="DateOfBirthText">
    <xs:simpleContent>
      <xs:restriction base="msg:BaseStringWithLang">
        <xs:minLength value="1"/>
        <xs:maxLength value="1023"/>
      </xs:restriction>
    </xs:simpleContent>
  </xs:complexType>
  <xs:complexType name="RoleType">
    <xs:simpleContent>
      <xs:restriction base="msg:BaseStringWithLang">
        <xs:minLength value="1"/>
        <xs:maxLength value="1023"/>
      </xs:restriction>
    </xs:simpleContent>
  </xs:complexType>
  <xs:complexType name="BaseStringWithLang">
    <xs:simpleContent>
      <xs:extension base="xs:string">
        <xs:attribute name="lang" type="xs:language" use="optional"/>
      </xs:extension>
    </xs:simpleContent>
  </xs:complexType>
</xs:schema>