<?xml version="1.0" encoding="windows-1251"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="Файл">
    <xs:annotation>
      <xs:appinfo>
        <sch:pattern name="Проверка имени файла на соответствие значению атрибута @ИдФайл" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
          <sch:rule context="Файл">
            <!--Проверка имени файла на соответствие ИдФайл-->
            <sch:assert test="usch:getFileName() = @ИдФайл">
              <usch:error code="0400400007" path="@ИдФайл" value-of-select="@ИдФайл" doc-id-path="usch:getFileName()" doc-id-caption="Файл" xmlns:usch="http://www.unisoftware.ru/schematron-extensions">Имя файла обмена "<usch:value-of select="usch:getFileName()" />" не совпадает со значением элемента ИдФайл "<usch:value-of select="@ИдФайл" />"</usch:error>
            </sch:assert>
          </sch:rule>
        </sch:pattern>
      </xs:appinfo>
      <xs:documentation>Файл обмена</xs:documentation>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="Документ">
          <xs:annotation>
            <xs:documentation>Путевой лист, информация о результате послесменного, послерейсового медицинского осмотра</xs:documentation>
          </xs:annotation>
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ИдИнфЗаезд">
                <xs:annotation>
                  <xs:documentation>Идентификация файла обмена информации о показаниях одометра при заезде транспортного средства на парковку (парковочное место)/при сдаче транспортного другому водителю</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                  <xs:attribute name="ИдФайлИнфЗаезд" use="required">
                    <xs:annotation>
                      <xs:documentation>Идентификатор файла обмена информации о показаниях одометра при заезде транспортного средства на парковку (парковочное место)/при сдаче транспортного средства другому водителю</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:minLength value="1" />
                        <xs:maxLength value="255" />
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="ДатФайлИнфЗаезд" type="ДатаТип" use="required">
                    <xs:annotation>
                      <xs:documentation>Дата формирования файла обмена информации о показаниях одометра при заезде транспортного средства на парковку (парковочное место)/при сдаче транспортного средства другому водителю</xs:documentation>
                    </xs:annotation>
                  </xs:attribute>
                  <xs:attribute name="ВрФайлИнфЗаезд" type="ВремяТип" use="required">
                    <xs:annotation>
                      <xs:documentation>Время формирования файла обмена информации о показаниях одометра при заезде транспортного средства на парковку (парковочное место)/при сдаче транспортного средства другому водителю</xs:documentation>
                    </xs:annotation>
                  </xs:attribute>
                  <xs:attribute name="ЭП" use="required">
                    <xs:annotation>
                      <xs:documentation>Электронная подпись файла обмена информации о показаниях одометра при заезде транспортного средства на парковку (парковочное место)/при сдаче транспортного средства другому водителю</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:minLength value="1" />
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                </xs:complexType>
              </xs:element>
              <xs:element name="СодИнфМО">
                <xs:annotation>
                  <xs:documentation>Содержание путевого листа, информация о результате послесменного, послерейсового медицинского осмотра</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                  <xs:sequence>
                    <xs:choice>
                      <xs:element name="СвМедРаб">
                        <xs:annotation>
                          <xs:documentation>Сведения о медицинском работнике, состоящем в штате юридического лица или индивидуального предпринимателя, осуществляющего деятельность по перевозке пассажиров и багажа, грузов</xs:documentation>
                        </xs:annotation>
                        <xs:complexType>
                          <xs:sequence>
                            <xs:element name="ФИО" type="ФИОТип">
                              <xs:annotation>
                                <xs:documentation>Фамилия, имя, отчество (при наличии) медицинского работника</xs:documentation>
                              </xs:annotation>
                            </xs:element>
                            <xs:element name="ЛицензМО" type="ЛицензМОТип">
                              <xs:annotation>
                                <xs:documentation>Лицензия на проведения предсменных, предрейсовых и послесменных, послерейсовых медицинских осмотров</xs:documentation>
                              </xs:annotation>
                            </xs:element>
                          </xs:sequence>
                          <xs:attribute name="Должн" use="optional">
                            <xs:annotation>
                              <xs:documentation>Должность медицинского работника</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:minLength value="1" />
                                <xs:maxLength value="255" />
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:attribute>
                        </xs:complexType>
                      </xs:element>
                      <xs:element name="СвМедОрг">
                        <xs:annotation>
                          <xs:documentation>Сведения о медицинской организации и медицинском работнике, состоящем в штате медицинской организации</xs:documentation>
                        </xs:annotation>
                        <xs:complexType>
                          <xs:sequence>
                            <xs:element name="ФИО" type="ФИОТип">
                              <xs:annotation>
                                <xs:documentation>Фамилия, имя, отчество (при наличии) медицинского работника</xs:documentation>
                              </xs:annotation>
                            </xs:element>
                            <xs:element name="ЛицензМО" type="ЛицензМОТип">
                              <xs:annotation>
                                <xs:documentation>Лицензия на проведения предсменных, предрейсовых и послесменных, послерейсовых медицинских осмотров</xs:documentation>
                              </xs:annotation>
                            </xs:element>
                          </xs:sequence>
                          <xs:attribute name="НаимМедОрг" use="required">
                            <xs:annotation>
                              <xs:documentation>Наименование медицинской организации</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:minLength value="1" />
                                <xs:maxLength value="255" />
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:attribute>
                          <xs:attribute name="Должн" use="optional">
                            <xs:annotation>
                              <xs:documentation>Должность медицинского работника</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                              <xs:restriction base="xs:string">
                                <xs:minLength value="1" />
                                <xs:maxLength value="255" />
                              </xs:restriction>
                            </xs:simpleType>
                          </xs:attribute>
                        </xs:complexType>
                      </xs:element>
                    </xs:choice>
                    <xs:element name="СвМОПосл">
                      <xs:annotation>
                        <xs:documentation>Сведения о результате послерейсового медицинского осмотра водителем (водителями)</xs:documentation>
                      </xs:annotation>
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="СвВодит">
                            <xs:annotation>
                              <xs:documentation>Сведения о водителе транспортного средства</xs:documentation>
                            </xs:annotation>
                            <xs:complexType>
                              <xs:sequence>
                                <xs:element minOccurs="0" name="ВодитУд">
                                  <xs:annotation>
                                    <xs:documentation>Данные водительского удостоверения</xs:documentation>
                                  </xs:annotation>
                                  <xs:complexType>
                                    <xs:attribute name="НомВУ" use="required">
                                      <xs:annotation>
                                        <xs:documentation>Номер водительского удостоверения</xs:documentation>
                                      </xs:annotation>
                                      <xs:simpleType>
                                        <xs:restriction base="xs:string">
                                          <xs:minLength value="1" />
                                          <xs:maxLength value="20" />
                                        </xs:restriction>
                                      </xs:simpleType>
                                    </xs:attribute>
                                    <xs:attribute name="СерВУ" use="required">
                                      <xs:annotation>
                                        <xs:documentation>Серия водительского удостоверения</xs:documentation>
                                      </xs:annotation>
                                      <xs:simpleType>
                                        <xs:restriction base="xs:string">
                                          <xs:minLength value="1" />
                                          <xs:maxLength value="20" />
                                        </xs:restriction>
                                      </xs:simpleType>
                                    </xs:attribute>
                                    <xs:attribute name="ДатаВыдВУ" type="ДатаТип" use="required">
                                      <xs:annotation>
                                        <xs:documentation>Дата выдачи водительского удостоверения</xs:documentation>
                                      </xs:annotation>
                                    </xs:attribute>
                                  </xs:complexType>
                                </xs:element>
                                <xs:element name="ФИО" type="ФИОТип">
                                  <xs:annotation>
                                    <xs:documentation>Фамилия, имя, отчество (при наличии)</xs:documentation>
                                  </xs:annotation>
                                </xs:element>
                              </xs:sequence>
                              <xs:attribute name="ИННФЛ" type="ИННФЛТип" use="optional">
                                <xs:annotation>
                                  <xs:documentation>ИНН физического лица</xs:documentation>
                                </xs:annotation>
                              </xs:attribute>
                            </xs:complexType>
                          </xs:element>
                        </xs:sequence>
                        <xs:attribute name="ДатВрПрМО" type="ДатаВремяВЗТип" use="required">
                          <xs:annotation>
                            <xs:documentation>Дата и время проведения послесменного, послерейсового медицинского осмотра</xs:documentation>
                          </xs:annotation>
                        </xs:attribute>
                        <xs:attribute name="НалКоорТочВрПрМО" use="required">
                          <xs:annotation>
                            <xs:documentation>Применение координации точного времени (UTC) в типовом элементе ДатаВремяВЗТип</xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="xs:string">
                              <xs:length value="1" />
                              <xs:enumeration value="0" />
                              <xs:enumeration value="1" />
                            </xs:restriction>
                          </xs:simpleType>
                        </xs:attribute>
                        <xs:attribute name="ОтметМОПосл" use="required">
                          <xs:annotation>
                            <xs:documentation>Отметка о результате проведения послесменного, послерейсового медицинского осмотра</xs:documentation>
                          </xs:annotation>
                          <xs:simpleType>
                            <xs:restriction base="xs:string">
                              <xs:minLength value="1" />
                              <xs:maxLength value="100" />
                              <xs:enumeration value="Прошел послерейсовый медицинский осмотр" />
                            </xs:restriction>
                          </xs:simpleType>
                        </xs:attribute>
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                  <xs:attribute name="УИД_ПЛ" use="required">
                    <xs:annotation>
                      <xs:documentation>Уникальный идентификатор документа путевого листа</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:minLength value="1" />
                        <xs:maxLength value="36" />
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                  <xs:attribute name="ВидМО" use="required">
                    <xs:annotation>
                      <xs:documentation>Вид медосмотра</xs:documentation>
                    </xs:annotation>
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:length value="1" />
                        <xs:enumeration value="1" />
                        <xs:enumeration value="2" />
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:attribute>
                </xs:complexType>
              </xs:element>
              <xs:element name="ПодпИнфМО" type="ПодписантТип">
                <xs:annotation>
                  <xs:appinfo>
                    <sch:pattern name="Наличие элемента СвДоверЭл в зависимости от значения элемента СпосПодтПолном" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
                      <sch:rule context="ПодпИнфМО">
                        <!--Контроль наличия элемента СвДоверЭл в зависимости от значения элемента СпосПодтПолном-->
                        <sch:assert test="usch:iif( &#xD;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;@СпосПодтПолном=3  ,&#xD;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;count(СвДоверЭл)!=0  , &#xD;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;count(СвДоверЭл)=0 &#xD;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;)">
                          <usch:error code="0400400007" path="СвДоверЭл" value-of-select="count(СвДоверЭл)" xmlns:usch="http://www.unisoftware.ru/schematron-extensions"> Не выполнено условие присутствия (отсутствия) элемента СвДоверЭл при при значении элемента СпосПодтПолном, равном "<usch:value-of select="@СпосПодтПолном" />". </usch:error>
                        </sch:assert>
                      </sch:rule>
                    </sch:pattern>
                  </xs:appinfo>
                  <xs:appinfo>
                    <sch:pattern name="Наличие элемента СвДоверБум в зависимости от значения элемента СпосПодтПолном" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
                      <sch:rule context="ПодпИнфМО">
                        <!--Контроль наличия элемента СвДоверБум в зависимости от значения элемента СпосПодтПолном-->
                        <sch:assert test="usch:iif( &#xD;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;@СпосПодтПолном=5  ,&#xD;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;count(СвДоверБум)!=0  , &#xD;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;count(СвДоверБум)=0 &#xD;&#xA;&#x9;&#x9;&#x9;&#x9;&#x9;&#x9;)">
                          <usch:error code="0400400007" path="СвДоверБум" value-of-select="count(СвДоверБум)" xmlns:usch="http://www.unisoftware.ru/schematron-extensions"> Не выполнено условие присутствия (отсутствия) элемента СвДоверБум при при значении элемента СпосПодтПолном, равном "<usch:value-of select="@СпосПодтПолном" />". </usch:error>
                        </sch:assert>
                      </sch:rule>
                    </sch:pattern>
                  </xs:appinfo>
                  <xs:documentation>Сведения о лице, подписывающем файл обмена информации о результате послесменного, послерейсового медицинского осмотра в электронной форме</xs:documentation>
                </xs:annotation>
              </xs:element>
            </xs:sequence>
            <xs:attribute name="КНД" use="required">
              <xs:annotation>
                <xs:documentation>Код документа по КНД</xs:documentation>
              </xs:annotation>
              <xs:simpleType>
                <xs:restriction base="КНДТип">
                  <xs:enumeration value="1110385" />
                </xs:restriction>
              </xs:simpleType>
            </xs:attribute>
            <xs:attribute name="ДатИнфМО" type="ДатаТип" use="required">
              <xs:annotation>
                <xs:documentation>Дата формирования файла обмена информации о результате послесменного, послерейсового медицинского осмотра</xs:documentation>
              </xs:annotation>
            </xs:attribute>
            <xs:attribute name="ВрИнфМО" type="ВремяТип" use="required">
              <xs:annotation>
                <xs:documentation>Время формирования файла обмена информации о результате послесменного, послерейсового медицинского осмотра</xs:documentation>
              </xs:annotation>
            </xs:attribute>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
      <xs:attribute name="ИдФайл" use="required">
        <xs:annotation>
          <xs:documentation>Идентификатор файла</xs:documentation>
          <xs:documentation>Содержит (повторяет) имя сформированного файла (без расширения)</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:minLength value="1" />
            <xs:maxLength value="255" />
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
      <xs:attribute name="ВерсПрог" use="required">
        <xs:annotation>
          <xs:documentation>Версия программы, с помощью которой сформирован файл</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:maxLength value="40" />
            <xs:minLength value="1" />
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
      <xs:attribute name="ВерсФорм" use="required">
        <xs:annotation>
          <xs:documentation>Версия формата</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:minLength value="1" />
            <xs:maxLength value="5" />
            <xs:enumeration value="5.01" />
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
    </xs:complexType>
  </xs:element>
  <xs:complexType name="ЛицензМОТип">
    <xs:annotation>
      <xs:documentation>Лицензия на проведение предсменных, предрейсовых и послесменных, послерейсовых медицинских осмотров</xs:documentation>
    </xs:annotation>
    <xs:attribute name="Сер" use="required">
      <xs:annotation>
        <xs:documentation>Серия</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:minLength value="1" />
          <xs:maxLength value="60" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="Ном" use="required">
      <xs:annotation>
        <xs:documentation>Номер</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:minLength value="1" />
          <xs:maxLength value="60" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="ДатВыд" type="ДатаТип" use="required">
      <xs:annotation>
        <xs:documentation>Дата выдачи</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="Срок" type="ДатаТип" use="required">
      <xs:annotation>
        <xs:documentation>Срок окончания действия</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="ПодписантТип">
    <xs:annotation>
      <xs:documentation>Сведения о лице, подписывающем информацию отправителя в электронной форме</xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element name="ФИО" type="ФИОТип">
        <xs:annotation>
          <xs:documentation>Фамилия, имя, отчество (при наличии)</xs:documentation>
        </xs:annotation>
      </xs:element>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="СвДоверЭл">
        <xs:annotation>
          <xs:documentation>Сведения о доверенности в машиночитаемом виде, используемой для подтверждения полномочий</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:attribute name="НомДовер" use="required">
            <xs:annotation>
              <xs:documentation>Номер доверенности</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:length value="36" />
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
          <xs:attribute name="ДатаДовер" type="ДатаТип" use="required">
            <xs:annotation>
              <xs:documentation>Дата совершения доверенности</xs:documentation>
            </xs:annotation>
          </xs:attribute>
          <xs:attribute name="ВнНомДовер" use="optional">
            <xs:annotation>
              <xs:documentation>Внутренний регистрационный номер доверенности</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:minLength value="1" />
                <xs:maxLength value="50" />
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
          <xs:attribute name="ДатаВнРегДовер" type="ДатаТип" use="optional">
            <xs:annotation>
              <xs:documentation>Дата внутренней регистрации доверенности</xs:documentation>
            </xs:annotation>
          </xs:attribute>
          <xs:attribute name="ИдСистХран" use="required">
            <xs:annotation>
              <xs:documentation>Идентифицирующая информация об информационной системе, в которой осуществляется хранение доверенности, необходимая для запроса информации из такой информационной системы</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:minLength value="1" />
                <xs:maxLength value="500" />
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
        </xs:complexType>
      </xs:element>
      <xs:element minOccurs="0" maxOccurs="unbounded" name="СвДоверБум">
        <xs:annotation>
          <xs:documentation>Сведения о доверенности в бумажном виде, используемой для подтверждения полномочий</xs:documentation>
        </xs:annotation>
        <xs:complexType>
          <xs:sequence>
            <xs:element minOccurs="0" name="ФИО" type="ФИОТип">
              <xs:annotation>
                <xs:documentation>Фамилия, имя, отчество (при наличии) лица, подписавшего доверенность</xs:documentation>
              </xs:annotation>
            </xs:element>
          </xs:sequence>
          <xs:attribute name="ДатаДовер" type="ДатаТип" use="required">
            <xs:annotation>
              <xs:documentation>Дата совершения доверенности</xs:documentation>
            </xs:annotation>
          </xs:attribute>
          <xs:attribute name="ВнНомДовер" use="required">
            <xs:annotation>
              <xs:documentation>Внутренний регистрационный номер доверенности</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:minLength value="1" />
                <xs:maxLength value="50" />
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
          <xs:attribute name="СвИдДовер" use="optional">
            <xs:annotation>
              <xs:documentation>Сведения, идентифицирующие доверителя</xs:documentation>
            </xs:annotation>
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:minLength value="1" />
                <xs:maxLength value="1000" />
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="Должн" use="optional">
      <xs:annotation>
        <xs:documentation>Должность</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:minLength value="1" />
          <xs:maxLength value="255" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="ТипПодпис" use="optional">
      <xs:annotation>
        <xs:documentation>Тип подписи</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1" />
          <xs:enumeration value="1" />
          <xs:enumeration value="2" />
          <xs:enumeration value="3" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="СпосПодтПолном" use="required">
      <xs:annotation>
        <xs:documentation>Способ подтверждения полномочий на подписание документа</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="1" />
          <xs:enumeration value="1" />
          <xs:enumeration value="2" />
          <xs:enumeration value="3" />
          <xs:enumeration value="4" />
          <xs:enumeration value="5" />
          <xs:enumeration value="6" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="ДопСведПодп" use="optional">
      <xs:annotation>
        <xs:documentation>Дополнительные сведения</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:minLength value="1" />
          <xs:maxLength value="255" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="ФИОТип">
    <xs:annotation>
      <xs:documentation>Фамилия, имя, отчество физического лица</xs:documentation>
    </xs:annotation>
    <xs:attribute name="Фамилия" use="required">
      <xs:annotation>
        <xs:documentation>Фамилия</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:minLength value="1" />
          <xs:maxLength value="60" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="Имя" use="required">
      <xs:annotation>
        <xs:documentation>Имя</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:minLength value="1" />
          <xs:maxLength value="60" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="Отчество" use="optional">
      <xs:annotation>
        <xs:documentation>Отчество</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:minLength value="1" />
          <xs:maxLength value="60" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:simpleType name="ИННФЛТип">
    <xs:annotation>
      <xs:documentation>Идентификационный номер налогоплательщика - физического лица</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:length value="12" />
      <xs:pattern value="([0-9]{1}[1-9]{1}|[1-9]{1}[0-9]{1})[0-9]{10}" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="КНДТип">
    <xs:annotation>
      <xs:documentation>Код из Классификатора налоговой документации</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:length value="7" />
      <xs:pattern value="[0-9]{7}" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="СПДУЛТип">
    <xs:annotation>
      <xs:documentation>Коды Справочника видов документов, удостоверяющих личность налогоплательщика</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:length value="2" />
      <xs:pattern value="[0-9]{2}" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="СПДУЛШТип">
    <xs:annotation>
      <xs:documentation>Шаблон серии, номера из Справочника видов документов, удостоверяющих личность налогоплательщика</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="1" />
      <xs:maxLength value="25" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="ВремяТип">
    <xs:annotation>
      <xs:documentation>Время в формате ЧЧ:ММ:СС</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:length value="8" />
      <xs:pattern value="([0-1]{1}[0-9]{1}|2[0-3]{1}):([0-5]{1}[0-9]{1}):([0-5]{1}[0-9]{1})" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="ДатаВремяВЗТип">
    <xs:annotation>
      <xs:documentation>Дата и время в формате ДД.ММ.ГГГГTЧЧ:ММ:CC+-ЧЧ:ММ</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:length value="25" />
      <xs:pattern value="(((((0[1-9]{1}|1[0-9]{1}|2[0-8]{1})\.(0[1-9]{1}|1[0-2]{1}))|((29|30)\.(01|0[3-9]{1}|1[0-2]{1}))|(31\.(01|03|05|07|08|10|12)))\.((19|20)[0-9]{2}))|(29\.02\.((19|20)(((0|2|4|6|8)(0|4|8))|((1|3|5|7|9)(2|6))))))([T]([0-1]{1}[0-9]{1}|2[0-3]{1}):([0-5]{1}[0-9]{1}):([0-5]{1}[0-9]{1})([+|-]([01][0-9])[:]([0-5][0-9])))" />
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="ДатаТип">
    <xs:annotation>
      <xs:documentation>Дата в формате ДД.ММ.ГГГГ (01.01.1900 - 31.12.2099)</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:length value="10" />
      <xs:pattern value="(((0[1-9]{1}|[1-2]{1}[0-9]{1})\.(0[1-9]{1}|1[0-2]{1}))|((30)\.(01|0[3-9]{1}|1[0-2]{1}))|((31)\.(01|03|05|07|08|10|12)))\.(19[0-9]{2}|20[0-9]{2})" />
    </xs:restriction>
  </xs:simpleType>
</xs:schema>