<?xml version="1.0" encoding="windows-1251"?>
<!-- edited with XMLSpy v2013 (http://www.altova.com) by  () -->
<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: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="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:element>
									</xs:sequence>
									<xs:attribute name="ОКСМ" type="ОКСМТип" use="required">
										<xs:annotation>
											<xs:documentation>Код страны</xs:documentation>
										</xs:annotation>
									</xs:attribute>
								</xs:complexType>
							</xs:element>
							<xs:element name="Подписант">
								<xs:annotation>
									<!---*******************************************************************************************************************************************************-->
									<!---*******************************************************************************************************************************************************-->
									<!---*******************************************************************************************************************************************************-->
									<xs:appinfo>
										<sch:pattern name="Присутствие сведений о представителе в  зависимости  от  значения  ПрПодп">
											<sch:rule context="Подписант">
												<!-- Контроль обязательности присутствия Сведений о представителе налогоплательщика в зависимости от значения ПрПодп -->
												<sch:assert test="(СвПред and @ПрПодп=2 )or(@ПрПодп=1)">
													<usch:error code="0400300003" path="@ПрПодп" value-of-select="@ПрПодп">Не выполнено условие присутствия элемента Файл/Документ/Подписант/СвПред при значении элемента ПрПодп, равном "<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="ФИО" type="ФИОТип">
											<xs:annotation>
												<xs:documentation>Фамилия, имя, отчество </xs:documentation>
											</xs:annotation>
										</xs:element>
										<xs:element name="СвПред" minOccurs="0">
											<xs:annotation>
												<xs:documentation>Сведения о представителе налогоплательщика, налогового агента</xs:documentation>
											</xs:annotation>
											<xs:complexType>
												<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: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="120"/>
														</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:length value="1"/>
												<xs:enumeration value="1"/>
												<xs:enumeration value="2"/>
											</xs:restriction>
										</xs:simpleType>
									</xs:attribute>
								</xs:complexType>
							</xs:element>
							<xs:element name="РеестрОп" maxOccurs="unbounded">
								<xs:annotation>
									<xs:documentation>Реестр операций с указанием информации о выполнении условий, предусмотренных абзацами четырнадцатым – семнадцатым подпункта 4 пункта 1 статьи 148 Налогового кодекса Российской Федерации, а также стоимости услуг, указанных в пункте 1 статьи 174.2 Налогового кодекса Российской Федерации</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:sequence>
										<xs:element name="ИнфКодУслуг" maxOccurs="unbounded">
											<xs:annotation>
												<!---***********************************************************************************************************************************************************************-->
												<xs:appinfo>
													<sch:pattern name="Присутствие элемента ИтогСтоимУслугР или ИтогСтоимУслугНеОблР">
														<sch:rule context="ИнфКодУслуг">
															<!-- Контроль обязательности присутствия элемента ИтогСтоимУслугР или ИтогСтоимУслугНеОблР" -->
															<sch:assert test="(@ИтогСтоимУслугР and @ИтогСтоимУслугНеОблР) or (@ИтогСтоимУслугР and not(@ИтогСтоимУслугНеОблР)) or (not(@ИтогСтоимУслугР) and @ИтогСтоимУслугНеОблР)">
																<usch:error code="0400300003" path="" 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="ИнфУслуг" maxOccurs="unbounded">
														<xs:annotation>
															<!---***********************************************************************************************************************************************************************-->
															<xs:appinfo>
																<sch:pattern name="Проверка наличия НаимИнОрг">
																	<sch:rule context="ИнфУслуг">
																		<!--             Обязательность присутствия ПрИзм при ПрПост=3        -->
																		<sch:assert test="(../../@ПрИО=1 and not(@НаимИнОрг)) or (../../@ПрИО=2 and @НаимИнОрг) ">
																			<usch:error code="0400300003" path="../../@ПрИО" value-of-select="../../@ПрИО">
                                                                        Не выполнено условие присутствия (отсутствие) элемента Файл/Документ/РеестрОп/ИнфКодУслуг/ИнфУслуг/НаимИнОрг при значении элемента ПрИО, равном "<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:appinfo>
																			<sch:pattern name="Проверка наличия информации, подтверждающая, что местом осуществления деятельности покупателя услуги признается территория Российской Федерации ">
																				<sch:rule context="ИнфПодтвРФ">
																					<!--         Обязательность присутствия одного из  признаков       -->
																					<sch:assert test="(((not(ЦифрКодСтр)) and (not(БИКФЛПокуп)) and (not(НаимОперЭДС)) and (not(СетАдресДомен)) and (МеждТелКод)) or
																		                            ((not(ЦифрКодСтр)) and (not(БИКФЛПокуп)) and (not(НаимОперЭДС)) and (СетАдресДомен) and (not(МеждТелКод))) or
																		                            ((not(ЦифрКодСтр)) and (not(БИКФЛПокуп)) and (not(НаимОперЭДС)) and (СетАдресДомен) and (МеждТелКод)) or
																		                            ((not(ЦифрКодСтр)) and (not(БИКФЛПокуп)) and (НаимОперЭДС) and (not(СетАдресДомен)) and (not(МеждТелКод))) or
																		                            ((not(ЦифрКодСтр)) and (not(БИКФЛПокуп)) and (НаимОперЭДС) and (not(СетАдресДомен)) and (МеждТелКод)) or
																		                            ((not(ЦифрКодСтр)) and (not(БИКФЛПокуп)) and (НаимОперЭДС) and (СетАдресДомен) and (not(МеждТелКод))) or
																		                            ((not(ЦифрКодСтр)) and (not(БИКФЛПокуп)) and (НаимОперЭДС) and (СетАдресДомен) and (МеждТелКод)) or
																		                            
																		                            ((not(ЦифрКодСтр)) and (БИКФЛПокуп) and (not(НаимОперЭДС)) and (not(СетАдресДомен)) and (not(МеждТелКод))) or
																		                            ((not(ЦифрКодСтр)) and (БИКФЛПокуп) and (not(НаимОперЭДС)) and (СетАдресДомен) and (not(МеждТелКод))) or
																		                            ((not(ЦифрКодСтр)) and (БИКФЛПокуп) and (not(НаимОперЭДС)) and (СетАдресДомен) and (МеждТелКод)) or
																		                            ((not(ЦифрКодСтр)) and (БИКФЛПокуп) and (not(НаимОперЭДС)) and (not(СетАдресДомен)) and (МеждТелКод)) or
																		                            ((not(ЦифрКодСтр)) and (БИКФЛПокуп) and (НаимОперЭДС) and (not(СетАдресДомен)) and (not(МеждТелКод))) or
																		                            ((not(ЦифрКодСтр)) and (БИКФЛПокуп) and (НаимОперЭДС) and (not(СетАдресДомен)) and (МеждТелКод)) or
																		                            ((not(ЦифрКодСтр)) and (БИКФЛПокуп) and (НаимОперЭДС) and (СетАдресДомен) and (not(МеждТелКод))) or
																		                            ((not(ЦифрКодСтр)) and (БИКФЛПокуп) and (НаимОперЭДС) and (СетАдресДомен) and (МеждТелКод)) or
																		                            
																		                            ((ЦифрКодСтр) and (not(БИКФЛПокуп)) and (not(НаимОперЭДС)) and (not(СетАдресДомен)) and (not(МеждТелКод))) or
																		                            ((ЦифрКодСтр) and (not(БИКФЛПокуп)) and (not(НаимОперЭДС)) and (СетАдресДомен) and (not(МеждТелКод))) or
																		                            ((ЦифрКодСтр) and (not(БИКФЛПокуп)) and (not(НаимОперЭДС)) and (СетАдресДомен) and (МеждТелКод)) or
																		                            ((ЦифрКодСтр) and (not(БИКФЛПокуп)) and (not(НаимОперЭДС)) and (not(СетАдресДомен)) and (МеждТелКод)) or
																		                            ((ЦифрКодСтр) and (not(БИКФЛПокуп)) and (НаимОперЭДС) and (not(СетАдресДомен)) and (not(МеждТелКод))) or
																		                            ((ЦифрКодСтр) and (not(БИКФЛПокуп)) and (НаимОперЭДС) and (not(СетАдресДомен)) and (МеждТелКод)) or
																		                            ((ЦифрКодСтр) and (not(БИКФЛПокуп)) and (НаимОперЭДС) and (СетАдресДомен) and (not(МеждТелКод))) or
																		                            ((ЦифрКодСтр) and (not(БИКФЛПокуп)) and (НаимОперЭДС) and (СетАдресДомен) and (МеждТелКод)) or
																		                            
																		                            ((ЦифрКодСтр) and (БИКФЛПокуп) and (not(НаимОперЭДС)) and (not(СетАдресДомен)) and (not(МеждТелКод))) or
																		                            ((ЦифрКодСтр) and (БИКФЛПокуп) and (not(НаимОперЭДС)) and (СетАдресДомен) and (not(МеждТелКод))) or
																		                            ((ЦифрКодСтр) and (БИКФЛПокуп) and (not(НаимОперЭДС)) and (СетАдресДомен) and (МеждТелКод)) or
																		                            ((ЦифрКодСтр) and (БИКФЛПокуп) and (not(НаимОперЭДС)) and (not(СетАдресДомен)) and (МеждТелКод)) or
																		                            ((ЦифрКодСтр) and (БИКФЛПокуп) and (НаимОперЭДС) and (not(СетАдресДомен)) and (not(МеждТелКод))) or
																		                            ((ЦифрКодСтр) and (БИКФЛПокуп) and (НаимОперЭДС) and (not(СетАдресДомен)) and (МеждТелКод)) or
																		                            ((ЦифрКодСтр) and (БИКФЛПокуп) and (НаимОперЭДС) and (СетАдресДомен) and (not(МеждТелКод))) or
																		                            ((ЦифрКодСтр) and (БИКФЛПокуп) and (НаимОперЭДС) and (СетАдресДомен) and (МеждТелКод)))">
																						<usch:error code="0400300003" path="" value-of-select="">
                                                                          Отсутствует информация, подтверждающая, что местом осуществления деятельности покупателя услуги признается территория Российской Федерации (графы 9-10) 
                                                                   </usch:error>
																					</sch:assert>
																				</sch:rule>
																			</sch:pattern>
																		</xs:appinfo>
																		<!---***********************************************************************************************************************************************************************-->
																		<xs:documentation>Информация о выполнении условий, предусмотренных абзацами четырнадцатым – семнадцатым подпункта 4 пункта 1 статьи 148 Налогового кодекса Российской Федерации</xs:documentation>
																	</xs:annotation>
																	<xs:complexType>
																		<xs:sequence>
																			<xs:element name="ЦифрКодСтр" minOccurs="0">
																				<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="2"/>
																								<xs:enumeration value="01"/>
																							</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:simpleType>
																					</xs:attribute>
																				</xs:complexType>
																			</xs:element>
																			<xs:element name="БИКФЛПокуп" minOccurs="0">
																				<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="2"/>
																								<xs:enumeration value="02"/>
																							</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="НаимОперЭДС" minOccurs="0">
																				<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="2"/>
																								<xs:enumeration value="03"/>
																							</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="1000"/>
																							</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:attribute name="КодУслСАдрДомен" use="required">
																						<xs:annotation>
																							<xs:documentation>Признак условия </xs:documentation>
																						</xs:annotation>
																						<xs:simpleType>
																							<xs:restriction base="xs:string">
																								<xs:length value="2"/>
																								<xs:enumeration value="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="40"/>
																							</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:attribute name="КодУслМТК" use="required">
																						<xs:annotation>
																							<xs:documentation>Признак условия </xs:documentation>
																						</xs:annotation>
																						<xs:simpleType>
																							<xs:restriction base="xs:string">
																								<xs:length value="2"/>
																								<xs:enumeration value="05"/>
																							</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="4"/>
																							</xs:restriction>
																						</xs:simpleType>
																					</xs:attribute>
																				</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:integer">
																		<xs:totalDigits value="7"/>
																	</xs:restriction>
																</xs:simpleType>
															</xs:attribute>
															<xs:attribute name="ДатаВремяОсущОп" type="xs:dateTime" 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="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: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:integer">
																		<xs:totalDigits value="15"/>
																	</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:integer">
																		<xs:totalDigits value="15"/>
																	</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="required">
																<xs:annotation>
																	<xs:documentation>Официальный курс рубля на последний день налогового периода</xs:documentation>
																</xs:annotation>
																<xs:simpleType>
																	<xs:restriction base="xs:decimal">
																		<xs:totalDigits value="10"/>
																		<xs:fractionDigits value="4"/>
																	</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:integer">
																		<xs:totalDigits value="15"/>
																	</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:integer">
																		<xs:totalDigits value="15"/>
																	</xs:restriction>
																</xs:simpleType>
															</xs:attribute>
															<xs:attribute name="НаимИнОрг" use="optional">
																<xs:annotation>
																	<xs:documentation>Полное наименование иностранной организации, за которую налоговый агент исполняет обязанность по уплате налога в соответствии с абзацем вторым пункта 3 статьи 174.2 Налогового кодекса Российской Федерации на основании договора поручения, комиссии, агентского или иного аналогичного договора</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="1000"/>
																	</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:length value="3"/>
															<xs:enumeration value="010"/>
															<xs:enumeration value="020"/>
															<xs:enumeration value="030"/>
															<xs:enumeration value="040"/>
															<xs:enumeration value="050"/>
															<xs:enumeration value="060"/>
															<xs:enumeration value="070"/>
															<xs:enumeration value="080"/>
															<xs:enumeration value="090"/>
															<xs:enumeration value="100"/>
															<xs:enumeration value="110"/>
															<xs:enumeration value="120"/>
															<xs:enumeration value="130"/>
															<xs:enumeration value="140"/>
															<xs:enumeration value="150"/>
															<xs:enumeration value="160"/>
															<xs:enumeration value="170"/>
															<xs:enumeration value="180"/>
															<xs:enumeration value="190"/>
														</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:integer">
															<xs:totalDigits value="15"/>
														</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:integer">
															<xs:totalDigits value="15"/>
														</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:length value="1"/>
												<xs:enumeration value="1"/>
												<xs:enumeration value="2"/>
											</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:enumeration value="1150077"/>
								</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="required">
							<xs:annotation>
								<xs:documentation>Налоговый период</xs:documentation>
							</xs:annotation>
							<xs:simpleType>
								<xs:restriction base="xs:string">
									<xs:length value="2"/>
									<xs:enumeration value="21"/>
									<xs:enumeration value="22"/>
									<xs:enumeration value="23"/>
									<xs:enumeration value="24"/>
								</xs:restriction>
							</xs:simpleType>
						</xs:attribute>
						<xs:attribute name="ОтчетГод" type="xs:gYear" use="required">
							<xs:annotation>
								<xs:documentation>Отчетный год</xs:documentation>
								<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:integer">
									<xs:totalDigits value="3"/>
								</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: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="required">
				<xs:annotation>
					<xs:documentation>Версия программы, с помощью которой сформирован файл</xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:minLength value="1"/>
						<xs:maxLength value="40"/>
					</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="Отчество" 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>Код причины постановки на учет (КПП) - 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="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>Код из Классификатора налоговой документации</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>Дата в формате ДД.ММ.ГГГГ (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[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)))))"/>
		</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="3"/>
			<xs:pattern value="[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="9"/>
			<xs:pattern value="[0-9]{9}"/>
		</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:schema>
