<?xml version="1.0" encoding="windows-1251"?>
<!-- edited with XMLSpy v2007 sp2 (http://www.altova.com) by VI (GNIVC FNS RF) -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:sch="http://purl.oclc.org/dsdl/schematron" xmlns:usch="http://www.unisoftware.ru/schematron-extensions" xmlns:sql="urn:schemas-microsoft-com:mapping-schema" elementFormDefault="qualified" attributeFormDefault="unqualified">
	<xs:element name="Файл">
		<xs:annotation>
			<!---****************************************************************************************************************************************************************************-->
			<xs:appinfo>
				<sch:pattern name="Проверка имени файла на соответствие значению атрибута @ИдФайл">
					<sch:rule context="Файл">
						<!--  Проверка имени файла на соответствие ИдФайл                                                                             -->
						<sch:assert test="usch:getFileName() = @ИдФайл">
							<usch:error code="0400400007" path="@ИдФайл" value-of-select="@ИдФайл" doc-id-path="usch:getFileName()" doc-id-caption="Файл">Имя файла обмена "<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:choice>
										<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:choice>
								</xs:complexType>
							</xs:element>
							<xs:element name="Подписант">
								<xs:annotation>
									<xs:documentation>Сведения о подписанте</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:sequence>
										<xs:element name="ФИО" type="ФИОТип" minOccurs="0">
											<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="1000"/>
											</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="128"/>
											</xs:restriction>
										</xs:simpleType>
									</xs:attribute>
								</xs:complexType>
							</xs:element>
							<xs:element name="АктСвер" maxOccurs="unbounded">
								<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:choice>
														<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:choice>
													<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="20"/>
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
											</xs:complexType>
										</xs:element>
										<xs:element name="СвДолжНО" minOccurs="0">
											<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: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="20"/>
														</xs:restriction>
													</xs:simpleType>
												</xs:attribute>
											</xs:complexType>
										</xs:element>
										<xs:element name="НалАкт" maxOccurs="unbounded">
											<xs:annotation>
												<xs:documentation>Перечень налогов в  акте сверки расчетов по налогам, сборам, пеням, штрафам, процентам</xs:documentation>
											</xs:annotation>
											<xs:complexType>
												<xs:choice>
													<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:choice>
												<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="80"/>
														</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="СодАкт" maxOccurs="unbounded">
											<xs:annotation>
												<xs:documentation>Содержание акта сверки расчетов по налогам, сборам, пеням, штрафам, процентам</xs:documentation>
											</xs:annotation>
											<xs:complexType>
												<xs:sequence>
													<xs:choice>
														<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:choice>
													<xs:element name="Раздел2">
														<xs:annotation>
															<xs:documentation>Раздел 2</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="ЗадолжВсего" type="Сведения">
																				<xs:annotation>
																					<xs:documentation>Задолженность, всего</xs:documentation>
																				</xs:annotation>
																			</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: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:element name="РеструкДолг" type="Сведения">
																							<xs:annotation>
																								<xs:documentation>Реструктуризированная задолженность</xs:documentation>
																							</xs:annotation>
																						</xs:element>
																					</xs:sequence>
																				</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: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:element name="РеструкДолг" type="Сведения">
																							<xs:annotation>
																								<xs:documentation>Реструктуризированная задолженность</xs:documentation>
																							</xs:annotation>
																						</xs:element>
																					</xs:sequence>
																				</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: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:element name="РеструкДолг" type="Сведения">
																							<xs:annotation>
																								<xs:documentation>Реструктуризированная задолженность</xs:documentation>
																							</xs:annotation>
																						</xs:element>
																					</xs:sequence>
																				</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:element name="ПриосПл" type="Сведения">
																							<xs:annotation>
																								<xs:documentation>приостановленные к взысканию платежи</xs:documentation>
																							</xs:annotation>
																						</xs:element>
																					</xs:sequence>
																				</xs:complexType>
																			</xs:element>
																			<xs:element name="ПроцПолБС" type="Сведения">
																				<xs:annotation>
																					<xs:documentation>проценты за пользование бюджетными средствами </xs:documentation>
																				</xs:annotation>
																			</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: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: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:complexType>
																			</xs:element>
																		</xs:sequence>
																	</xs:complexType>
																</xs:element>
																<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 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: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:element name="Процент" type="Сведения">
																							<xs:annotation>
																								<xs:documentation>Проценты за пользование бюджетными средствами</xs:documentation>
																							</xs:annotation>
																						</xs:element>
																					</xs:sequence>
																				</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: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:element name="Процент" type="Сведения">
																							<xs:annotation>
																								<xs:documentation>Проценты за пользование бюджетными средствами</xs:documentation>
																							</xs:annotation>
																						</xs:element>
																					</xs:sequence>
																				</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:element name="штрафы" type="Сведения">
																							<xs:annotation>
																								<xs:documentation>Налоговые санкции</xs:documentation>
																							</xs:annotation>
																						</xs:element>
																					</xs:sequence>
																				</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: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: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: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: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: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: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: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: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: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: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: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:element name="Проц" type="Сведения">
																							<xs:annotation>
																								<xs:documentation>Проценты за использование бюджетными средствами</xs:documentation>
																							</xs:annotation>
																						</xs:element>
																					</xs:sequence>
																				</xs:complexType>
																			</xs:element>
																			<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: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: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: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: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: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: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:complexType>
																			</xs:element>
																		</xs:sequence>
																	</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="Налог">
																				<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: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:element name="РестрДолг" type="Сведения">
																							<xs:annotation>
																								<xs:documentation>Реструктуризированная задолженность</xs:documentation>
																							</xs:annotation>
																						</xs:element>
																					</xs:sequence>
																				</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: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:element name="РеструкДолг" type="Сведения">
																							<xs:annotation>
																								<xs:documentation>Реструктуризированная задолженность</xs:documentation>
																							</xs:annotation>
																						</xs:element>
																					</xs:sequence>
																				</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: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:element name="ШтрРестрДолг" type="Сведения">
																							<xs:annotation>
																								<xs:documentation>Реструктуризированная задолженность</xs:documentation>
																							</xs:annotation>
																						</xs:element>
																					</xs:sequence>
																				</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:element name="ПриосВзПлат" type="Сведения">
																							<xs:annotation>
																								<xs:documentation>Приостановленные к взысканию платежи</xs:documentation>
																							</xs:annotation>
																						</xs:element>
																					</xs:sequence>
																				</xs:complexType>
																			</xs:element>
																			<xs:element name="ПроцПолБС" type="Сведения">
																				<xs:annotation>
																					<xs:documentation>Проценты за пользование бюджетными средствами по графикам действующих отсрочек, рассрочек, реструктуризации, по утвержденным графикам уплаты процентов в процедурах финансового оздоровления и внешнего управления (задолженность, переплата)</xs:documentation>
																				</xs:annotation>
																			</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: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: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:complexType>
																			</xs:element>
																		</xs:sequence>
																	</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: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:element name="Процент" type="Сведения">
																				<xs:annotation>
																					<xs:documentation>Проценты за пользование бюджетными средствами по графикам действующих отсрочек, рассрочек, реструктуризации, по утвержденным графикам уплаты процентов в процедурах финансового оздоровления и внешнего управления (задолженность, переплата).</xs:documentation>
																				</xs:annotation>
																			</xs:element>
																		</xs:sequence>
																	</xs:complexType>
																</xs:element>
															</xs:sequence>
														</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="80"/>
														</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:annotation>
										<xs:simpleType>
											<xs:restriction base="xs:string">
												<xs:minLength value="1"/>
												<xs:maxLength value="10"/>
											</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:documentation>
Дата в формате ДД.ММ.ГГГГ</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="ДатаКонПер" type="ДатаТип" use="required">
										<xs:annotation>
											<xs:documentation>Дата конца периода, за который производится сверка расчетов по налогам, сборам, пеням, штрафам, процентам</xs:documentation>
											<xs:documentation>
Дата в формате ДД.ММ.ГГГГ</xs:documentation>
										</xs:annotation>
									</xs:attribute>
									<xs:attribute name="ДатаСост" type="ДатаТип" use="required">
										<xs:annotation>
											<xs:documentation>Дата, по состоянию на которую произведена сверка расчетов по налогам, сборам, пеням, штрафам, процентам</xs:documentation>
											<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:annotation>
							<xs:simpleType>
								<xs:restriction base="КНДТип">
									<xs:enumeration value="1160070"/>
								</xs:restriction>
							</xs:simpleType>
						</xs:attribute>
						<xs:attribute name="ДатаДок" type="ДатаТип" use="optional">
							<xs:annotation>
								<xs:documentation>Дата формирования документа</xs:documentation>
								<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="150"/>
					</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: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.04"/>
					</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="150"/>
					</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="optional">
			<xs:annotation>
				<xs:documentation>Данные налогового органа</xs:documentation>
			</xs:annotation>
			<xs:simpleType>
				<xs:restriction base="xs:decimal">
					<xs:totalDigits value="17"/>
					<xs:fractionDigits value="2"/>
				</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="1000"/>
				</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:sequence>
		<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:attribute name="Индекс" use="optional">
			<xs:annotation>
				<xs:documentation>Индекс</xs:documentation>
			</xs:annotation>
			<xs:simpleType>
				<xs:restriction base="xs:string">
					<xs:length value="6"/>
					<xs:pattern value="[0-9]{6}"/>
				</xs:restriction>
			</xs:simpleType>
		</xs:attribute>
		<xs:attribute name="КодРегион" use="required">
			<xs:annotation>
				<xs:documentation>Код региона</xs:documentation>
			</xs:annotation>
			<xs:simpleType>
				<xs:restriction base="CCРФТип"/>
			</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="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:maxLength value="50"/>
					<xs:minLength value="1"/>
				</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="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="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="20"/>
				</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="20"/>
				</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="20"/>
				</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:complexType name="JavaScript">
		<xs:annotation>
			<xs:appinfo>
				<!--**********************************************************************************************************************************************-->
				<!--                                                       Функция получения текущей даты                                                     -->
				<usch:jscript><![CDATA[ 
									function getDateCurrent()
					{

						var DateCurrent = new Date();                                                           	 // получить объект - текущую дату
						var dd = DateCurrent.getDate();
						var dd1 = 0
						if (dd <= "9")
						{dd = "0" + dd;}
						var mm = DateCurrent.getMonth() + 1;
						if (mm <= "9")
						{mm = "0" + mm;}
						var yyyy = DateCurrent.getFullYear()
						var dmy = dd +"." + mm + "."  +yyyy;
						{return dmy ;}																						
					}
					]]></usch:jscript>
				<!--**********************************************************************************************************************************************-->
				<!--**********************************************************************************************************************************************-->
				<!--                                                       Функция сравнения даты с текущей датой                                                       -->
				<usch:jscript><![CDATA[ 
									function checkDateCurrent(context)
					{
						var value = getNextValue(context)
						var Param = value.split(".")                                                             // получить дату и разделить ее на подстроки дд мм ггггг  
						var DateParam = new Date (Param [2], Param [1] - 1, Param [0])        	 //Создать объект даты в формате гггг мм дд
						var DateCurrent = new Date()                                                           	 // получить текущую дату
							if ( Date.parse(DateCurrent) >= Date.parse(DateParam)) 						// Дата документа меньше текущей даты?
						{return true;}																						//Да
							else
						{return false;}																						//Нет
					}
					]]></usch:jscript>
				<usch:jscript>
					<!--**********************************************************************************************************************************************-->
					<!--                          Функция проверки контрольного числа СНИЛС                                                   --><![CDATA[ 
										function checkSNILS(context)
					{
							var value = getNextValue(context)											      //Получить СНИЛС
							var part = value.substr(0,3) + value.substr(4,3) + value.substr(8,3)    //Получить 9 цифр СНИЛС, убрав знаки тире	
							var ContrNum = value.substr(12,2)											      //Выделить КЧ из СНИЛС
						if (part <= 001001998)
							{return true;}
							var summa = 0, leng =9;	
					    for (var count = 0; count < 9; count++) 
							{summa += part.substr(count,1) * leng--;}
							summa = (summa % 101) % 100;						//Если summa = (100 или 101) то КЧ = 00
						if (ContrNum == summa)																//КЧ совпадают   
							{return true;}
						else
							{return false;}
					}
					]]></usch:jscript>
				<!--****************************************************************************************************************************************-->
				<!--********* Функция проверки по шаблону серии и номера документа, удостоверяющего личность **********-->
				<usch:jscript><![CDATA[ 
// -------------------------- Функция проверки по шаблону серии и номера документа, удостоверяющего личность-----------------------
function checkDocument(value, template) {
	if (!value || !template) {
		return ('');
	}
	template = getNextValue(template);
	value = getNextValue(value);

	value = repairString(value).toUpperCase();
	var feedback = new Array(value, template, value);
	
	if (template.indexOf('R') ==0 && value.indexOf('-') >0) {
		feedback = USSR(feedback);	// Паспорт СССР, Св-во о рождении (первая буква в шаблоне "R")
	}
	
	if (feedback) {
		value	 = feedback[2];
		template = feedback[1];
		feedback = feedback[0];
		
		var textlen = feedback.length;
		var tempLen = template.length;
		
		var error = true;
		if (template.indexOf('S') >-1 && textlen <= tempLen) {
			error = false;
		} else if (textlen >= CHRTRAN(template,'0').length && textlen <= tempLen) {
			error = false;
			var symbol;
			var regNumb = new RegExp(/\d/);
			var regChar = new RegExp(/[А-ЯЁ]/);
			
			for (var n=0; n < tempLen; n++) {
				symbol = feedback.slice(n,n+1);
				switch (template.slice(n,n+1)) {
					case ('-'): if (symbol !='-') {error = true;}			break;
					case (' '): if (symbol !=' ') {error = true;}			break;
					case ('Б'): if (!regChar.test(symbol)) {error = true;}	break;
					case ('0'): if (!regNumb.test(symbol)) {error = true;}	break;
					case ('9'): if (!regNumb.test(symbol)) {error = true;}
				}
				if (error || textlen == n+1) {break;}
			}
		}
		/*if (error) {
			//alert('Введенные Вами серия и номер документа не соответствуют формату!');
			alert('Неверная структура введённого значения. Не соответствует шаблону ['+ template +'].');
		}*/
	}
	
	return (!error);
}
					]]></usch:jscript>
				<!--**********************************************************************************************************************************************-->
// Приведение строки в божеский вид. --------------------------------------------------------
				<usch:jscript><![CDATA[ 
function repairString(expression, len) {
	//return expression.replace(/^\s+|\s+$/g,'').replace(/\n|\r|\s\s+/g,' ');
	expression = removeDS(rTrim(lTrim(removeCR(expression.toString()))));
	len = parseInt(len);
	if (!isNaN(len)) {
		expression = expression.slice(0,len)
	}
	return (expression);
}
					]]></usch:jscript>
				<!--**********************************************************************************************************************************************-->
// Замена символов перевода строки и возврата каретки, символом пробела. --------------------
				<usch:jscript><![CDATA[ 
function removeCR(expression) {
	return expression.replace(/\n|\r/g,' ');		// carriage return and line feed
}
					]]></usch:jscript>
				<!--**********************************************************************************************************************************************-->
// Удаление повторяющихся пробелов. ---------------------------------------------------------
				<usch:jscript><![CDATA[ 
function removeDS(expression) {
	return expression.replace(/\s\s+/g,' ');		// double space
}
					]]></usch:jscript>
				<!--**********************************************************************************************************************************************-->
// Удаление начальных пробелов. -------------------------------------------------------------
				<usch:jscript><![CDATA[ 
function lTrim(expression) {
	return expression.replace(/^\s+/,'');
}
					]]></usch:jscript>
				<!--**********************************************************************************************************************************************-->
// Удаление конечных пробелов. --------------------------------------------------------------
				<usch:jscript><![CDATA[ 
function rTrim(expression) {
	return expression.replace(/\s+$/,'');
}
					]]></usch:jscript>
				<!--**********************************************************************************************************************************************-->
// Замена символов
				<usch:jscript><![CDATA[ 
function CHRTRAN(cSearched, cExpressionSought, cReplacement) {
	if (cSearched) {
		try {
			if (cExpressionSought) {
				var value = cSearched.toString();
				var expr = cExpressionSought.toString();
				var repl ='';
				if (cReplacement) {repl = cReplacement.toString();}
				
				var result ='',   part ='',   amount =0;
				var exPart = expr.split('');
				
				for (var j=0; j < exPart.length; j++) {
					result ='';
					part = value.split(exPart[j]);
					amount = part.length -1;
					for (var i=0; i < amount; i++) {
						result += part[i] + repl.slice(j,j+1);
					}
					result += part[amount];
					value = result;
				}
				return (value);
			}
		} catch (e) {alert(e.message); throw e;}
		
		return (cSearched);
	}
}
					]]></usch:jscript>
				<!--**********************************************************************************************************************************************-->
// Паспорт гражданина СССР, Свидетельство о рождении (первая буква в шаблоне "R")
				<usch:jscript><![CDATA[ 
function USSR(arValue) {
	var feedback = null;
			
	var part = arValue[0].split('-');
	var numb = parseInt(part[0]);
	if (numb) {
		numb = ArabicToRoman(numb);
	} else {
		part[0] = CHRTRAN(part[0],'СМХ','CMX');
		if (part[0] == ArabicToRoman(RomanToArabic(part[0]))) {
			numb = part[0];
		} else {
			var warning ='Введенное Вами римское число неверно!\nМожно ввести серию равным по величине';
			warning +=' арабским числом или использовать латинские буквы I,V,X,L,M,C и русские Х,М,С';
			alert('Введенное Вами римское число неверно!');
		}
	}
	
	if (numb) {
		feedback = new Array(3);
		feedback[0] = STRTRAN(arValue[0], part[0] +'-', '', 1, 1);	// остаток значения
		feedback[1] = STRTRAN(arValue[1], 'R-', '', 1, 1);			// остаток шаблона
		feedback[2] = STRTRAN(arValue[0], part[0], numb, 1, 1);		// полное значение
	}
	
	return (feedback);
}
					]]></usch:jscript>
				<!--**********************************************************************************************************************************************-->
// перевод Римских цифр в Арабские
					
				<usch:jscript><![CDATA[ 
function RomanToArabic(value) {
	var feedback =0;
	var curValue =0;
	var next;
	for (var n=0; n < value.length ; n++) {
		next = value.slice(n+1,n+2);
		switch (value.slice(n,n+1)) {
			case ('I'): feedback += (next && 'VX'.indexOf(next) >=0 ?-1 :1);		break;
			case ('V'): feedback += 5;												break;
			case ('X'): feedback += (next && 'LC'.indexOf(next) >=0 ?-10 :10);		break;
			case ('L'): feedback += 50;												break;
			case ('C'): feedback += (next && 'DM'.indexOf(next) >=0 ?-100 :100);	break;
			case ('D'): feedback += 500;											break;
			case ('M'): feedback += 1000;
		}
	}
	
	return (feedback);
}
					]]></usch:jscript>
				<!--**********************************************************************************************************************************************-->
// перевод Арабских цифр в Римские
				<usch:jscript><![CDATA[ 
function ArabicToRoman(value) {
	var feedback ='';
	var curValue ='';
	var part = PADL(value,4).split('');
	var arTemp = new Array();
	arTemp[0]=['M','MM','MMM'];
	arTemp[1]=['C','CC','CCC','CD','D','DC','DCC','DCCC','CM'];
	arTemp[2]=['X','XX','XXX','XL','L','LX','LXX','LXXX','XC'];
	arTemp[3]=['I','II','III','IV','V','VI','VII','VIII','IX'];
	
	for (var n=0; n < arTemp.length; n++) {
		if (arTemp[n].length >= part[n]) {
			curValue = arTemp[n][part[n]-1];
			if (curValue) {feedback += curValue;}
		}
	}
	
	return (feedback);
}
					]]></usch:jscript>
				<!--**********************************************************************************************************************************************-->
				<usch:jscript><![CDATA[ 
function STRTRAN(cSearched, cExpressionSought, cReplacement, nStartOccurrence, nNumberOfOccurrences) {
	try {
		if (cSearched && cExpressionSought) {
			var value = cSearched.toString();
			var expr = cExpressionSought.toString();
			var repl ='';
			if (cReplacement) {repl = cReplacement.toString();}
			
			var start = conversionToPositiveNumber(nStartOccurrence);
			var count = conversionToPositiveNumber(nNumberOfOccurrences);
			
			var result ='';
			var _tally =0;
			var part = value.split(expr);
			
			var amount = part.length -1;
			for (var i=0; i < amount; i++) {
				if (start) {
					if (i >= start -1) {
						_tally++;
						if (count && _tally > count) {result += part[i] + expr;}	// без изменений
						else						 {result += part[i] + repl;}	// замена
					} else							 {result += part[i] + expr;}	// без изменений
				} else								 {result += part[i] + repl;}	// замена
			}
			
			return (result += part[amount]);										// ВЫХОД с заменой ->
		}
	} catch (e) {alert('Процедура "STRTRAN" вызвала ошибку.\n'+ e.message); throw e;}
	
	return (cSearched);																// ВЫХОД без изменений->
}
					]]></usch:jscript>
				<!--**********************************************************************************************************************************************-->
				<usch:jscript><![CDATA[ 
function conversionToPositiveNumber(value) {
	var feedback =0;
	if (value) {
		value = parseInt(value);
		if (value) {feedback = (value < 0) ?0 - value :value;}
	}
	return (feedback);
}
					]]></usch:jscript>
				<!--**********************************************************************************************************************************************-->
// Добавление ведущих символов. -------------------------------------------------------------
				<usch:jscript><![CDATA[ 
function PADL(value, len, symbol) {
	var feedback ='';
	value = value.toString();
	var lenVal = value.length;
	var size = len ?'len' :'lenVal';
	symbol = symbol ?symbol.slice(0,1) :' ';
	len = len ?Number(len) :0;	len = isNaN(len) ?0 :len;
	if (lenVal < len) {
		for (var i=0; i < len - lenVal; i++) {feedback += symbol;}
		feedback += value
	} else {feedback = value.slice(0,eval(size));}
	return (feedback);
}
					]]></usch:jscript>
				<!--**********************************************************************************************************************************************-->
			</xs:appinfo>
			<xs:documentation>Функции JavaScript</xs:documentation>
		</xs:annotation>
	</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="10"/>
			<xs:pattern value="([0-9]{1}[1-9]{1}|[1-9]{1}[0-9]{1})[0-9]{8}"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="КППТип">
		<xs:annotation>
			<xs:documentation>Код причины постановки на учет (КПП) - 5 и 6 знаки от 0-9 и A-Z</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:length value="9"/>
			<xs:pattern value="([0-9]{1}[1-9]{1}|[1-9]{1}[0-9]{1})([0-9]{2})([0-9A-Z]{2})([0-9]{3})"/>
		</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="4"/>
			<xs:pattern value="[0-9]{4}"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="КБКТип">
		<xs:annotation>
			<xs:documentation>Код из Классификатора доходов в бюджет </xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:length value="20"/>
			<xs:pattern value="[0-9]{20}"/>
		</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-9]{8}"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="ОКАТОТип">
		<xs:annotation>
			<xs:documentation>Коды из Классификатора объектов административно-территориального деления</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:length value="11"/>
			<xs:pattern value="[0-9]{11}"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="ОКВЭДТип">
		<xs:annotation>
			<xs:documentation>Код из Общероссийского классификатора видов экономической деятельности</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="8"/>
			<xs:minLength value="2"/>
			<xs:pattern value="[0-9]{2}"/>
			<xs:pattern value="[0-9]{2}\.[0-9]{1}"/>
			<xs:pattern value="[0-9]{2}\.[0-9]{2}"/>
			<xs:pattern value="[0-9]{2}\.[0-9]{2}\.[0-9]{1}"/>
			<xs:pattern value="[0-9]{2}\.[0-9]{2}\.[0-9]{2}"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="ОКЕИТип">
		<xs:annotation>
			<xs:documentation>Код из Общероссийского классификатора единиц измерения</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:length value="3"/>
			<xs:pattern value="[0-9]{3}"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="CCРФТип">
		<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>Дата в формате ДД.ММ.ГГГГ (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>
