Приложение N 1

к Требованиям к составу и структуре

информации в электронном виде о суммах

косвенных налогов, уплаченных в бюджеты

государств - членов Евразийского

экономического союза

ОПИСАНИЕ XSD СХЕМЫ ФАЙЛА РЕЕСТРА ЗАЯВЛЕНИЙ

<?xml version="1.0" encoding="UTF-8"?>

<xs:schema

xmlns:xs=http://www.w3.org/2001/XMLSchema

xmlns=http://ts/doc/registry-documents

targetNamespace=http://ts/doc/registry-documents

elementFormDefault="qualified"

version="2.1">

<xs:element name="declaration_registry" type="DeclarationRegistry"/>

<xs:complexType name="DeclarationRegistry">

<xs:sequence>

<xs:element name="add_info" type="AddInfo"/>

<xs:element name="registry_documents"

type="RegistryDocuments"/>

<xs:element name="revoked_documents"

type="RevokedDocuments"/>

</xs:sequence>

</xs:complexType>

<xs:complexType name="AddInfo">

<xs:sequence>

<xs:element name="common_info" type="CommonInfo"/>

<xs:element name="sender_info" type="SenderInfo"/>

</xs:sequence>

</xs:complexType>

<xs:complexType name="CommonInfo">

<xs:attribute name="file_id" use="required">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:length value="20"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="info_type" use="required" fixed="TC">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:minLength value="1"/>

<xs:maxLength value="20"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="version" use="required" fixed="2.1">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:minLength value="1"/>

<xs:maxLength value="5"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="registry_docs_count" use="required">

<xs:simpleType>

<xs:restriction base="xs:int">

<xs:totalDigits value="7"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

</xs:complexType>

<xs:complexType name="SenderInfo">

<xs:attribute name="surname" use="required">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:minLength value="1"/>

<xs:maxLength value="60"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="name" use="required">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:minLength value="1"/>

<xs:maxLength value="60"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="patronymic">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:maxLength value="60"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="phone" use="required">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:minLength value="1"/>

<xs:maxLength value="20"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="email">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:maxLength value="45"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

</xs:complexType>

<xs:complexType name="RegistryDocuments">

<xs:sequence>

<xs:element name="registry_document" type="RegistryDocument"

minOccurs="0" maxOccurs="unbounded"/>

</xs:sequence>

</xs:complexType>

<xs:complexType name="RegistryDocumentSection3">

<xs:sequence>

<xs:element name="spec_3" type="Specification" minOccurs="0"

maxOccurs="1000"/>

</xs:sequence>

<xs:attribute name="type_seller_3">

<xs:simpleType>

<xs:restriction base="IdType">

<xs:enumeration value="0"/>

<xs:enumeration value="1"/>

<xs:enumeration value="2"/>

<xs:enumeration value="6"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="id_seller_3" use="required">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:minLength value="8"/>

<xs:maxLength valuer"14"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="name_seller_3" use="required">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:minLength value="1"/>

<xs:maxLength value="400"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="country_seller_3" use="required">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:length value="3"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="type_buyer_3">

<xs:simpleType>

<xs:restriction base="IdType">

<xs:totalDigits value="1"/>

<xs:enumeration value="3"/>

<xs:enumeration value="4"/>

<xs:enumeration value="5"/>

<xs:enumeration value="7"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="id_buyer_3">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:maxLength value="50"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="name_buyer_3" use="required">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:minLength value="1"/>

<xs:maxLength value="400"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="country_buyer_3" use="required">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:length value="3"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="num_contract_3" use="required">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:minLength value="1"/>

<xs:maxLength value="50"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="date_contract_3" type="xs:date" use="required"/>

</xs:complexType>

<xs:complexType name="RegistryDocument">

<xs:sequence>

<xs:element name="sect_3" type="RegistryDocumentSection3" minOccurs="0"/>

<xs:element name="spec_05" type="Specification" minOccurs="0" maxOccurs="1000"/>

<xs:element name="spec_07" type="Specification" minOccurs="0" maxOccurs="1000"/>

<xs:element name="commodity" type="Commodity" maxOccurs="unbounded"/>

<xs:element name="contract" type="Contract" minOccurs="0" maxOccurs="unbounded"/>

<xs:element name="price_increasing" type="PriceIncreasing" minOccurs="0"/>

</xs:sequence>

<xs:attribute name="id" use="required">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:length value="33"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="date_form" type="xs:date" use="required"/>

<xs:attribute name="version_reason_id" use="required"

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:length value="1"/>

<xs:enumeration value="1"/>

<xs:enumeration value="2"/>

<xs:enumeration value="4"/>

<xs:enumeration value="5"/>

<xs:enumeration value="6"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="type" use="required">

<xs:simpleType>

<xs:restriction base="xs:int">

<xs:totalDigits value="2"/>

<xs:enumeration value="0"/>

<xs:enumeration value="1"/>

<xs:enumeration value="2"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="request_id">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:length value="36"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="decl_num">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:minLength value="1"/>

<xs:maxLength value="33"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="decl_date" type="xs:date"/>

<xs:attribute name="id_seller">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:maxLength value="50"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="name_seller" use="required">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:minLength value="1"/>

<xs:maxLength value="400"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="country_seller" use="required">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:length value="3"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="person_seller" type="xs:boolean" use="required"/>

<xs:attribute name="id_buyer" use="required">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:minLength value="8"/>

<xs:maxLength value="14"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="name_buyer" use="required">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:minLength value="1"/>

<xs:maxLength value="400"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="country_buyer" use="required">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:length value="3"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="num_contract_1" use="required">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:minLength value="1"/>

<xs:maxLength value="50"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="date_contract_1" type="xs:date" use="required"/>

<xs:attribute name="name_consignee_1">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:maxLength value="400"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:rattribute name="num_contract_2">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:maxLength value="50"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="date_contract_2" type="xs:date"/>

<xs:attribute name="leasing" type="xs:boolean" use="required"/>

<xs:attribute name="processing" type="xs:boolean" use="required"/>

<xs:attribute name="decl_head_name">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:minLength value="1"/>

<xs:maxLength value="100"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="mark_num" use="required">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:minLength value="1"/>

<xs:maxLength value="18"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="mark_date" type="xs:date" use="required"/>

<xs:attribute name="nds_sum_all">

<xs:simpleType>

<xs:restriction base="xs:decimal">

<xs:totalDigits value="16"/>

<xs:fractionDigits value="0"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="excise_sum_all">

<xs:simpleType>

<xs:restriction base="xs:decimal">

<xs:totalDigits value="16"/>

<xs:fractionDigits value="0"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="excise_base_sum">

<xs:simpleType>

<xs:restriction base="xs:decimal">

<xs:totalDigits value="21"/>

<xs:fractionDigits value="6"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="nds_base_sum">

<xs:simpleType>

<xs:restriction base="xs:decimal">

<xs:totalDigits value="18"/>

<xs:fractionDigits value="2"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="excise_sum_sum">

<xs:simpleType>

<xs:restriction base="xs:decimal">

<xs:totalDigits value="18"/>

<xs:fractionDigits value="2"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="nds_sum_sum">

<xs:simpleType>

<xs:restriction base="xs:decimal">

<xs:totalDigits value="18"/>

<xs:fractionDigits value="2"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="insp_name">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:minLength value="1"/>

<xs:maxLength value="100"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="ok_mark_date" type="xs:date" use="required"/>

<xs:attribute name="tax_department" use="required">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:minLength value="1"/>

<xs:maxLength value="255"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="present_type" use="required">

<xs:simpleType>

<xs:restriction base="xs:int">

<xs:totalDigits value="1"/>

<xs:enumeration value="1"/>

<xs:enumeration value="2"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="source_id">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:maxLength value="33"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="source_mark_num">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:minLength value="1"/>

<xs:maxLength value="18"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="source_mark_date" type="xs:date"/>

<xs:attribute name= "prev_mark_num">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:minLength value="1"/>

<xs:maxLength value="18"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="prev_mark_date" type="xs:date"/>

<xs:attribute name="comment">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:maxLength value="4000"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

</xs:complexType>

<xs:complexType name="Commodity">

<xs:sequence>

<xs:element name="transdocs" type="TransdocInfo"

maxOccurs="unbounded"/>

</xs:sequence>

<xs:attribute name="order" use="required">

<xs:simpleType>

<xs:restriction base="xs:int">

<xs:totalDigits value="4"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="comm_name" use="required">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:minLength value="1"/>

<xs:maxLength value="500"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="tnved">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:length value="10"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="unit_meas_id">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:minLength value="3"/>

<xs:maxLength value="4"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="comm_count">

<xs:simpleType>

<xs:restriction base="xs:decimal">

<xs:totalDigits value="17"/>

<xs:fractionDigits value="6"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="comm_price" use="required">

<xs:simpleType>

<xs:restriction base="xs:decimal">

<xs:totalDigits value="16"/>

<xs:fractionDigits value="2"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="currency" use="required">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:length value="3"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="rate" use="required">

<xs:simpleType>

<xs:restriction base="xs:decimal">

<xs:totalDigits value="10"/>

<xs:fractionDigits value="4"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="invoice_num" use="required">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:minLength value="1"/>

<xs:maxLength value="150"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="invoice_date" type="xs:date" use="required"/>

<xs:attribute name="accepting_date" type="xs:date" use="required"/>

<xs:attribute name="excise_base">

<xs:simpleType>

<xs:restriction base="xs:decimal">

<xs:totalDigits value="21"/>

<xs:fractionDigits value="6"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="nds_base" use="required">

<xs:simpleType>

<xs:restriction base="xs:decimal">

<xs:totalDigits value="16"/>

<xs:fractionDigits value="2"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="excise_perc_st">

<xs:simpleType>

<xs:restriction base="xs:decimal">

<xs:totalDigits value="16"/>

<xs:fractionDigits value="2"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="excise_perc_ad">

<xs:simpleType>

<xs:restriction base="xs:decimal">

<xs:totalDigits value="16"/>

<xs:fractionDigits value="2"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="nds_perc" use="required">

<xs:simpleType>

<xs:restriction base="xs:decimal">

<xs:totalDigits value="16"/>

<xs:fractionDigits value="2"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="excise_sum">

<xs:simpleType>

<xs:restriction base="xs:decimal">

<xs:totalDigits value="16"/>

<xs:fractionDigits value="2"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="nds_sum">

<xs:simpleType>

<xs:restriction base="xs:decimal">

<xs:totalDigits value="16"/>

<xs:fractionDigits value="2"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

</xs:complexType>

<xs:complexType name="Contract">

<xs:sequence>

<xs:element name="spec_pril" type="Specification"

minOccurs="0" maxOccurs="1000"/>

</xs:sequence>

<xs:attribute name="order_pril" use="required">

<xs:simpleType>

<xs:restriction base="xs:int">

<xs:totalDigits value="4"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="type_seller_pril" type="IdType"/>

<xs:attribute name="id_seller_pril">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:maxLength value="50"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="name_seller_pril" use="required">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:minLength value="1"/>

<xs:maxLength value="400"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="country_seller_pril" use="required">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:length value="3"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="type_buyer_pril" type="IdType"/>

<xs:attribute name="id_buyer_pril">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:maxLength value="50"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="name_buyer_pril" use="required">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:minLength value="1"/>

<xs:maxLength value="400"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="country_buyer_pril" use="required">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:length value="3"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="num_contract_pril" use="required">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:minLength value="1"/>

<xs:maxLength value="50"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="date_contract_pril" type="xs:date" use="required"/>

</xs:complexType>

<xs:complexType name="RevokedDocuments">

<xs:sequence>

<xs:element name="revoked_document"

type="RevokedDocument" minOccurs="0" maxOccurs="unbounded"/>

</xs:sequence>

</xs:complexType>

<xs:complexType name="RevokedDocument">

<xs:attribute name="id" use="required">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:length value="33"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="date_form" type="xs:date" use="required"/>

<xs:attribute name="version_reason_id" use="required" fixed="3">

<xs:simpleType>

<xs:restriction base="xs:int">

<xs:totalDigits value="1"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="type" use="required">

<xs:simpleType>

<xs:restriction base="xs:int">

<xs:totalDigits value="2"/>

<xs:enumeration value="0"/>

<xs:enumeration value="1"/>

<xs:enumeration value="2"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="request_id">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:maxLength value="36"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="mark_num" use="required">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:minLength value="1"/>

<xs:maxLength value="18"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="mark_date" type="xs:date" use="required"/>

<xs:attribute name="revoked_reason_code" use="required">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:length value="2"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="source_id" use="required">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:length value="33"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="comment">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:maxLength value="4000"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

</xs:complexType>

<xs:complexType name="Specification">

<xs:attribute name="order" use="required">

<xs:simpleType>

<xs:restriction base="xs:int">

<xs:totalDigits value="4"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="num_spec" use="required">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:minLength value="1"/>

<xs:maxLength value="50"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="date_spec" type="xs:date" use="required"/>

</xs:complexType>

<xs:complexType name="TransdocInfo">

<xs:attribute name="transdoc_serie" use="required">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:minLength value="1"/>

<xs:maxLength value="50"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="transdoc_date" type="xs:date" use="required"/>

</xs:complexType>

<xs:complexType name="PriceIncreasing">

<xs:attribute name="pi_source_id" use="required">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:length value="33"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="pi_mark_num" use="required">

<xs:simpleType>

<xs:restriction base="xs:string">

<xs:minLength value="1"/>

<xs:maxLength value="18"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="pi_mark_date" type="xs:date" use="required"/>

<xs:attribute name="pi_month" use="required">

<xs:simpleType>

<xs:restriction base="xs:int">

<xs:minInclusive value="1"/>

<xs:maxInclusive value="12"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="pi_year" use="required">

<xs:simpleType>

<xs:restriction base="xs:int">

<xs:minInclusive value="2010"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

</xs:complexType>

<xs:simpleType name="IdType">

<xs:restriction base="xs:int">

<xs:totalDigits value="2"/>

</xs:enumeration value="0">

<xs:annotation>

<xs:documentation>Комитент</xs:documentation>

<xs:annotation>

</xs:enumeration>

<xs:enumeration value="1">

<xs:annotation>

<xs:documentation>Доверитель</xs:documentation>

</xs:annotation>

</xs:enumeration>

<xs:enumeration value="2">

<xs:annotation>

<xs:documentation>Принципал</xs:documentation>

</xs:annotation>

</xs:enumeration>

<xs:enumeration value="3">

<xs:annotation>

<xs:documentation>Комиссионер</xs:documentation>

</xs:annotation>

</xs:enumeration>

<xs:enumeration value="4">

<xs:annotation>

<xs:documentation>Поверенный</xs:documentation>

</xs:annotation>

</xs:enumeration>

<xs:enumeration value="5">

<xs:annotation>

<xs:documentation>Агент</xs:documentation>

</xs:annotation>

</xs:enumeration>

<xs:enumeration valuer="6">

<xs:annotation>

<xs:documentation>Продавец</xs:documentation>

</xs:annotation>

</xs:enumeration>

<xs:enumeration value="7"/>

<xs:annotation>

<xs:documentation>Покупатель</xs:documentation>

</xs:annotation>

</xs:enumeration>

</xs:restriction>

</xs:simpleType>

</xs:schema>