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

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

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

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

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

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

ОПИСАНИЕ XSD СХЕМЫ ПРОТОКОЛА ИДЕНТИФИКАЦИИ

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

<xs:schema

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

xmlns="http://ts/doc/validation-errors"

targetNamespace="http://ts/doc/validation-errors"

elementFormDefault="qualified"

version="2.0">

<xs:element name="validation_errors" type="ValidationErrors"/>

<xs:complexType name="ValidationErrors">

<xs:sequence>

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

<xs:element name="registry_documents_info"

type="RegistryDocumentsInfo"/>

</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:element name="source_file_info" type="SourceFileInfo"/>

</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" 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="error_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="RegistryDocumentsInfo">

<xs:sequence>

<xs:element name="registry_document_info"

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

</xs:sequence>

</xs:complexType>

<xs:complexType name="RegistryDocumentInfo">

<xs:sequence>

<xs:element name="error_position" type="xs:string"

minOccurs="1" maxOccurs="unbounded">

<xs:annotation><xs:documentation>

XPath к ошибочному атрибуту, значение

которого указано в id_seller/id_buyer.

Путь указывается относительно

RegistryDocument/RevokedDocument.

Указывается если есть ошибка в

id_seller/id_buyer

Пример: contract[@id="123"]/@id_seller_pril

(Продавец из приложения N 123)

sect_3/@id_buyer_3 (покупатель из

раздела 3)

</xs:documentation></xs:annotation>

</xs:element>

</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="version_reason_id" use="required">

<xs:simpleType>

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

<xs:totalDigits value="1"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<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="country_seller">

<xs:simpleType>

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

<xs:length value="3"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="id_buyer">

<xs:simpleType>

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

<xs:minLength value="8"/>

<xs:maxLength value="14"/>

</xs:restriction>

</xs:simpleType>

</xs:attribute>

<xs:attribute name="country_buyer">

<xs:simpleType>

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

<xs:length value="3"/>

</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:complexType>

</xs:schema>