<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.mf.gov.pl/schematy/SZPROT/e-Decyzje/WDBOI01/1.0.xsd" xmlns:td="http://www.mf.gov.pl/schematy/SZPROT/Typy_eDecyzje/1.0.xsd" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" targetNamespace="http://www.mf.gov.pl/schematy/SZPROT/e-Decyzje/WDBOI01/1.0.xsd" elementFormDefault="qualified" attributeFormDefault="unqualified">
  <!--Wniosek o wydanie decyzji w sprawie wiążącej informacji o pochodzeniu-->
  <xs:import namespace="http://www.mf.gov.pl/schematy/SZPROT/Typy_eDecyzje/1.0.xsd" schemaLocation="http://seap-intranet-ws:8080/seap_schematy/xsd?id=1022000"/>
  <xs:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="http://seap-intranet-ws:8080/seap_schematy/xsd?id=10125"/>
  <xs:element name="WDBOI01">
    <xs:annotation>
      <xs:documentation source="rootName" xml:lang="pl">
        WDBOI01
      </xs:documentation>
      <xs:documentation source="rootDoc" xml:lang="pl">
        Wniosek  o wydanie decyzji  w sprawie wiążącej informacji o pochodzeniu.
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="pl">
        Element główny zawierajacy dane z komunikatu wniosku o wydanie decyzji o wydaniu wiążącej informacji o pochodzeniu.
      </xs:documentation>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="Wniosek" type="td:NaglowekEdecyzjeWniosekWIPType">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Dane ogólne wniosku (D.1/1, D.1/3, D.1/6, D.1/7).
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="WnioskodawcaPodmiot">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Wnioskodawca (D.3/1; D.3/2).
            </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:complexContent>
              <xs:extension base="td:PodmiotWnioskodawcaCloType">
                <xs:attribute name="poufne">
                  <xs:annotation>
                    <xs:documentation source="name" xml:lang="pl">
                      Czy poufne?
                    </xs:documentation>
                    <xs:documentation source="doc" xml:lang="pl">
                      Wskazanie, czy dane należy traktować jako poufne
                    </xs:documentation>
                  </xs:annotation>
                </xs:attribute>
              </xs:extension>
            </xs:complexContent>
          </xs:complexType>
        </xs:element>
        <xs:element name="PrzedstawicielPodmiot" type="td:PodmiotPrzedstawicielCloType" minOccurs="0">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Przedstawiciel - podmiot (D.3/3; D.3/4).
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Dane Przedstawiciela, który jest podmiotem gospodarczy
            </xs:documentation>
            <xs:documentation source="rule">
              R675
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="OsobaOdpowiedzialnaZaWniosek" type="td:OsobaFizycznaIdEdecyzjeType">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Osoba do kontaktu odpowiedzialna za wniosek (D.3/6).
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="KsiegiRachunkowe" minOccurs="0">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Miejsce, w którym są prowadzone lub dostępne główne księgi rachunkowe na potrzeby celne i ich rodzaj (D.4/3; D.8/1).
            </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:sequence>
              <xs:element name="MiejsceProwadzenia" type="td:AdresType" minOccurs="0">
                <xs:annotation>
                  <xs:documentation source="name" xml:lang="pl">
                    Miejsce, w którym prowadzone są główne księgi rachunkowe na potrzeby celne lub w którym są one dostępne (D.4/3).
                  </xs:documentation>
                </xs:annotation>
              </xs:element>
            </xs:sequence>
            <xs:attribute name="rodzaj" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Rodzaj głównych ksiąg rachunkowych na potrzeby celne (D.8/1)
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="512"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
          </xs:complexType>
        </xs:element>
        <xs:element name="TowarObejmowany">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Towary, które mają zostać objęte procedurą (D.5/1; D.5/2, D5/3).
            </xs:documentation>
            <xs:documentation source="rule">
              R512
            </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:attribute name="kodTowaru" use="required">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Kod towaru (D.5/1)
                </xs:documentation>
                <xs:documentation source="list">
                  028
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="14"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="nazwaTowaru" use="required">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Nazwa handlowa towaru
                </xs:documentation>
                <xs:documentation source="doc" xml:lang="pl">
                  Nazwa handlowa, skład i metody stosowane do określenia towaru
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="1024"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="opis" use="required">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Opis towarów (D.5/2)
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="512"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="poufne" type="xs:boolean" use="required">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Czy poufne?
                </xs:documentation>
                <xs:documentation source="doc" xml:lang="pl">
                  Wskazanie, czy dane należy traktować jako poufne
                </xs:documentation>
              </xs:annotation>
            </xs:attribute>
          </xs:complexType>
        </xs:element>
        <xs:element name="DecyzjeWydaneInnymPosiadaczom" minOccurs="0" maxOccurs="99">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Decyzje w sprawie wiążącej informacji wydane innym posiadaczom(D.2/2)
            </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:attribute name="nrReferencyjnyDecyzji" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Numer referencyjny decyzji.
                </xs:documentation>
                <xs:documentation source="doc" xml:lang="pl">
                  Struktura numeru referencyjnego decyzji 1/6 Tytuł II Załacznika A do RW 
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="35"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="dataRozpoczeciaWaznosciDecyzji" type="xs:date" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Data rozpoczęcia ważności decyzji.
                </xs:documentation>
              </xs:annotation>
            </xs:attribute>
            <xs:attribute name="kodTowaru" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Kod towaru
                </xs:documentation>
                <xs:documentation source="list">
                  028
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="14"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="opisTowaru" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Opis towaru
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="1024"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
          </xs:complexType>
        </xs:element>
        <xs:element name="InnePosiadaneWnioskiDecyzje" minOccurs="0" maxOccurs="99">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Inne wnioski i decyzje w sprawie posiadanych wiążących informacji  (D.2/1)
            </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:attribute name="panstwoZlozeniaWnioskuKod" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Kod państwa złożenia wniosku.
                </xs:documentation>
                <xs:documentation source="list">
                  007
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="2"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="panstwoZlozeniaWnioskuNazwa" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Państwo złożenia wniosku.
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="90"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="miejsceZlozeniaWniosku" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Miejsce złożenia wniosku
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="35"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="dataZlozeniaWniosku" type="xs:date" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Data złożenia wniosku
                </xs:documentation>
              </xs:annotation>
            </xs:attribute>
            <xs:attribute name="nrReferencyjnyDecyzji" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Numer referencyjny decyzji.
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="35"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="dataRozpoczeciaWaznosciDecyzji" type="xs:date" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Data rozpoczęcia ważności decyzji.
                </xs:documentation>
              </xs:annotation>
            </xs:attribute>
            <xs:attribute name="kodTowaru" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Kod towaru
                </xs:documentation>
                <xs:documentation source="list">
                  028
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="14"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="opisTowaru" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Opis towaru
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="1024"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
          </xs:complexType>
        </xs:element>
        <xs:element name="ProceduryPrawneWToku" minOccurs="0" maxOccurs="99">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Procedury prawne lub administracyjne w toku lub wydane orzeczenia sądowe (D.2/3).
            </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Adres" type="td:AdresType" minOccurs="0">
                <xs:annotation>
                  <xs:documentation source="name" xml:lang="pl">
                    Adres sądu lub urzędu
                  </xs:documentation>
                </xs:annotation>
              </xs:element>
            </xs:sequence>
            <xs:attribute name="tekst" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Informacje o sprawach w toku administracyjnych lub sądowych  lub wydanych orzeczeniach sądowych 
                </xs:documentation>
                <xs:documentation source="doc" xml:lang="pl">
                  Edytowalne pole opisowe.
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="512"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="nazwaSaduLubUrzedu" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Nazwa sądu/urzędu.
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="112"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
          </xs:complexType>
        </xs:element>
        <xs:element name="RodzajTransakcji" minOccurs="0">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Rodzaj transakcji (D.7/1).
            </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:sequence>
              <xs:element name="OpisProcedury" minOccurs="0" maxOccurs="99">
                <xs:annotation>
                  <xs:documentation source="name" xml:lang="pl">
                    Opis procedury
                  </xs:documentation>
                </xs:annotation>
                <xs:complexType>
                  <xs:attribute name="rodzProcedurySpecjalnejOpis" use="optional">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Nazwa rodzaju procedury specjalnej, do której miałby zastosowanie WIP
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="70"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
            <xs:attribute name="rodzaj" use="required">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Rodzaj transakcji
                </xs:documentation>
                <xs:documentation source="doc" xml:lang="pl">
                  Lista wyboru z wartościami:
                  1. Przywóz
                  2. Wywóz
                  ze słownika PDR 1534
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="7"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
          </xs:complexType>
        </xs:element>
        <xs:element name="SkladTowaru" minOccurs="0">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Dane szczegółowe - skład towaru (D.III/2, 4)
            </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:sequence>
              <xs:element name="SkladTowaruDaneSzczegolowe" minOccurs="0" maxOccurs="99">
                <xs:annotation>
                  <xs:documentation source="name" xml:lang="pl">
                    Dane szczegółowe 
                  </xs:documentation>
                </xs:annotation>
                <xs:complexType>
                  <xs:attribute name="opis" use="required">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Opis użytych materiałów
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="1024"/>
                        <xs:whiteSpace value="collapse"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="krajPochodzenia" use="optional">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Kraj pochodzenia
                      </xs:documentation>
                      <xs:documentation source="doc" xml:lang="pl">
                        PDR 007
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:length value="2"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="pozycjaHS_CN" use="optional">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Pozycja HS/CN
                      </xs:documentation>
                      <xs:documentation source="doc" xml:lang="pl">
                        PDR 028
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="18"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="wartosc" use="optional">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Wartość
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:decimal">
                        <xs:fractionDigits value="2"/>
                        <xs:totalDigits value="16"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="waluta" use="optional">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Kod waluty
                      </xs:documentation>
                      <xs:documentation source="doc" xml:lang="pl">
                        PDR 026
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:length value="3"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
            <xs:attribute name="poufne" use="required">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Czy poufne?
                </xs:documentation>
                <xs:documentation source="doc" xml:lang="pl">
                  Wskazanie, czy dane należy traktować jako poufne (D.III/4)
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:boolean">
                  <xs:pattern value="0|1"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
          </xs:complexType>
        </xs:element>
        <xs:element name="DanePochodzenie">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Dane szczegółowe - Informacje umożliwiające ustalenie pochodzenia(D.III/3)
            </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Probki" minOccurs="0" maxOccurs="9">
                <xs:annotation>
                  <xs:documentation source="name" xml:lang="pl">
                    Próbki (D.8/4) 
                  </xs:documentation>
                  <xs:documentation source="doc" xml:lang="pl">
                    Elementy przedstawione przez wnioskodawców na podstawie których zostanie wydana decyzja (D.8/4) 
                  </xs:documentation>
                  <xs:documentation source="doc" xml:lang="pl">
                    Wskazanie, czy dołączone zostały w formie załączników jakiekolwiek próbki, fotografie, broszury lub inne dostępne dokumenty mogące pomóc organowi celnemu w określeniu właściwego pochodzenia towaru.
                  </xs:documentation>
                </xs:annotation>
                <xs:complexType>
                  <xs:attribute name="podstawaDoWydaniaDecyzji" type="xs:string" use="optional">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Materiał przedstawiony przez wnioskodawcę
                      </xs:documentation>
                      <xs:documentation source="doc" xml:lang="pl">
                        Lista z wartosciami:
                        1.Opis
                        2.Broszury
                        3.Fotografie
                        4.Próbki
                        5.Inne
                      </xs:documentation>
                    </xs:annotation>
                  </xs:attribute>
                  <xs:attribute name="czyZwrocicProbki" type="xs:boolean" use="optional">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Czy zwrócić próbki?
                      </xs:documentation>
                    </xs:annotation>
                  </xs:attribute>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
            <xs:attribute name="sposobPrzetworzeniaOpis" use="required">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Opis procesu przetworzenia koniecznego do uzyskania pochodzenia
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:minLength value="1"/>
                  <xs:maxLength value="8192"/>
                  <xs:whiteSpace value="collapse"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="poufne" use="required">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Czy poufne?
                </xs:documentation>
                <xs:documentation source="doc" xml:lang="pl">
                  Wskazanie, czy dane należy traktować jako poufne (D.III/4)
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:boolean">
                  <xs:pattern value="0|1"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
          </xs:complexType>
        </xs:element>
        <xs:element name="CenaEXW" minOccurs="0">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Dane szczegółowe - cena ex-works (D.III/7, 4)
            </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:attribute name="cena" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Cena ex-works
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:decimal">
                  <xs:totalDigits value="16"/>
                  <xs:fractionDigits value="2"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="waluta" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Waluta
                </xs:documentation>
                <xs:documentation source="list">
                  026
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:length value="3"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="poufne" use="required">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Czy poufne?
                </xs:documentation>
                <xs:documentation source="doc" xml:lang="pl">
                  Wskazanie, czy dane należy traktować jako poufne (D.III/4)
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:boolean">
                  <xs:pattern value="0|1"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
          </xs:complexType>
        </xs:element>
        <xs:element name="PodstawaPrawna" minOccurs="0">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Dane szczegółowe - podstawa prawna (D.III/1)
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Wskazanie, czy dane należy traktować jako poufne (D.III/4)
            </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:attribute name="opis" use="required">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Opis podstawy prawnej
                </xs:documentation>
                <xs:documentation source="doc" xml:lang="pl">
                  Pochodzenie preferencyjne/niepreferencyjne, odniesienie do umowy, konwencji, decyzji, rozporządzenia, inne wraz z uzasadnieniem (produkty całkowicie uzyskane lub wyprodukowane, ostatnie istotne przetworzenie, wystarczająca obróbka lub przetworzenie, kumulacja pochodzenia, inne).
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:minLength value="1"/>
                  <xs:maxLength value="1024"/>
                  <xs:whiteSpace value="collapse"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
          </xs:complexType>
        </xs:element>
        <xs:element name="Oswiadczenia" type="td:OswiadczenieType" minOccurs="0" maxOccurs="10">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Oświadczenia
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Osiadczenia jak w formularzach e-Klienta. Oświadczenie o odpowiedzialności karnej za złożenie fałszywego oświadczenia
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="ZgodaNaPublikacje" minOccurs="0">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Zgoda na publikację informacji i załączników ( innych niż poufne) w bazie danych Komisji Europejskiej   (D.8/12).
            </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:attribute name="zgodaNaPublikacje" type="xs:boolean" use="required">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Czy wyrażenie zgody na publikację w wykazie posiadaczy pozwoleń?
                </xs:documentation>
                <xs:documentation source="doc" xml:lang="pl">
                  Czy wyrażenie zgody na publikację informacji i załączników ( innych niż poufne) w bazie danych Komisji Europejskiej ? Znacznik wyrażenia zgody w bazie danych” (D.8/12).
                </xs:documentation>
              </xs:annotation>
            </xs:attribute>
          </xs:complexType>
        </xs:element>
        <xs:element name="InformacjaDodatkowa" type="td:InformacjaDodatkowaType" minOccurs="0">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Dodatkowe informacje 
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="Zalacznik" type="td:ZalacznikType" minOccurs="0" maxOccurs="9">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Załączone dokumenty (D.2/4)
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Obowiązkowe deklarowane załączniki np. zaświadczenie o niekaralności,
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="SkladajacyWniosek" type="td:SkladajacyWniosekType">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Osoba składająca wniosek
            </xs:documentation>
            <xs:documentation source="doc">
              Dane osoby wnioskującej (podpisującej wniosek).
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element ref="ds:Signature" minOccurs="0"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>
