﻿<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:clitype="clitype" xmlns:fn="http://www.w3.org/2005/xpath-functions"
	xmlns:iso4217="http://www.xbrl.org/2003/iso4217" xmlns:ix="http://www.xbrl.org/2008/inlineXBRL"
	xmlns:java="java" xmlns:link="http://www.xbrl.org/2003/linkbase"
	xmlns:xbrldi="http://xbrl.org/2006/xbrldi" xmlns:xbrli="http://www.xbrl.org/2003/instance"
	xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xs="http://www.w3.org/2001/XMLSchema"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<xsl:output version="4.0" method="html" indent="no" encoding="UTF-8"
		doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
	<xsl:param name="SV_OutputFormat" select="'HTML'"/>
	<xsl:variable name="XML1" select="/"/>
	<xsl:template match="/">
		<html>
			<head>
				<title/>
				<meta http-equiv="X-UA-Compatible" content="IE=5"/>

				<style>
					td
					{
					    padding-top:1px;
					    padding-right:3px;
					    padding-bottom:1px;
					    padding-left:3px;
					    color:windowtext;
					    font-size:8pt;
					    font-weight:400;
					    font-style:normal;
					    text-decoration:none;
					    font-family:"Arial";
					    text-align:general;
					    vertical-align:bottom;
					    color:#191970;
					    word-wrap:break-word;
					}</style>
			</head>
			<body>

				<xsl:for-each select="$XML1">
					<xsl:for-each select="RTS_DOC">
						<div>
							<xsl:for-each select="DOC_REQUISITES">
								<table width="70%"
									style="background=#FFFAF0; color=#191970; font-size:11; word-wrap:break-word; border:0; border-bottom:0; border-collapse:collapse; border-left:0; border-right:0;"
									border="1">

									<tr
										style="text-align:center; vertical-align:Center; word-wrap:break-word; font-size:15; font-weight:bold; color:#191970; background= #B0C4DE;">
										<th colspan="5">
											<xsl:choose>
												<xsl:when test="@SENDER_NAME!=''">
												<span>
												<xsl:value-of select="@SENDER_NAME"/>
												</span>
												</xsl:when>
												<xsl:otherwise>
												<xsl:text>Публичное акционерное общество "СПБ"</xsl:text>
												</xsl:otherwise>
											</xsl:choose>
										</th>
									</tr>
									<tr style="background=#E6E6FA; text-align:center;">
										<td width="27%">
											<xsl:text>Документ</xsl:text>
										</td>

										<td width="7%">
											<xsl:text>Тип</xsl:text>
										</td>

										<td width="15%">
											<xsl:text>ID фирмы-отправителя</xsl:text>
										</td>
										<td>
											<xsl:text>Код ЭДО РТС получателя</xsl:text>
										</td>

										<td rowspan="2"
											style="font-style:italic; text-align:left; vertical-align:top; background=#FFFAF0;">
											<span>
												<xsl:text>Примечание: </xsl:text>
											</span>
											<xsl:for-each select="@REMARKS">
												<xsl:value-of select="string(.)"/>
											</xsl:for-each>
										</td>
									</tr>
									<tr style="text-align:center">
										<td>
											<xsl:value-of select="@DOC_NO"/>											
											<xsl:text> от </xsl:text>
											<xsl:value-of  select="@DOC_DATE"/>											
											<xsl:text> </xsl:text>
											<xsl:value-of select="@DOC_TIME"/>											
										</td>
										<td>
											<xsl:for-each select="@DOC_TYPE_ID">
												<xsl:value-of select="string(.)"/>
											</xsl:for-each>
										</td>
										<td>
											<xsl:for-each select="@SENDER_ID">
												<xsl:value-of select="string(.)"/>
											</xsl:for-each>
										</td>
										<td>
											<xsl:for-each select="@RECEIVER_ID">
												<xsl:value-of select="string(.)"/>
											</xsl:for-each>
										</td>
									</tr>

								</table>
							</xsl:for-each>
						</div>
						<xsl:for-each select="SPB82">
							<table width="100%"
								style="background=#FFFAF0; color=#191970; font-size:11; word-wrap:break-word; border:0; border-bottom:0; border-collapse:collapse; border-left:0; border-right:0;"
								border="1">
								<th colspan="8"
									style="text-align:center; vertical-align:Center; word-wrap:break-word; font-size:15; font-weight:bold; color:#191970; background= #B0C4DE;">
									<xsl:choose>
										<xsl:when test="@ReportDesc!=''">
											<span>
												<xsl:value-of select="@ReportDesc"/>
											</span>
										</xsl:when>
										<xsl:otherwise>
											<xsl:text>Уведомление о зарегистрированных кодах/кратких кодах клиентов Участника торгов и (или) Участника торгов</xsl:text>
										</xsl:otherwise>
									</xsl:choose>
									<xsl:text> за </xsl:text>
									<xsl:value-of select="@ReportDate"/>									
								</th>
								<tr style="text-align:center;">
									<td width="17%" style="background=#E6E6FA;">
										<xsl:text>Дата отчета:</xsl:text>
									</td>
									<td width="17%" style="background=#E6E6FA;" >
										<xsl:text>Номер отчета:</xsl:text>
									</td>     
									<td width="17%" style="background=#E6E6FA;" >
										<xsl:text>Том отчета:</xsl:text>
									</td> 
									<td colspan="1" width="10%" style="background=#E6E6FA;">
										<xsl:text>ID уч. торгов:</xsl:text>
									</td>
									<td colspan="3" width="60%" style="background=#E6E6FA;">
										<xsl:text>Наим. уч. торгов:</xsl:text>
									</td>
									<td colspan="1" width="auto" style="background=#E6E6FA;">
										<xsl:text>ИНН. уч. торгов:</xsl:text>
									</td> 
								</tr>
								<tr>
									<td colspan="1" style="text-align:center;">
										<xsl:for-each select="@ReportDate">
											<span>
												<xsl:variable name="seqContentStrings_1">
												<xsl:value-of
												select="format-number(number(substring(string(string(.)), 9, 2)), '00')"/>
												<xsl:text>-</xsl:text>
												<xsl:value-of
												select="format-number(number(substring(string(string(.)), 6, 2)), '00')"/>
												<xsl:text>-</xsl:text>
												<xsl:value-of
												select="format-number(number(substring(string(string(string(.))), 1, 4)), '0000')"
												/>
												</xsl:variable>
												<xsl:variable name="sContent_1"
												select="string($seqContentStrings_1)"/>
												<xsl:value-of select="$sContent_1"/>
											</span>
										</xsl:for-each>
										<xsl:for-each select="@Weekday">
											<span>
												<xsl:text> (</xsl:text>
												<xsl:value-of select="string(.)"/>
												<xsl:text>)</xsl:text>
											</span>
										</xsl:for-each>
									</td>
									<td  style="text-align:center;" >
										<xsl:choose>
											<xsl:when test="@ReportVersion = 2">
												<xsl:for-each select="@ReportNumber">
													<xsl:value-of select="string(.)"/>
												</xsl:for-each>
											</xsl:when>
											<xsl:otherwise>	
												<xsl:for-each select="../@DOC_NO">
													<xsl:value-of select="string(.)"/>
												</xsl:for-each>                		
												
											</xsl:otherwise>
										</xsl:choose>
									</td>
									<td  style="text-align:center;" >
										<xsl:choose>
											<xsl:when test="@ReportVersion = 2">
												
												<xsl:value-of select="@Volume"/>
												<xsl:text> из </xsl:text>
												<xsl:value-of select="@VolumeTotal"/>
											</xsl:when>
											<xsl:otherwise>	
												<xsl:text>1 из 1</xsl:text>	
											</xsl:otherwise>
										</xsl:choose>
									</td>

									<td colspan="1" style="text-align:center;">
										<xsl:for-each select="FIRM">
											<xsl:for-each select="@FirmID">
												<xsl:value-of select="string(.)"/>
											</xsl:for-each>
										</xsl:for-each>
									</td>

									<td colspan="3" style="text-align:center;">
										<xsl:for-each select="FIRM">
											<xsl:for-each select="@FirmName">
												<xsl:value-of select="string(.)"/>
											</xsl:for-each>
										</xsl:for-each>
									</td>

									<td colspan="1" style="text-align:center;">
										<xsl:for-each select="FIRM">
											<xsl:for-each select="@FirmDetails">
												<xsl:value-of select="string(.)"/>
											</xsl:for-each>
										</xsl:for-each>
									</td>

								</tr>
							</table>
							<br/>
							<xsl:choose>
								<xsl:when test="@ReportVersion =1">
									<xsl:for-each select="FIRM">
										<table width="70%"
											style="background=#FFFAF0; color=#191970; border:1; border-bottom:0; border-collapse:collapse; border-left:0; border-right:0; border-top:0; font-family:Arial; font-size:9; word-wrap:break-word;"
											border="1">

											<xsl:choose>
												<xsl:when test="RECORDS/@ClientCode">
												<thead
												style="text-align:center; word-wrap:break-word; ">

												<tr
												style="vertical-align:top; word-wrap:break-word; color:#191970; background=#E6E6FA;">
												<th>
												<xsl:text>Краткий код</xsl:text>
												</th>
												<th>
												<xsl:text>Признак лица, для которого зарегистрированы коды (учетный регистр)</xsl:text>
												</th>
												<th>
												<xsl:text>Тип клиента/УТ</xsl:text>
												</th>
												<th>
												<xsl:text>Реквизиты клиента/УТ</xsl:text>
												</th>
												<th>
												<xsl:text>Код страны</xsl:text>
												</th>
												<th>
												<xsl:text>Регистрационный  код клиента (клиента второго уровня)/ Участника торгов</xsl:text>
												</th>
												<th>
												<xsl:text>Квалифицированный инвестор</xsl:text>
												</th>
												<th>
												<xsl:text>Индивидуальный Инвестиционный Счет</xsl:text>
												</th>
												<th>
												<xsl:text>Разрешен кросс-маркет</xsl:text>
												</th>
												<th>
												<xsl:text>Статус клиента</xsl:text>
												</th>
												</tr>
												</thead>


												<tbody>
												<xsl:for-each select="RECORDS">
												<xsl:sort select="@Status"/>
												<tr style="vertical-align:top; ">
												<td
												style="border-bottom:0; border-top:0; text-align:right; ">
												<xsl:for-each select="@ClientCode">
												<xsl:value-of select="string(.) "/>
												</xsl:for-each>
												</td>
												<td
												style="border-bottom:0; border-top:0; text-align:right; ">
												<xsl:choose>
												<xsl:when test="@Principal='Y'">
												<span>
												<xsl:text>Участник торгов</xsl:text>
												</span>
												</xsl:when>
												<xsl:when test="@Principal='N'">
												<span>
												<xsl:text>клиент Участника торгов</xsl:text>
												</span>
												</xsl:when>
												</xsl:choose>
												</td>
												<td
												style="border-bottom:0; border-top:0; text-align:right; ">
												<xsl:for-each select="@Type">
												<xsl:value-of select="string(.) "/>
												</xsl:for-each>
												</td>
												<td
												style="border-bottom:0; border-top:0; text-align:right; ">
												<xsl:for-each select="@Details">
												<xsl:value-of select="string(.) "/>
												</xsl:for-each>
												</td>
												<td
												style="border-bottom:0; border-top:0; text-align:right; ">
												<xsl:for-each select="@CountryCode">
												<xsl:value-of select="string(.) "/>
												</xsl:for-each>
												</td>
												<td
												style="border-bottom:0; border-top:0; text-align:right; ">
												<xsl:for-each select="@RegulatorCode">
												<xsl:value-of select="string(.) "/>
												</xsl:for-each>
												</td>
												<td
												style="border-bottom:0; border-top:0; text-align:right; ">
												<xsl:choose>
												<xsl:when test="@Q_Investor='Y'">
												<span>
												<xsl:text>квалифицированный инвестор</xsl:text>
												</span>
												</xsl:when>
												<xsl:when test="@Q_Investor='N'">
												<span>
												<xsl:text/>
												</span>
												</xsl:when>
												</xsl:choose>
												</td>
												<td
												style="border-bottom:0; border-top:0; text-align:right; ">
												<xsl:choose>
												<xsl:when test="@IndividualInvestmentAccount='Y'">
												<span>
												<xsl:text>открыт ИИС</xsl:text>
												</span>
												</xsl:when>
												<xsl:when test="@IndividualInvestmentAccount='N'">
												<span>
												<xsl:text/>
												</span>
												</xsl:when>
												</xsl:choose>
												</td>
												<td
												style="border-bottom:0; border-top:0; text-align:right; ">
												<xsl:choose>
												<xsl:when test="@CheckCrossMarket='Y'">
												<span>
												<xsl:text>да</xsl:text>
												</span>
												</xsl:when>
												<xsl:when test="@CheckCrossMarket='N'">
												<span>
												<xsl:text>нет</xsl:text>
												</span>
												</xsl:when>
												</xsl:choose>
												</td>
												<td
												style="border-bottom:0; border-top:0; text-align:right; ">
												<xsl:choose>
												<xsl:when test="@Status='A'">
												<span>
												<xsl:text>создан</xsl:text>
												</span>
												</xsl:when>
												<xsl:when test="@Status='U'">
												<span>
												<xsl:text>изменен</xsl:text>
												</span>
												</xsl:when>
												<xsl:when test="@Status='D'">
												<span>
												<xsl:text>удален</xsl:text>
												</span>
												</xsl:when>
												<xsl:otherwise>
												<span>
												<xsl:text>создан</xsl:text>
												</span>
												</xsl:otherwise>
												</xsl:choose>
												</td>
												</tr>
												<tr>
												<td colspan="11"
												style="border-bottom:0; border-left:0; border-right:0; font:10; font-weight:bold; height:1; line-height:1; text-align:left; "
												/>
												</tr>
												</xsl:for-each>

												</tbody>
												</xsl:when>
											</xsl:choose>
										</table>
										<br/>

									</xsl:for-each>
								</xsl:when>
								<xsl:when test="@ReportVersion =2">
									<xsl:for-each select="FIRM">
										<table width="100%"
											style="background=#FFFAF0; color=#191970; border:1; border-bottom:0; border-collapse:collapse; border-left:0; border-right:0; border-top:0; font-family:Arial; font-size:9; word-wrap:break-word;"
											border="1">
											
											<xsl:choose>
												<xsl:when test="RECORDS/@ClientCode">
													<thead
														style="text-align:center; word-wrap:break-word; ">
														
														<tr
															 style="vertical-align:top; word-wrap:break-word; color:#191970; background=#E6E6FA;">
															<th rowspan="2">
																<xsl:text>Краткий код</xsl:text>
															</th>
															<th rowspan="2">
																<xsl:text>Признак лица, для которого зарегистрированы коды (учетный регистр)</xsl:text>
															</th>
															<th rowspan="2">
																<xsl:text>Тип клиента/УТ</xsl:text>
															</th>
															<th rowspan="2">
																<xsl:text>Реквизиты клиента/УТ</xsl:text>
															</th>
															<th rowspan="2">
																<xsl:text>Код страны</xsl:text>
															</th>
															<th rowspan="2">
																<xsl:text>Регистрационный код клиента (клиента второго уровня)/ УТ</xsl:text>
															</th>
															<th rowspan="2">
																<xsl:text>Операция с клиентом</xsl:text>
															</th>
															<th rowspan="2">
																<xsl:text>Статус допуска клиента</xsl:text>
															</th>
															<th colspan = "3">
																<xsl:text>Свойства клиента</xsl:text>
															</th>
															<th colspan = "10">
																<xsl:text>Запреты на операции с инструментами</xsl:text>
															</th>															
														</tr>
														<tr>
															<th rowspan="1" width="5%">
																<xsl:text>Квал.</xsl:text><br/>
																<xsl:text>инвестор</xsl:text>
															</th>
															<th rowspan="1" width="5%">
																<xsl:text> ИИС </xsl:text>
															</th>
															<th rowspan="1">
																<xsl:text>Разрешен</xsl:text><br/>
																<xsl:text>кросс-маркет</xsl:text>
															</th>
															<th rowspan="1" width="5%">
																<xsl:text>ИЦБ </xsl:text><br/>
																<xsl:text>Акции треб. </xsl:text><br/>
																<xsl:text>тестирования</xsl:text>
															</th>										
															<th rowspan="1" width="5%">
																<xsl:text>ИЦБ </xsl:text><br/>
																<xsl:text>ETF треб. </xsl:text><br/>
																<xsl:text>тестирования</xsl:text>
															</th>	
															<th rowspan="1" width="5%">
																<xsl:text>РЦБ </xsl:text><br/>
																<xsl:text>Бумаги вне </xsl:text><br/>
																<xsl:text>списков</xsl:text>
															</th>	
															<th rowspan="1" width="5%">
																<xsl:text>ПФИ</xsl:text>
															</th>	
															<th rowspan="1" width="5%">
																<xsl:text>РЦБ </xsl:text><br/>
																<xsl:text>Облигации эмитентов </xsl:text><br/>
																<xsl:text>без рейтинга</xsl:text>
															</th>
															<th rowspan="1" width="5%">
																<xsl:text>ИЦБ </xsl:text><br/>
																<xsl:text>Облигации эмитентов </xsl:text><br/>
																<xsl:text>без рейтинга</xsl:text>
															</th>
															<th rowspan="1" width="5%">
																<xsl:text>Структурные </xsl:text><br/>
																<xsl:text>облигации</xsl:text>
															</th>	
															<th rowspan="1" width="5%">
																<xsl:text>Облигации со </xsl:text><br/>
																<xsl:text>структ. доходом</xsl:text>
															</th>	
															<th rowspan="1" width="5%">
																<xsl:text>РЕПО</xsl:text>
															</th>	
															<th rowspan="1" width="5%">
																<xsl:text>ЗПИФ</xsl:text>
															</th>																
														</tr>
													</thead>
													
													
													<tbody>
														<xsl:for-each select="RECORDS">
															<xsl:sort select="@Status"/>
															<tr style="vertical-align:top; ">
																<td
																	style="border-bottom:0; border-top:0; text-align:right; ">
																	<xsl:for-each select="@ClientCode">
																		<xsl:value-of select="string(.) "/>
																	</xsl:for-each>
																</td>
																<td
																	style="border-bottom:0; border-top:0; text-align:right; ">
																	<xsl:choose>
																		<xsl:when test="@Principal='Y'">
																			<span>
																				<xsl:text>УТ</xsl:text>
																			</span>
																		</xsl:when>
																		<xsl:when test="@Principal='N'">
																			<span>
																				<xsl:text>клиент УТ</xsl:text>
																			</span>
																		</xsl:when>
																	</xsl:choose>
																</td>
																<td
																	style="border-bottom:0; border-top:0; text-align:right; ">
																	<xsl:for-each select="@Type">
																		<xsl:value-of select="string(.) "/>
																	</xsl:for-each>
																</td>
																<td
																	style="border-bottom:0; border-top:0; text-align:right; ">
																	<xsl:for-each select="@Details">
																		<xsl:value-of select="string(.) "/>
																	</xsl:for-each>
																</td>
																<td
																	style="border-bottom:0; border-top:0; text-align:right; ">
																	<xsl:for-each select="@CountryCode">
																		<xsl:value-of select="string(.) "/>
																	</xsl:for-each>
																</td>
																<td
																	style="border-bottom:0; border-top:0; text-align:right; ">
																	<xsl:for-each select="@RegulatorCode">
																		<xsl:value-of select="string(.) "/>
																	</xsl:for-each>
																</td>
																<td
																	style="border-bottom:0; border-top:0; text-align:right; ">
																	<xsl:choose>
																		<xsl:when test="@Status='A'">
																			<span>
																				<xsl:text>зарегистр.</xsl:text>
																			</span>
																		</xsl:when>
																		<xsl:when test="@Status='U'">
																			<span>
																				<xsl:text>обновлен</xsl:text>
																			</span>
																		</xsl:when>
																		<xsl:when test="@Status='D'">
																			<span>
																				<xsl:text>удален</xsl:text>
																			</span>
																		</xsl:when>
																		<xsl:otherwise>
																			<span>
																				<xsl:text></xsl:text>
																			</span>
																		</xsl:otherwise>
																	</xsl:choose>
																</td>
																<td
																	style="border-bottom:0; border-top:0; text-align:right; ">
																	<xsl:choose>
																		<xsl:when test="@AccessStatus='A'">
																			<span>
																				<xsl:text>допущен</xsl:text>
																			</span>
																		</xsl:when>
																		<xsl:when test="@AccessStatus='N' or @Status='n'">
																			<span>
																				<xsl:text>допуск приостановлен</xsl:text>
																			</span>
																		</xsl:when>
																		<xsl:when test="@AccessStatus='D' or @Status='d'">
																			<span>
																				<xsl:text>допуск прекращен</xsl:text>
																			</span>
																		</xsl:when>
																		<xsl:otherwise>
																			<span>
																				<xsl:text></xsl:text>
																			</span>
																		</xsl:otherwise>
																	</xsl:choose>
																</td>
																<td
																	style="border-bottom:0; border-top:0; text-align:center; ">
																	<xsl:choose>
																		<xsl:when test="@Q_Investor='Y'">
																			<span>
																				<xsl:text>квал.</xsl:text>
																			</span>
																		</xsl:when>
																		<xsl:otherwise>
																			<span>
																				<xsl:text/>
																			</span>
																		</xsl:otherwise>
																	</xsl:choose>
																</td>
																<td
																	style="border-bottom:0; border-top:0; text-align:center; ">
																	<xsl:choose>
																		<xsl:when test="@IndividualInvestmentAccount='Y'">
																			<span>
																				<xsl:text>ИИС</xsl:text>
																			</span>
																		</xsl:when>
																		<xsl:otherwise>
																			<span>
																				<xsl:text/>
																			</span>
																		</xsl:otherwise>
																	</xsl:choose>
																</td>
																<td
																	style="border-bottom:0; border-top:0; text-align:center; ">
																	<xsl:choose>
																		<xsl:when test="@CheckCrossMarket='Y'">
																			<span>
																				<xsl:text>разрешен</xsl:text>
																			</span>
																		</xsl:when>
																		<xsl:otherwise>
																			<span>
																				<xsl:text></xsl:text>
																			</span>
																		</xsl:otherwise>
																	</xsl:choose>
																</td>
																<!-- Новые поля -->
																<td
																	style="border-bottom:0; border-top:0; text-align:center; ">
																	<xsl:choose>
																		<xsl:when test="@ForeignSecurityClientProhibition='Y'">
																			<span>
																				<xsl:text>запрет</xsl:text>
																			</span>
																		</xsl:when>
																		<xsl:otherwise>
																			<span>
																				<xsl:text></xsl:text>
																			</span>
																		</xsl:otherwise>
																	</xsl:choose>
																</td>
																<td
																	style="border-bottom:0; border-top:0; text-align:center; ">
																	<xsl:choose>
																		<xsl:when test="@ForeignETFClientProhibition='Y'">
																			<span>
																				<xsl:text>запрет</xsl:text>
																			</span>
																		</xsl:when>
																		<xsl:otherwise>
																			<span>
																				<xsl:text></xsl:text>
																			</span>
																		</xsl:otherwise>
																	</xsl:choose>
																</td>
																<td
																	style="border-bottom:0; border-top:0; text-align:center; ">
																	<xsl:choose>
																		<xsl:when test="@UnquotRuSecurityClientProhibition='Y'">
																			<span>
																				<xsl:text>запрет</xsl:text>
																			</span>
																		</xsl:when>
																		<xsl:otherwise>
																			<span>
																				<xsl:text></xsl:text>
																			</span>
																		</xsl:otherwise>
																	</xsl:choose>
																</td>
																<td
																	style="border-bottom:0; border-top:0; text-align:center; ">
																	<xsl:choose>
																		<xsl:when test="@DerivativesClientProhibition='Y'">
																			<span>
																				<xsl:text>запрет</xsl:text>
																			</span>
																		</xsl:when>
																		<xsl:otherwise>
																			<span>
																				<xsl:text></xsl:text>
																			</span>
																		</xsl:otherwise>
																	</xsl:choose>
																</td>
																<td
																	style="border-bottom:0; border-top:0; text-align:center; ">
																	<xsl:choose>
																		<xsl:when test="@UnratedRuBondClientProhibition='Y'">
																			<span>
																				<xsl:text>запрет</xsl:text>
																			</span>
																		</xsl:when>
																		<xsl:otherwise>
																			<span>
																				<xsl:text></xsl:text>
																			</span>
																		</xsl:otherwise>
																	</xsl:choose>
																</td>
																<td
																	style="border-bottom:0; border-top:0; text-align:center; ">
																	<xsl:choose>
																		<xsl:when test="@ForeignBondClientProhibition='Y'">
																			<span>
																				<xsl:text>запрет</xsl:text>
																			</span>
																		</xsl:when>
																		<xsl:otherwise>
																			<span>
																				<xsl:text></xsl:text>
																			</span>
																		</xsl:otherwise>
																	</xsl:choose>
																</td>
																<td
																	style="border-bottom:0; border-top:0; text-align:center; ">
																	<xsl:choose>
																		<xsl:when test="@StructuredBondClientProhibition='Y'">
																			<span>
																				<xsl:text>запрет</xsl:text>
																			</span>
																		</xsl:when>
																		<xsl:otherwise>
																			<span>
																				<xsl:text></xsl:text>
																			</span>
																		</xsl:otherwise>
																	</xsl:choose>
																</td>
																<td
																	style="border-bottom:0; border-top:0; text-align:center; ">
																	<xsl:choose>
																		<xsl:when test="@StructuredIncomeBondClientProhibition='Y'">
																			<span>
																				<xsl:text>запрет</xsl:text>
																			</span>
																		</xsl:when>
																		<xsl:otherwise>
																			<span>
																				<xsl:text></xsl:text>
																			</span>
																		</xsl:otherwise>
																	</xsl:choose>
																</td>
																<td
																	style="border-bottom:0; border-top:0; text-align:center; ">
																	<xsl:choose>
																		<xsl:when test="@RepoClientProhibition='Y'">
																			<span>
																				<xsl:text>запрет</xsl:text>
																			</span>
																		</xsl:when>
																		<xsl:otherwise>
																			<span>
																				<xsl:text></xsl:text>
																			</span>
																		</xsl:otherwise>
																	</xsl:choose>
																</td>
																<td
																	style="border-bottom:0; border-top:0; text-align:center; ">
																	<xsl:choose>
																		<xsl:when test="@ClosedFundClientProhibition='Y'">
																			<span>
																				<xsl:text>запрет</xsl:text>
																			</span>
																		</xsl:when>
																		<xsl:otherwise>
																			<span>
																				<xsl:text></xsl:text>
																			</span>
																		</xsl:otherwise>
																	</xsl:choose>
																</td>
																
																
															</tr>
															<tr>
																<td colspan="21"
																	style="border-bottom:0; border-left:0; border-right:0; font:10; font-weight:bold; height:1; line-height:1; text-align:left; "
																/>
															</tr>
														</xsl:for-each>
														
													</tbody>
												</xsl:when>
											</xsl:choose>
										</table>
										<br/>
										
									</xsl:for-each>
								</xsl:when>
							</xsl:choose>
						</xsl:for-each>
					</xsl:for-each>
				</xsl:for-each>
			</body>
		</html>
	</xsl:template>
</xsl:stylesheet>
