<?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: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/EMCSPL3/PL734/2019/10/"
           targetNamespace="http://www.mf.gov.pl/schematy/EMCSPL3/PL734/2019/10/" >
  <!--=========================================-->
  <!--===== PL734:PL_RDD_DAT -->
  <!--===== Wartości polskich 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: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="PL734" type="ie:PL734Type" />
  
  <!--===== EMCS Data Groups Declarations =====-->
  <xs:complexType name="PL734Type">
    <xs:sequence>
      <xs:element name="PolishListOfCodes" type="ie:PolishListOfCodesType" />
    </xs:sequence>
  </xs:complexType>
  <!--===== IE Specific Data Groups Declarations =====-->
  <xs:complexType name="PolishListOfCodesType">
    <xs:sequence>
      <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="MemberStateAllowingSplittingOnItsTerritory" type="ie:MemberStateAllowingSplittingOnItsTerritoryType" minOccurs="0" maxOccurs="unbounded" />
      <xs:element name="Holiday" type="ie:HolidayType" minOccurs="0" maxOccurs="unbounded" />
      <xs:element name="CountryToMemberState" type="ie:CountryToMemberStateType" 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="ie:UnitOfMeasureCodeType" />
      <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="ie: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="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="MemberStateAllowingSplittingOnItsTerritoryType">
    <xs:sequence>
      <xs:element name="MemberStateCode" type="ie:MemberStateCodeType" />
      <xs:element name="LanguageSpecificData" type="ie:LanguageSpecificDataType" />
      <xs:element name="Action" type="ie:ActionType" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="HolidayType">
    <xs:sequence>
      <xs:element name="HolidayDay" type="emcs:DateType" />
      <xs:element name="LanguageSpecificData" type="ie:LanguageSpecificDataType" />
      <xs:element name="Action" type="ie:ActionType" />
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="CountryToMemberStateType">
    <xs:sequence>
      <xs:element name="CountryCode" type="ie:CountryCodeType" />
      <xs:element name="MemberStateCode" type="ie:MemberStateCodeType" />
      <xs:element name="LanguageSpecificData" type="ie:LanguageSpecificDataType" />
      <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="emcs:DescriptionType" />
    </xs:sequence>
    <xs:attribute name="language" type="emcs:LanguageCodeType" use="required" />
  </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="ActionIdentification" type="ie:ActionIdentificationType" />
      <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:simpleType name="ActionIdentificationType">
    <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="CountryCodeType">
    <xs:restriction base="xs:token">
      <xs:length value="2" />
      <xs:pattern value="[A-Z]{2}" />
    </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:simpleType name="ProductPurposeDescriptionType">
    <xs:restriction base="xs:token">
      <xs:maxLength value="300" />
      <xs:pattern value=".{1,300}" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="MemberStateCodeType">
    <xs:restriction base="xs:token">
      <xs:length value="2" />
      <xs:pattern value="[a-zA-Z]{2}" />
    </xs:restriction>
  </xs:simpleType>
  <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="UnitOfMeasureCodeType">
    <xs:restriction base="xs:token">
      <xs:length value="1" />
      <xs:pattern value="[0-9]" />
    </xs:restriction>
  </xs:simpleType>
</xs:schema>