<?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/WDAEO01/2.0.xsd" xmlns:ed="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/WDAEO01/2.0.xsd" elementFormDefault="qualified" attributeFormDefault="unqualified">
  <!--=====Wniosek o wydanie lub zmianę pozwolenia  na korzystanie ze statusu upoważnionego przedsiębiorcy-->
  <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="WDAEO01">
    <xs:annotation>
      <xs:documentation source="rootName" xml:lang="pl">
        WDAEO01
      </xs:documentation>
      <xs:documentation source="rootDoc" xml:lang="pl">
        Wniosek o wydanie lub zmianę pozwolenia  na korzystanie ze statusu upoważnionego przedsiębiorcy.
      </xs:documentation>
      <xs:documentation source="doc" xml:lang="pl">
        Element główny komunikatu z wnioskiem o wydanie lub zmianę pozwolenia  na korzystanie ze statusu upoważnionego przedsiębiorcy.
      </xs:documentation>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="Wniosek">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Dane ogólne wniosku
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Patrz D.1/1, D.1/3, D.1/6, D.1/7.
            </xs:documentation>
            <xs:documentation source="rule">
              R785, R908, R955, R538
            </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:attribute name="nrWlasny" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Nr własny
                </xs:documentation>
                <xs:documentation source="doc" xml:lang="pl">
                  Numer własny, jednoznacznie identyfikujący ten dokument w systemie.
                </xs:documentation>
                <xs:documentation source="rule">
                  R513
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="35"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="organKod" use="required">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Kod organu, do którego składany jest wniosek.
                </xs:documentation>
                <xs:documentation source="doc">
                  Patrz D.1/7.
                </xs:documentation>
                <xs:documentation source="list">
                  001C
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:length value="8"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="organNazwa" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Nazwa organu, do którego składany jest wniosek
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="255"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="rodzajWnioskuKod" use="required">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Rodzaj wniosku
                </xs:documentation>
                <xs:documentation source="doc" xml:lang="pl">
                  Kod określający rodzaj wniosku w systemie SZPROT. Stały dla danego rodzaju komunikatu.
                </xs:documentation>
                <xs:documentation source="list">
                  1553
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="10"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="rodzajWnioskuNazwa" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Nazwa rodzaju wniosku w SZPROT
                </xs:documentation>
                <xs:documentation source="doc" xml:lang="pl">
                  Nazwa opisująca rodzaj wniosku ze słownika 1553.
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="512"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="typWnioskuKod" use="required">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Typ wniosku 
                </xs:documentation>
                <xs:documentation source="doc" xml:lang="pl">
                  Kod określający rodzaj wniosku (patrz D.1/3):
                  1.  pierwszy wniosek
                  2.  wniosek w sprawie zmiany decyzji
                  4.  wniosek w sprawie cofnięcia decyzji
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="4"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="typWnioskuOpis" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Opis Rodzaju wniosku.
                </xs:documentation>
                <xs:documentation source="doc">
                  Opis kodu określającego rodzaj wniosku (patrz D.1/3):
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="75"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="rodzajPozwoleniaKod" type="xs:string" use="required">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Kod rodzaju wniosku
                </xs:documentation>
                <xs:documentation source="doc" xml:lang="pl">
                  Rodzaj pozwolenia AEO, o które wnioskuje podmiot, lub które zostanie wydane w wyniku częściowego cofnięcia pozwolenia AEOF, zgodny z załącznikiem A (patrz D.1/1).
                  W przypadku wnioskowania o częściowe cofnięcie pozwolenia  - rodzaj substytutu, który ma zostać wydany.
                  W przypadku zmiany rodzaju pozwolenia na "AEOF" - atrybut przyjmuje wartość docelową "AEOF".
                </xs:documentation>
                <xs:documentation source="list">
                  1680
                </xs:documentation>
              </xs:annotation>
            </xs:attribute>
            <xs:attribute name="rodzajPozwoleniaNazwa" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Nazwa rodzaju wniosku.
                </xs:documentation>
                <xs:documentation source="doc" xml:lang="pl">
                  Nazwa rodzaju wniosku AEO ze słownika 1680.
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="512"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="nrPozwolenia" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Numer pozwolenia
                </xs:documentation>
                <xs:documentation source="doc" xml:lang="pl">
                  Numer pozwolenia, którego dotyczy zmiana lub cofnięcie (D.1/6).
                </xs:documentation>
                <xs:documentation source="rule">
                  R502
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="35"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="poprzedniRodzajPozwolenia" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Rodzaj pozwolenia pierwotnego do zmiany lub cofnięcia.
                </xs:documentation>
                <xs:documentation source="doc" xml:lang="pl">
                  Kod rodzaju pozwolenia AEO do zmiany lub cofnięcia.
                </xs:documentation>
                <xs:documentation source="list">
                  1680
                </xs:documentation>
                <xs:documentation source="rule">
                  R979
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:length value="4"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="zmianaNaAEOF" type="xs:boolean" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Czy wniosek dotyczy zmiany rodzaju pozwolenia na AEOF?
                </xs:documentation>
              </xs:annotation>
            </xs:attribute>
            <xs:attribute name="cofniecieCzesciowe" type="xs:boolean" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Czy cofnięcie częściowe?
                </xs:documentation>
                <xs:documentation source="rule">
                  R980
                </xs:documentation>
              </xs:annotation>
            </xs:attribute>
            <xs:attribute name="uprawnienieDoCofniecia" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Część pozwolenia AEOF do cofnięcia
                </xs:documentation>
                <xs:documentation source="doc" xml:lang="pl">
                  Pole może przyjmować wartości AEOC i AEOS ze słownika 1680
                </xs:documentation>
                <xs:documentation source="list">
                  1680
                </xs:documentation>
                <xs:documentation source="rule">
                  R980
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:length value="4"/>
                  <xs:whiteSpace value="collapse"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="zakresZmiany" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Zakres zmiany
                </xs:documentation>
                <xs:documentation source="doc" xml:lang="pl">
                  Określenie zakresu zmiany. Atrybut podawany tylko dla wniosków o zmianę pozwolenia AEO, jeżeli "Zmiana na AEOF" = "Nie".
                  Przyjmuje wartości:
                  1. Stała siedziba
                  2. Nazwa i adres posiadacza pozwolenia oraz stała siedziba.
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:length value="1"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
          </xs:complexType>
        </xs:element>
        <xs:element name="WnioskodawcaPodmiot">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Wnioskodawca
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Patrz D.3/1; D.3/2.
            </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Adres" type="ed:AdresKodPocztowyRequiredType2024">
                <xs:annotation>
                  <xs:documentation source="name" xml:lang="pl">
                    Adres siedziby
                  </xs:documentation>
                  <xs:documentation source="doc" xml:lang="pl">
                    Adres siedziby podmiotu
                  </xs:documentation>
                </xs:annotation>
              </xs:element>
              <xs:element name="AdresKoresp" type="ed:AdresKodPocztowyRequiredType2024">
                <xs:annotation>
                  <xs:documentation source="name" xml:lang="pl">
                    Adres korespondencyjny
                  </xs:documentation>
                  <xs:documentation source="doc" xml:lang="pl">
                    Adres korespondencyjny podmiotu
                  </xs:documentation>
                </xs:annotation>
              </xs:element>
              <xs:element name="VATUE" minOccurs="0" maxOccurs="99">
                <xs:annotation>
                  <xs:documentation source="name" xml:lang="pl">
                    VAT UE
                  </xs:documentation>
                  <xs:documentation source="rule">
                    R34
                  </xs:documentation>
                </xs:annotation>
                <xs:complexType>
                  <xs:attribute name="nrVatUe" use="required">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Numer VAT UE
                      </xs:documentation>
                      <xs:documentation source="rule">
                        R37
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="17"/>
                        <xs:minLength value="1"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
            <xs:attribute name="idsisc" use="required">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  ID SISC
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:length value="17"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="eori" use="required">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  EORI
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="35"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="nip" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  NIP
                </xs:documentation>
                <xs:documentation source="doc" xml:lang="pl">
                  Dla podmiotów zagranicznych wymagane jest podanie numeru NIP nadanego w POLSCE. 
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:length value="10"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="regon" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  REGON
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="14"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="nrKrs" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Nr wpisu do KRS
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="10"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="nazwaPelna" use="required">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Nazwa pełna
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="512"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="nazwaSkrocona" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Nazwa skrócona
                </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:element name="OsobaOdpowiedzialnaZaWniosek" type="ed:OsobaFizycznaIdEdecyzjeType2024" minOccurs="0">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Osoba odpowiedzialna za wniosek
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Patrz D.3/6.
            </xs:documentation>
            <xs:documentation source="rule">
              R970
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="OsobaOdpowiedzialnaZaSprawyCelne" type="ed:OsobaOdpowiedzialnaZaSprawyCelneType2024" minOccurs="0" maxOccurs="99">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Osoba odpowiedzialna za sprawy celne
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Imię i nazwisko oraz dane kontaktowe osoby odpowiedzialnej za sprawy celne (D.3/5).
            </xs:documentation>
            <xs:documentation source="rule">
              R962, R970
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="KierujacyPrzedsiebiorstwem" type="ed:ZarzadzajacyPrzedsiebiorstwemZalacznikA2024" minOccurs="0" maxOccurs="99">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Osoba kierująca przedsiębiorstwem wnioskodawcy lub nadzorująca zarządzanie nim.
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              D.3/7.
            </xs:documentation>
            <xs:documentation source="rule">
              R962, R970
            </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 prowadzone są główne księgi rachunkowe na potrzeby celne lub w którym są one dostępne.
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              D.4/3.
            </xs:documentation>
            <xs:documentation source="rule">
              R962
            </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:choice>
              <xs:element name="Adres">
                <xs:annotation>
                  <xs:documentation source="name" xml:lang="pl">
                    Adres
                  </xs:documentation>
                  <xs:documentation source="doc" xml:lang="pl">
                    Adres siedziby podmiotu
                  </xs:documentation>
                </xs:annotation>
                <xs:complexType>
                  <xs:complexContent>
                    <xs:extension base="ed:AdresKodPocztowyRequiredType2024"/>
                  </xs:complexContent>
                </xs:complexType>
              </xs:element>
              <xs:element name="GeoKod">
                <xs:annotation>
                  <xs:documentation source="name" xml:lang="pl">
                    UN/LOCODE
                  </xs:documentation>
                </xs:annotation>
                <xs:complexType>
                  <xs:attribute name="geoKod" use="required">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        UN/LOCODE
                      </xs:documentation>
                      <xs:documentation source="list">
                        CL244AES
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="17"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                </xs:complexType>
              </xs:element>
            </xs:choice>
            <xs:attribute name="sposobOkresleniaLokalizacji" use="required">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Sposób określenia lokalizacji:
                  1- adres
                  2 - UN/LOCODE
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:length value="1"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="nazwaMiejsca" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Nazwa miejsca
                </xs:documentation>
                <xs:documentation source="doc" xml:lang="pl">
                  Nazwa miejsca prowadzenia ksiąg rachunkowych 
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:minLength value="1"/>
                  <xs:maxLength value="70"/>
                  <xs:whiteSpace value="collapse"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
          </xs:complexType>
        </xs:element>
        <xs:element name="DanePrzedsiebiorstwa" minOccurs="0">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Szczegółowe informacje dotyczące przedsiębiorstwa Wnioskodawcy
            </xs:documentation>
            <xs:documentation source="rule">
              R962
            </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:attribute name="statusPrawnyWnioskodawcy" use="required">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Status prawny Wnioskodawcy
                </xs:documentation>
                <xs:documentation source="doc" xml:lang="pl">
                  D. IV/1
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="50"/>
                  <xs:minLength value="1"/>
                  <xs:whiteSpace value="collapse"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="dataZalozenia" type="xs:date" use="required">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Data założenia
                </xs:documentation>
                <xs:documentation source="doc" xml:lang="pl">
                  D.IV/2
                </xs:documentation>
              </xs:annotation>
            </xs:attribute>
            <xs:attribute name="wielkoscPrzedsiebiorstwaKod" use="required">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Wielkość przedsiębiorstwa
                </xs:documentation>
                <xs:documentation source="list">
                  1676
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="3"/>
                  <xs:minLength value="1"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="wielkoscPrzedsiebiorstwaNazwa" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Wielkość przedsiębiorstwa
                </xs:documentation>
                <xs:documentation source="list">
                  1676
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="1024"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="wielkoscPrzedsiebiorstwa" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Wielkość przedsiębiorstwa - opis
                </xs:documentation>
                <xs:documentation source="doc" xml:lang="pl">
                  Wielkość przedsiębiorstwa - nazwa ze słownika 1676.
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="140"/>
                  <xs:whiteSpace value="collapse"/>
                  <xs:minLength value="1"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
          </xs:complexType>
        </xs:element>
        <xs:element name="RolaWLancuchuDostaw" minOccurs="0" maxOccurs="99">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Rola Wnioskodawcy w międzynarodowym łańcuchu dostaw
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              D.IV/3
            </xs:documentation>
            <xs:documentation source="rule">
              R962
            </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:attribute name="rolaWLancuchuDostawKod" use="required">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Rola Wnioskodawcy w międzynarodowym łańcuchu dostaw
                </xs:documentation>
                <xs:documentation source="doc" xml:lang="pl">
                  Rola Wnioskodawcy w międzynarodowym łańcuchu dostaw - kod
                </xs:documentation>
                <xs:documentation source="list">
                  804
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="3"/>
                  <xs:minLength value="1"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="rolaWLancuchuDostawNazwa" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Rola Wnioskodawcy w międzynarodowym łańcuchu dostaw - nazwa
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="140"/>
                  <xs:whiteSpace value="collapse"/>
                  <xs:minLength value="1"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="opisDodatkowy" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Uszczegółowienie
                </xs:documentation>
                <xs:documentation source="rule">
                  R974
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:minLength value="1"/>
                  <xs:maxLength value="100"/>
                  <xs:whiteSpace value="collapse"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
          </xs:complexType>
        </xs:element>
        <xs:element name="MiejsceDzialania" minOccurs="0" maxOccurs="99">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Państwa członkowskie, w których wykonywane są działania związane z formalnościami celnymi
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Należy podać właściwy kod państwa. Jeżeli Wnioskodawca obsługuje miejsce składowe lub posiada inne budynki w innym państwie członkowskim, należy również podać adresy oraz rodzaje tych obiektów (D.IV/4).
            </xs:documentation>
            <xs:documentation source="rule">
              R962
            </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:sequence>
              <xs:element name="DaneObiektu" minOccurs="0">
                <xs:annotation>
                  <xs:documentation source="name" xml:lang="pl">
                    Rodzaj obiektu
                  </xs:documentation>
                </xs:annotation>
                <xs:complexType>
                  <xs:attribute name="rodzajObiektu" use="required">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Rodzaj obiektu
                      </xs:documentation>
                      <xs:documentation source="doc" xml:lang="pl">
                        Opis rodzaju obiektu (patrz D.IV/4).
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="70"/>
                        <xs:whiteSpace value="collapse"/>
                        <xs:minLength value="1"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="miejscowoscNazwa" use="optional">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Miejscowość
                      </xs:documentation>
                      <xs:documentation source="doc" xml:lang="pl">
                        Nazwa miejscowości.
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="35"/>
                        <xs:minLength value="1"/>
                        <xs:whiteSpace value="collapse"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="kodPocztowy" use="optional">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Kod pocztowy
                      </xs:documentation>
                      <xs:documentation source="rule">
                        R9
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="17"/>
                        <xs:minLength value="1"/>
                        <xs:whiteSpace value="collapse"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="ulicaNumer" use="optional">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Ulica, numer
                      </xs:documentation>
                      <xs:documentation source="doc" xml:lang="pl">
                        Ulica, numer domu oraz numer lokalu.
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="70"/>
                        <xs:whiteSpace value="collapse"/>
                        <xs:minLength value="1"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
            <xs:attribute name="krajKod" use="required">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Kraj
                </xs:documentation>
                <xs:documentation source="list">
                  049
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:length value="2"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="krajNazwa" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Kraj - nazwa
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="140"/>
                  <xs:minLength value="1"/>
                  <xs:whiteSpace value="collapse"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
          </xs:complexType>
        </xs:element>
        <xs:element name="UCGraniczny" minOccurs="0" maxOccurs="99">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Informacja dotycząca przekraczania granicy
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Numery referencyjne urzędów celnych, przez które regularnie jest przekraczana granica (D.IV/5).
            </xs:documentation>
            <xs:documentation source="rule">
              R962
            </xs:documentation>
            <xs:documentation/>
          </xs:annotation>
          <xs:complexType>
            <xs:attribute name="kodUC" use="required">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Kod UC przekraczania granicy
                </xs:documentation>
                <xs:documentation source="list">
                  001
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:length value="8"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
          </xs:complexType>
        </xs:element>
        <xs:element name="UproszczeniaISwiadectwa" minOccurs="0" maxOccurs="99">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Przyznane uproszczenia i ułatwienia, świadectwa bezpieczeństwa lub ochrony wydane na podstawie konwencji międzynarodowych, międzynarodowej normy Międzynarodowej Organizacji Normalizacyjnej lub europejskiej normy europejskich organów normalizacyjnych, lub świadectwa równoważne ze świadectwami AEO wydane w państwach trzecich.
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              D. IV/6
            </xs:documentation>
            <xs:documentation source="rule">
              R955
            </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:attribute name="rodzajUproszczenia" use="required">
              <xs:annotation>
                <xs:documentation source="name " xml:lang="pl">
                  Rodzaj uproszczenia/ułatwienia
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="70"/>
                  <xs:whiteSpace value="collapse"/>
                  <xs:minLength value="1"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="nrDokumentu" use="required">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Numer identyfikacyjny świadectwa
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="35"/>
                  <xs:minLength value="1"/>
                  <xs:whiteSpace value="collapse"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="krajKod" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Kraj, wydający świadectwo - kod
                </xs:documentation>
                <xs:documentation source="list">
                  049
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:length value="2"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="krajNazwa" type="xs:string" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Kraj, wydający świadectwo - nazwa
                </xs:documentation>
              </xs:annotation>
            </xs:attribute>
            <xs:attribute name="proceduraKod" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Kod procedury celnej
                </xs:documentation>
                <xs:documentation source="list">
                  1684
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="5"/>
                  <xs:whiteSpace value="collapse"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
          </xs:complexType>
        </xs:element>
        <xs:element name="ZgodaNaWymianeInformacji" minOccurs="0">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Zgoda na wymianę informacji w pozwoleniu AEO w celu zapewnienia właściwego funkcjonowania systemów określonych w umowach międzynarodowych lub porozumieniach z państwami trzecimi związanych z wzajemnym uznawaniem statusu upoważnionego przedsiębiorcy i środków dotyczących bezpieczeństwa 
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              D.IV/7.
            </xs:documentation>
            <xs:documentation source="rule">
              R966
            </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:sequence>
              <xs:element name="DaneDoPublikacji" minOccurs="0">
                <xs:annotation>
                  <xs:documentation source="name" xml:lang="pl">
                    Dane do publikacji
                  </xs:documentation>
                  <xs:documentation source="doc" xml:lang="pl">
                    D.IV/7.
                  </xs:documentation>
                  <xs:documentation source="rule">
                    R722
                  </xs:documentation>
                </xs:annotation>
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="Adres" minOccurs="0">
                      <xs:annotation>
                        <xs:documentation source="name" xml:lang="pl">
                          Adres
                        </xs:documentation>
                        <xs:documentation source="doc" xml:lang="pl">
                          Adres do publikacji
                        </xs:documentation>
                      </xs:annotation>
                      <xs:complexType>
                        <xs:attribute name="krajKod" use="required">
                          <xs:annotation>
                            <xs:documentation source="name" xml:lang="pl">
                              Kraj
                            </xs:documentation>
                            <xs:documentation>
                              Kod kraju
                            </xs:documentation>
                            <xs:documentation source="list">
                              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="krajNazwa" use="optional">
                          <xs:annotation>
                            <xs:documentation source="name" xml:lang="pl">
                              Kraj - nazwa
                            </xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="xs:string">
                              <xs:maxLength value="140"/>
                              <xs:minLength value="1"/>
                              <xs:whiteSpace value="collapse"/>
                            </xs:restriction>
                          </xs:simpleType>
                        </xs:attribute>
                        <xs:attribute name="miejscowoscNazwa" use="required">
                          <xs:annotation>
                            <xs:documentation source="name" xml:lang="pl">
                              Miejscowość
                            </xs:documentation>
                            <xs:documentation source="doc" xml:lang="pl">
                              Nazwa miejscowości.
                            </xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="xs:string">
                              <xs:maxLength value="35"/>
                              <xs:minLength value="1"/>
                              <xs:whiteSpace value="collapse"/>
                            </xs:restriction>
                          </xs:simpleType>
                        </xs:attribute>
                        <xs:attribute name="kodPocztowy" use="optional">
                          <xs:annotation>
                            <xs:documentation source="name" xml:lang="pl">
                              Kod pocztowy
                            </xs:documentation>
                            <xs:documentation source="rule">
                              R9
                            </xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="xs:string">
                              <xs:maxLength value="17"/>
                              <xs:whiteSpace value="collapse"/>
                              <xs:minLength value="1"/>
                            </xs:restriction>
                          </xs:simpleType>
                        </xs:attribute>
                        <xs:attribute name="ulicaNumer" use="required">
                          <xs:annotation>
                            <xs:documentation source="name" xml:lang="pl">
                              Ulica, numer domu i numer lokalu
                            </xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="xs:string">
                              <xs:maxLength value="70"/>
                              <xs:whiteSpace value="collapse"/>
                              <xs:minLength value="1"/>
                            </xs:restriction>
                          </xs:simpleType>
                        </xs:attribute>
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                  <xs:attribute name="nazwa" use="required">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Nazwa lub imię i nazwisko
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="512"/>
                        <xs:whiteSpace value="collapse"/>
                        <xs:minLength value="1"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="email" use="optional">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Adres e-mail
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:whiteSpace value="collapse"/>
                        <xs:minLength value="1"/>
                        <xs:maxLength value="256"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
            <xs:attribute name="czyZgodaNaWymianeInformacji" type="xs:boolean" use="required">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Czy wyrażono zgodę na wymianę informacji w pozwoleniu AEO?
                </xs:documentation>
              </xs:annotation>
            </xs:attribute>
          </xs:complexType>
        </xs:element>
        <xs:element name="StalaSiedziba" minOccurs="0" maxOccurs="99">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Stała siedziba
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              D.IV/8.
            </xs:documentation>
            <xs:documentation source="rule">
              R968
            </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Adres" type="ed:AdresKodPocztowyRequiredType2024">
                <xs:annotation>
                  <xs:documentation source="name" xml:lang="pl">
                    Adres stałej siedziby
                  </xs:documentation>
                </xs:annotation>
              </xs:element>
              <xs:element name="NumerVAT">
                <xs:annotation>
                  <xs:documentation source="name" xml:lang="pl">
                    Numer VAT
                  </xs:documentation>
                </xs:annotation>
                <xs:complexType>
                  <xs:attribute name="numerVAT" use="required">
                    <xs:annotation>
                      <xs:documentation source="name" xml:lang="pl">
                        Numer VAT
                      </xs:documentation>
                      <xs:documentation source="doc" xml:lang="pl">
                        Numer VAT stałej siedziby - musi rozpoczynać się od kodu kraju, w którym nadano numer identyfikacyjny VAT.
                      </xs:documentation>
                      <xs:documentation source="rule">
                        R993
                      </xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:maxLength value="17"/>
                        <xs:minLength value="1"/>
                        <xs:whiteSpace value="collapse"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
            <xs:attribute name="nazwa" use="required">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Nazwa
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="70"/>
                  <xs:minLength value="1"/>
                  <xs:whiteSpace value="collapse"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
          </xs:complexType>
        </xs:element>
        <xs:element name="BiuroDokumentacji" minOccurs="0" maxOccurs="99">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Biuro, w którym przechowuje się i udostępnia dokumentację celną 
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              D.IV/9
            </xs:documentation>
            <xs:documentation source="rule">
              R962
            </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Adres" type="ed:AdresKodPocztowyRequiredType2024">
                <xs:annotation>
                  <xs:documentation source="name" xml:lang="pl">
                    Adres biura, w którym przechowuje się i udostępnia dokumentację celną 
                  </xs:documentation>
                </xs:annotation>
              </xs:element>
            </xs:sequence>
            <xs:attribute name="nazwa" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Nazwa
                </xs:documentation>
                <xs:documentation source="doc" xml:lang="pl">
                  Nazwa biura, w którym przechowuje się i udostępnia dokumentację celną 
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="70"/>
                  <xs:minLength value="1"/>
                  <xs:whiteSpace value="collapse"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
          </xs:complexType>
        </xs:element>
        <xs:element name="MiejsceDzialalnosciLogistycznej" minOccurs="0">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Miejsce, w którym prowadzona jest główna działalność logistyczna 
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              D.IV/10
            </xs:documentation>
            <xs:documentation source="rule">
              R955, R1000
            </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Adres" type="ed:AdresKodPocztowyRequiredType2024">
                <xs:annotation>
                  <xs:documentation source="name" xml:lang="pl">
                    Adres miejsca,w którym prowadzona jest główna działalność logistyczna (D.IV/10)
                  </xs:documentation>
                </xs:annotation>
              </xs:element>
            </xs:sequence>
            <xs:attribute name="nazwa" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Nazwa miejsca, w którym prowadzona jest ogólna działalność logistyczna 
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="70"/>
                  <xs:minLength value="1"/>
                  <xs:whiteSpace value="collapse"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
          </xs:complexType>
        </xs:element>
        <xs:element name="DzialalnoscGospodarcza" minOccurs="0" maxOccurs="99">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Działalność gospodarcza
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              D.IV/11
            </xs:documentation>
            <xs:documentation source="rule">
              R962
            </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:attribute name="kodNACE" use="required">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Kod NACE
                </xs:documentation>
                <xs:documentation source="list">
                  407
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:minLength value="1"/>
                  <xs:maxLength value="4"/>
                  <xs:whiteSpace value="collapse"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="nazwaNACE" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Nazwa NACE
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="256"/>
                  <xs:minLength value="1"/>
                  <xs:whiteSpace value="collapse"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
          </xs:complexType>
        </xs:element>
        <xs:element name="ZgodaNaPublikacje" minOccurs="0">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Zgoda na publikację w wykazie posiadaczy pozwoleń
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              D.8/12
            </xs:documentation>
            <xs:documentation source="rule">
              R962
            </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">
                  Znacznik wyrażenia zgody na publikację w wykazie posiadaczy pozwoleń (D.8/12).
                </xs:documentation>
              </xs:annotation>
            </xs:attribute>
          </xs:complexType>
        </xs:element>
        <xs:element name="InformacjaDodatkowa" minOccurs="0">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Dodatkowe informacje
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              D.8/5
            </xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:attribute name="tekst" use="optional">
              <xs:annotation>
                <xs:documentation source="name" xml:lang="pl">
                  Tekst informacji dodatkowej.
                </xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="xs:string">
                  <xs:maxLength value="2560"/>
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
          </xs:complexType>
        </xs:element>
        <xs:element name="Zalacznik" type="ed:ZalacznikType" minOccurs="0" maxOccurs="99">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Załączony dokument
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              Załączny dokument elektroniczny w postaci pliku lub numeru e-Dokumentu w podsystemie e-Dokumenty ( patrz D.2/4).
            </xs:documentation>
            <xs:documentation source="rule">
              R972, R973
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="SkladajacyWniosek" type="ed:SkladajacyWniosekType">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Data i dane osoby składającej wniosek
            </xs:documentation>
            <xs:documentation source="doc" xml:lang="pl">
              D.1/2; D.4/2
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element ref="ds:Signature" minOccurs="0">
          <xs:annotation>
            <xs:documentation source="name" xml:lang="pl">
              Podpis elektroniczny osoby składającej wniosek.
            </xs:documentation>
          </xs:annotation>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>
