<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.00"
           xmlns:emcs="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE3:EMCS:V2.02"
           xmlns:tms="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE3:TMS:V2.02"
           xmlns:tcl="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE3:TCL:V2.02"
           xmlns:doc="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE3:DOC:V2.02"
           xmlns:ie="http://www.mf.gov.pl/schematy/EDD/DD733/2020/05/"
           targetNamespace="http://www.mf.gov.pl/schematy/EDD/DD733/2020/05/">
  <!--=========================================-->
  <!--===== DD733:PL_COD_DAT -->
  <!--===== Wartości słowników -->
  <!--=========================================-->
  <!--===== Imports =====-->
  <xs:import namespace="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE3:EMCS:V2.02" schemaLocation="types.xsd" />
  <xs:import namespace="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE3:TMS:V2.02" schemaLocation="tms.xsd" />
  <xs:import namespace="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE3:TCL:V2.02" schemaLocation="tcl.xsd" />
  <xs:import namespace="urn:publicid:-:EC:DGTAXUD:EMCS:PHASE3:DOC:V2.02" schemaLocation="doc.xsd" />

  <!--===== Root Element =====-->
  <xs:element name="DD733" type="ie:DD733Type" />

  <!--===== EMCS Data Groups Declarations =====-->
  <xs:complexType name="DD733Type">
    <xs:sequence>
      <xs:element name="Header" type="tms:HeaderType" />
      <xs:element name="Body" type="ie:BodyType" />
    </xs:sequence>
  </xs:complexType>
  <!--===== IE Specific Data Groups Declarations =====-->
  <xs:complexType name="BodyType">
    <xs:sequence>
      <xs:element name="ExternalListOfCodes" type="ie:ExternalListOfCodesType" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="ExternalListOfCodesType">
    <xs:sequence>
      <xs:element name="UnitOfMeasure" type="ie:UnitOfMeasureType" minOccurs="0" maxOccurs="unbounded" />
      <xs:element name="LanguageCode" type="ie:LanguageCodeType" minOccurs="0" maxOccurs="unbounded" />
      <xs:element name="MemberState" type="ie:MemberStateType" minOccurs="0" maxOccurs="unbounded" />
      <xs:element name="Country" type="ie:CountryType" minOccurs="0" maxOccurs="unbounded" />
      <xs:element name="PackagingCode" type="ie:PackagingCodeType" minOccurs="0" maxOccurs="unbounded" />
      <xs:element name="UnsatisfactoryReason" type="ie:UnsatisfactoryReasonType" minOccurs="0" maxOccurs="unbounded" />
      <xs:element name="TransportMode" type="ie:TransportModeType" minOccurs="0" maxOccurs="unbounded" />
      <xs:element name="TransportUnit" type="ie:TransportUnitType" minOccurs="0" maxOccurs="unbounded" />
      <xs:element name="ExciseProductsCategory" type="ie:ExciseProductsCategoryType" minOccurs="0" maxOccurs="unbounded" />
      <xs:element name="ExciseProduct" type="ie:ExciseProductType" minOccurs="0" maxOccurs="unbounded" />
      <xs:element name="CnCode" type="ie:CnCodeType" minOccurs="0" maxOccurs="unbounded" />
      <xs:element name="CorrespondenceCnCodeExciseProduct" type="ie:CorrespondenceCnCodeExciseProductType" minOccurs="0" maxOccurs="unbounded" />
      <xs:element name="CancellationReason" type="ie:CancellationReasonType" minOccurs="0" maxOccurs="unbounded" />
      <xs:element name="PolishExciseProduct" type="ie:ExciseProductType" minOccurs="0" maxOccurs="unbounded" />
      <xs:element name="PolishCnCode" type="ie:CnCodeType" minOccurs="0" maxOccurs="unbounded" />
      <xs:element name="PolishCorrespondenceCnCodeExciseProduct" type="ie:CorrespondenceCnCodeExciseProductType" minOccurs="0" maxOccurs="unbounded" />
      <xs:element name="AdditionalUnitOfMeasure" type="ie:UnitOfMeasureType" minOccurs="0" maxOccurs="unbounded" />
      <xs:element name="MaximumJourneyTimeParameters" type="ie:MaximumJourneyTimeParametersType" minOccurs="0" maxOccurs="unbounded" />
      <xs:element name="ProductPurpose" type="ie:ProductPurposeType" minOccurs="0" maxOccurs="unbounded" />
      <xs:element name="ProductPurposeMapping" type="ie:ProductPurposeMappingType" minOccurs="0" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="UnitOfMeasureType">
    <xs:sequence>
      <xs:element name="UnitOfMeasureCode" type="emcs:UnitOfMeasureCodeType" />
      <xs:element name="LanguageSpecificData" type="ie:LanguageSpecificDataType" />
      <xs:element name="Action" type="ie:ActionType" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="LanguageCodeType">
    <xs:sequence>
      <xs:element name="LanguageCode" type="emcs:LanguageCodeType" />
      <xs:element name="LanguageSpecificData" type="ie:LanguageSpecificDataType" />
      <xs:element name="Action" type="ie:ActionType" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="MemberStateType">
    <xs:sequence>
      <xs:element name="MemberStateCode" type="emcs:MemberStateCodeType" />
      <xs:element name="LanguageSpecificData" type="ie:LanguageSpecificDataType" />
      <xs:element name="Action" type="ie:ActionType" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="CountryType">
    <xs:sequence>
      <xs:element name="CountryCode" type="emcs:CountryCodeType" />
      <xs:element name="LanguageSpecificData" type="ie:LanguageSpecificDataType" />
      <xs:element name="Action" type="ie:ActionType" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="PackagingCodeType">
    <xs:sequence>
      <xs:element name="KindOfPackages" type="emcs:KindOfPackagesType" />
      <xs:element name="CountableFlag" type="tcl:Flag" />
      <xs:element name="LanguageSpecificData" type="ie:LanguageSpecificDataType" />
      <xs:element name="Action" type="ie:ActionType" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="UnsatisfactoryReasonType">
    <xs:sequence>
      <xs:element name="UnsatisfactoryReasonCode" type="emcs:UnsatisfactoryReasonCodeType" />
      <xs:element name="LanguageSpecificData" type="ie:LanguageSpecificDataType" />
      <xs:element name="Action" type="ie:ActionType" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="EventTypeType">
    <xs:sequence>
      <xs:element name="EventTypeCode" type="emcs:EventTypeCodeType" />
      <xs:element name="LanguageSpecificData" type="ie:LanguageSpecificDataType"/>
      <xs:element name="Action" type="ie:ActionType" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="EvidenceTypeType">
    <xs:sequence>
      <xs:element name="EvidenceTypeCode" type="emcs:EvidenceTypeCodeType" />
      <xs:element name="LanguageSpecificData" type="ie:LanguageSpecificDataType"/>
      <xs:element name="Action" type="ie:ActionType" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="ReasonForInterruptionType">
    <xs:sequence>
      <xs:element name="ReasonForInterruptionCode" type="emcs:ReasonForInterruptionCodeType" />
      <xs:element name="LanguageSpecificData" type="ie:LanguageSpecificDataType"/>
      <xs:element name="Action" type="ie:ActionType" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="TransportModeType">
    <xs:sequence>
      <xs:element name="TransportModeCode" type="emcs:TransportModeCodeType" />
      <xs:element name="LanguageSpecificData" type="ie:LanguageSpecificDataType" />
      <xs:element name="Action" type="ie:ActionType" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="TransportUnitType">
    <xs:sequence>
      <xs:element name="TransportUnitCode" type="emcs:TransportUnitCodeType" />
      <xs:element name="LanguageSpecificData" type="ie:LanguageSpecificDataType" />
      <xs:element name="Action" type="ie:ActionType" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="WineGrowingZoneType">
    <xs:sequence>
      <xs:element name="WineGrowingZoneCode" type="emcs:WineGrowingZoneCodeType" />
      <xs:element name="LanguageSpecificData" type="ie:LanguageSpecificDataType" />
      <xs:element name="Action" type="ie:ActionType" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="WineOperationType">
    <xs:sequence>
      <xs:element name="WineOperationCode" type="emcs:WineOperationCodeType" />
      <xs:element name="LanguageSpecificData" type="ie:LanguageSpecificDataType" />
      <xs:element name="Action" type="ie:ActionType" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="ExciseProductsCategoryType">
    <xs:sequence>
      <xs:element name="ExciseProductsCategoryCode" type="emcs:ExciseProductsCategoryCodeType" />
      <xs:element name="LanguageSpecificData" type="ie:LanguageSpecificDataType" />
      <xs:element name="Action" type="ie:ActionType" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="ExciseProductType">
    <xs:sequence>
      <xs:element name="ExciseProductsCategoryCode" type="emcs:ExciseProductsCategoryCodeType" />
      <xs:element name="ExciseProductCode" type="emcs:ExciseProductCodeType" />
      <xs:element name="UnitOfMeasureCode" type="emcs:UnitOfMeasureCodeType" />
      <xs:element name="AlcoholicStrengthApplicabilityFlag" type="tcl:Flag" />
      <xs:element name="DegreePlatoApplicabilityFlag" type="tcl:Flag" />
      <xs:element name="DensityApplicabilityFlag" type="tcl:Flag" />
      <xs:element name="LanguageSpecificData" type="ie:LanguageSpecificDataType" />
      <xs:element name="Action" type="ie:ActionType" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="EventSubmittingPersonType">
    <xs:sequence>
      <xs:element name="SubmittingPersonCode" type="emcs:SubmittingPersonCodeType" />
      <xs:element name="LanguageSpecificData" type="ie:LanguageSpecificDataType" />
      <xs:element name="Action" type="ie:ActionType" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="CnCodeType">
    <xs:sequence>
      <xs:element name="CnCode" type="emcs:CnCodeType" />
      <xs:element name="LanguageSpecificData" type="ie:LanguageSpecificDataType" />
      <xs:element name="Action" type="ie:ActionType" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="CorrespondenceCnCodeExciseProductType">
    <xs:sequence>
      <xs:element name="CnCode" type="emcs:CnCodeType" />
      <xs:element name="ExciseProductCode" type="emcs:ExciseProductCodeType" />
      <xs:element name="Action" type="ie:ActionType" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="CancellationReasonType">
    <xs:sequence>
      <xs:element name="CancellationReasonCode" type="emcs:CancellationReasonCodeType" />
      <xs:element name="LanguageSpecificData" type="ie:LanguageSpecificDataType" />
      <xs:element name="Action" type="ie:ActionType" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="AlertOrRejectionOfEadReasonType">
    <xs:sequence>
      <xs:element name="AlertOrRejectionOfEadReasonCode" type="emcs:AlertOrRejectionOfEadReasonCodeType" />
      <xs:element name="LanguageSpecificData" type="ie:LanguageSpecificDataType" />
      <xs:element name="Action" type="ie:ActionType" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="DelayExplanationType">
    <xs:sequence>
      <xs:element name="DelayExplanationCode" type="emcs:DelayExplanationCodeType" />
      <xs:element name="LanguageSpecificData" type="ie:LanguageSpecificDataType" />
      <xs:element name="Action" type="ie:ActionType" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="MaximumJourneyTimeParametersType">
    <xs:sequence>
      <xs:element name="MaximumJourneyTime" type="emcs:JourneyTimeType" />
      <xs:element name="TransportModeCode" type="emcs:TransportModeCodeType" />
      <xs:element name="Action" type="ie:ActionType" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="ProductPurposeType">
    <xs:sequence>
      <xs:element name="ProductPurpose" type="xs:nonNegativeInteger" />
      <xs:element name="Description" type="ie:ProductPurposeDescriptionType" />
      <xs:element name="Action" type="ie:ActionType" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="ProductPurposeMappingType">
    <xs:sequence>
      <xs:element name="ExciseProductCodeType" type="emcs:ExciseProductCodeType" />
      <xs:element name="CnCodePattern" type="ie:CnCodePatternType" />
      <xs:element name="ProductPurposes" type="ie:ProductPurposesType" />
      <xs:element name="Action" type="ie:ActionType" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="LanguageSpecificDataType">
    <xs:sequence>
      <xs:element name="Description" type="ie:LSDDescriptionType" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="ActionType">
    <xs:sequence>
      <xs:element name="Operation" type="tcl:ModificationType" />
      <xs:element name="ActivationDate" type="emcs:DateType" />
      <xs:element name="ActionIdentifier" type="ie:ActionIdentifierType" />
      <xs:element name="ResponsibleDataManager" type="ie:ResponsibleDataManagerType" minOccurs="0" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="ProductPurposesType">
    <xs:sequence>
      <xs:element name="ProductPurpose" type="ie:ProductPurposeSimpleType" minOccurs="1" maxOccurs="unbounded" />
    </xs:sequence>
  </xs:complexType>
  <!--===== IE Specific Data Items Declarations =====-->
  <xs:complexType name="LSDDescriptionType">
    <xs:simpleContent>
      <xs:extension base="emcs:DescriptionType">
        <xs:attribute name="language" type="emcs:LanguageCodeType" use="required" />
      </xs:extension>
    </xs:simpleContent>
  </xs:complexType>
  <xs:simpleType name="ResponsibleDataManagerType">
    <xs:restriction base="xs:token">
      <xs:maxLength value="35" />
      <xs:pattern value=".{1,35}" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="ActionIdentifierType">
    <xs:restriction base="xs:token">
      <xs:maxLength value="20" />
      <xs:pattern value=".{1,20}" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="CnCodePatternType">
    <xs:annotation>
      <xs:documentation>
        <doc:description value="CN Code pattern" />
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:token">
      <xs:pattern value="[1-9]{1}[0-9]{3}([0-9]{2}){0,2}" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="ProductPurposeDescriptionType">
    <xs:restriction base="xs:token">
      <xs:maxLength value="300" />
      <xs:pattern value=".{1,300}" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="ProductPurposeSimpleType">
    <xs:restriction base="xs:token">
      <xs:maxLength value="2" />
      <xs:pattern value="[1-9][0-9]{0,1}" />
    </xs:restriction>
  </xs:simpleType>
</xs:schema>