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

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

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

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

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

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

ОПИСАНИЕ XSD СХЕМЫ ПРОТОКОЛА ФОРМАТНО-ЛОГИЧЕСКОГО КОНТРОЛЯ

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

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://ts/doc/flk-

errors" targetNamespace="http://ts/doc/flk-errors" elementFormDefault="qualified"

version="2.0">

<xs:element name="flk_errors" type="FlkErrors"/>

<xs:complexType name="FlkErrors">

<xs:sequence>

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

<xs:element name="document" type="Document"/>

</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="ТСФЛК">

<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.0">

<xs:simpleType>

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

<xs:minLength value="1"/>

<xs:maxLength value="5"/>

</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="SourceFileInfo">

<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="recieve_date" type="xs:date" use="required"/>

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

<xs:simpleType>

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

<xs:maxLength value="20"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

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

<xs:simpleType>

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

<xs:length value="2"/>

<xs:enumeration value="01"/>

<xs:enumeration value="02"/>

<xs:enumeration value="03"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

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

<xs:simpleType>

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

<xs:totalDigits value="7"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

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

<xs:simpleType>

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

<xs:totalDigits value="7"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="error_code">

<xs:simpleType>

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

<xs:maxLength value="10"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="error_text">

<xs:simpleType>

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

<xs:maxLength value="255"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

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

<xs:simpleType>

<xs restriction base="xs:string">

<xs:minLength value="1"/>

<xs:maxLength value="20"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

</xs:complexType>

<xs:complexType name="Document">

<xs:sequence>

<xs:element name="source_file_info" type="SourceFileInfo"/>

<xs:element name="error_data" type="ErrorData" minOccurs="0"

maxOccurs="unbounded"/>

</xs:sequence>

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

<xs:simpleType>

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

<xs:length value="36"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

</xs:complexType>

<xs:complexType name="ErrorData">

<xs:attribute name="error_mean">

<xs:simpleType>

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

<xs:maxLength value="1000"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

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

<xs:simpleType>

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

<xs:minLength value="1"/>

<xs:maxLength value="10"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="error_text" 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="last_succeeded_id">

<xs:simpleType>

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

<xs:maxLength value="33"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="error_position">

<xs:simpleType>

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

<xs:maxLength value="255"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

</xs: complexType>

</xs:schema>