<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
	xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
	exclude-result-prefixes="xs xsi">

	<xsl:output version="4.0" method="html" indent="no" encoding="UTF-8" doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>

	<xsl:param name="locale" select="'ru'"/>
	
	<xsl:template name="formatDate">
		<xsl:param name="date" />
		<xsl:if test="$date">
			<xsl:variable name="year" select="substring-before($date, '-')" />
			<xsl:variable name="month" select="substring-before(substring-after($date, '-'), '-')" />
			<xsl:variable name="day" select="substring-after(substring-after($date, '-'), '-')" />
			<xsl:choose>
				<xsl:when test="$locale = 'ru'">
					<xsl:value-of select="concat($day, '.', $month, '.', $year)" />
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="concat($year, '-', $month, '-', $day)" />
				</xsl:otherwise>
			</xsl:choose>
		</xsl:if>
	</xsl:template>

	<xsl:template name="yesOrNo">
		<xsl:param name="value" />
		<xsl:choose>
			<xsl:when test="$value = 'Y' or $value='1'">
				<xsl:choose>
					<xsl:when test="$locale = 'ru'">Да</xsl:when>
					<xsl:otherwise>Yes</xsl:otherwise>
				</xsl:choose>
			</xsl:when>
			<xsl:otherwise>
				<xsl:choose>
					<xsl:when test="$locale = 'ru'">Нет</xsl:when>
					<xsl:otherwise>No</xsl:otherwise>
				</xsl:choose>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>

	<xsl:template name="crossTrades">
		<xsl:param name="value" />
		<xsl:choose>
			<xsl:when test="$value = 'N'">
				<xsl:choose>
					<xsl:when test="$locale = 'ru'">Запрещены / снятие активной</xsl:when>
					<xsl:otherwise>Prohibited / cancel active</xsl:otherwise>
				</xsl:choose>
			</xsl:when>
			<xsl:when test="$value = 'P'">
				<xsl:choose>
					<xsl:when test="$locale = 'ru'">Запрещены / снятие пассивной</xsl:when>
					<xsl:otherwise>Prohibited / cancel passive</xsl:otherwise>
				</xsl:choose>
			</xsl:when>
			<xsl:when test="$value = 'U'">
				<xsl:choose>
					<xsl:when test="$locale = 'ru'">Запрещены / игнорировать свою пассивную</xsl:when>
					<xsl:otherwise>Prohibited / ignore passive</xsl:otherwise>
				</xsl:choose>
			</xsl:when>
			<xsl:when test="$value = 'Y'">
				<xsl:choose>
					<xsl:when test="$locale = 'ru'">Разрешены / снятие активной</xsl:when>
					<xsl:otherwise>Allowed / cancel active</xsl:otherwise>
				</xsl:choose>
			</xsl:when>
			<xsl:when test="$value = 'X'">
				<xsl:choose>
					<xsl:when test="$locale = 'ru'">Разрешены / снятие пассивной</xsl:when>
					<xsl:otherwise>Allowed / cancel passive</xsl:otherwise>
				</xsl:choose>
			</xsl:when>
			<xsl:when test="$value = 'K'">
				<xsl:choose>
					<xsl:when test="$locale = 'ru'">Разрешены / игнорировать свою пассивную</xsl:when>
					<xsl:otherwise>Allowed / ignore passive</xsl:otherwise>
				</xsl:choose>
			</xsl:when>
		</xsl:choose>
	</xsl:template>

	<xsl:template name="representative">
		<xsl:param name="type"/>
		<xsl:choose>
			<xsl:when test="$type = &apos;PASSPORT_RF&apos;">
				<xsl:choose>
					<xsl:when test="$locale = 'ru'">
						Паспорт РФ
					</xsl:when>
					<xsl:otherwise>
						Passport RF
					</xsl:otherwise>
				</xsl:choose>
			</xsl:when>
			<xsl:when test="$type = &apos;PASSPORT_USSR&apos;">
				<xsl:choose>
					<xsl:when test="$locale = 'ru'">
						Паспорт СССР
					</xsl:when>
					<xsl:otherwise>
						Passport USSR
					</xsl:otherwise>
				</xsl:choose>
			</xsl:when>
			<xsl:when test="$type = &apos;OTHER&apos;">
				<xsl:choose>
					<xsl:when test="$locale = 'ru'">
						Другой документ
					</xsl:when>
					<xsl:otherwise>
						Other document
					</xsl:otherwise>
				</xsl:choose>
			</xsl:when>
			<xsl:when test="$type = &apos;PASSPORT_FOREIGN&apos;">
				<xsl:choose>
					<xsl:when test="$locale = 'ru'">
						Паспорт иностранного гражданина
					</xsl:when>
					<xsl:otherwise>
						Foreign passport
					</xsl:otherwise>
				</xsl:choose>
			</xsl:when>
			<xsl:when test="$type = &apos;OTHER_FOREIGN_ID&apos;">
				<xsl:choose>
					<xsl:when test="$locale = 'ru'">
						Иной иностранный документ
					</xsl:when>
					<xsl:otherwise>
						Other foreign ID
					</xsl:otherwise>
				</xsl:choose>
			</xsl:when>
		</xsl:choose>
	</xsl:template>

	<xsl:template name="market">
		<xsl:param name="client"/>
		<xsl:param name="entity"/>
		<td style="padding-left:3pt; padding-right:3pt; text-align:center; " nowrap="set">
			&#160;<xsl:value-of select="@ClientCode"/>
		</td>
		<td style="padding-left:3pt; padding-right:3pt; text-align:center; " nowrap="set">
			<xsl:value-of select="@MarketId"/>
		</td>
		<td style="padding-left:3pt; padding-right:3pt; text-align:center; " nowrap="set">
			<xsl:value-of select="@ClientType"/>
		</td>
		<xsl:if test="$client = 'simple' and $entity = 'LEGAL_PERS'">
			<td style="padding-left:3pt; padding-right:3pt; text-align:center; ">
				<xsl:value-of select="@ISFOND_NPF_RESERV"/>
			</td>
		</xsl:if>
		<xsl:if test="$entity = 'LEGAL_PERS'">
			<td style="padding-left:3pt; padding-right:3pt; ">
				&#160;<xsl:value-of select="@IRC"/>
			</td>
		</xsl:if>
		<xsl:if test="$entity = 'INDIVIDUAL'">
			<td style="padding-left:3pt; padding-right:3pt; text-align:center; ">
				<xsl:call-template name="yesOrNo">
					<xsl:with-param name="value" select="@isIISContract" />
				</xsl:call-template>
			</td>
		</xsl:if>
		<xsl:if test="$client = 'simple'">
			<td style="padding-left:3pt; padding-right:3pt; text-align:center; ">
				<xsl:call-template name="crossTrades">
					<xsl:with-param name="value" select="@isCrossTrades" />
				</xsl:call-template>
			</td>
			<xsl:if test="$entity = 'LEGAL_PERS'">
				<td style="padding-left:3pt; padding-right:3pt; text-align:center; ">
					<xsl:call-template name="yesOrNo">
						<xsl:with-param name="value" select="@isMainGroupDU" />
					</xsl:call-template>
				</td>
			</xsl:if>
		</xsl:if>
		<td style="padding-left:3pt; padding-right:3pt; text-align:left; ">
			<xsl:value-of select="@ClientCodeDescr"/>
		</td>
		<xsl:if test="$client = 'simple'">
			<xsl:if test="$entity = 'LEGAL_PERS'">
				<td style="padding-left:3pt; padding-right:3pt; ">
					&#160;<xsl:value-of select="@NUMPORTFOLIO"/>
				</td>
			</xsl:if>
			<td style="padding-left:3pt; padding-right:3pt; ">
				&#160;<xsl:value-of select="@NSDCLIENTCODE"/>
			</td>
			<td style="padding-left:3pt; padding-right:3pt; ">
				<xsl:value-of select="@CHAP3RATEDVCA"/>
			</td>
			<td style="padding-left:3pt; padding-right:3pt; ">
				<xsl:value-of select="@CHAP3RATEINTR"/>
			</td>
			<td style="padding-left:3pt; padding-right:3pt; ">
				<xsl:value-of select="@CHAP4STATUS"/>
			</td>
		</xsl:if>
		<td style="padding-left:3pt; padding-right:3pt; text-align:center; " nowrap="set">
			&#160;<xsl:value-of select="@CLIENTCODESE"/>
		</td>
		<td style="padding-left:3pt; padding-right:3pt; ">
			&#160;<xsl:value-of select="@Category"/>
		</td>
		<td style="padding-left:3pt; padding-right:3pt; ">
			<xsl:value-of select="@RiskLevel"/>
		</td>
		<xsl:if test="$client = 'fund'">
			<td style="padding-left:3pt; padding-right:3pt; text-align:center; " nowrap="set">
				<xsl:call-template name="yesOrNo">
					<xsl:with-param name="value" select="@isCrossTradesDU" />
				</xsl:call-template>
			</td>
		</xsl:if>
		<td style="padding-left:3pt; padding-right:3pt; text-align:center; " nowrap="set">
			<xsl:call-template name="formatDate">
				<xsl:with-param name="date" select="@DateOpen" />
			</xsl:call-template>
		</td>
		<td style="padding-left:3pt; padding-right:3pt; text-align:center; " nowrap="set">
			<xsl:call-template name="formatDate">
				<xsl:with-param name="date" select="@DateClose" />
			</xsl:call-template>
		</td>
		<td style="padding-left:3pt; padding-right:3pt; text-align:center; ">
			<xsl:value-of select="@Status"/>
		</td>
	</xsl:template>

	<xsl:template match="/">
		<html>
			<head>
				<title><xsl:choose>
					<xsl:when test="$locale = 'ru'">Отчет о клиентах Участника</xsl:when>
					<xsl:otherwise>Clients report</xsl:otherwise>
				</xsl:choose></title>
			</head>
			<body>
				<div style="font-family:Arial; ">
					<xsl:apply-templates/>
				</div>
			</body>
		</html>
	</xsl:template>

	<xsl:template match="MICEX_DOC">
		<div style="font-size:xx-small; font-style:italic; ">
			<xsl:choose>
				<xsl:when test="$locale = 'ru'">Исх. №: </xsl:when>
				<xsl:otherwise>Out #: </xsl:otherwise>
			</xsl:choose>
			<span style="font-weight:bold; ">
				<xsl:value-of select="DOC_REQUISITES/@DOC_NO" />
			</span>
			<xsl:choose>
				<xsl:when test="$locale = 'ru'"> от </xsl:when>
				<xsl:otherwise> of </xsl:otherwise>
			</xsl:choose>
			<span style="font-weight:bold; ">
				<xsl:call-template name="formatDate">
					<xsl:with-param name="date" select="DOC_REQUISITES/@DOC_DATE" />
				</xsl:call-template>
			</span>
		</div>
		<div style="font-size:xx-small; font-weight:bold; ">
			<div style="text-align:right; ">RPTCLIENTS</div>
			<div><xsl:choose>
				<xsl:when test="$locale = 'ru'">ПАО Московская биржа</xsl:when>
				<xsl:otherwise>JSC Moscow Exchange</xsl:otherwise>
			</xsl:choose></div>
		</div>
		<br/>
		<xsl:apply-templates />
	</xsl:template>
	
	<xsl:template match="RPTCLIENTS">
		<div style="font-weight:bold; text-align:center; ">
			<div><xsl:choose>
				<xsl:when test="$locale = 'ru'">Отчет о клиентах Участника</xsl:when>
				<xsl:otherwise>Clients report</xsl:otherwise>
			</xsl:choose></div>
			<div>
				<xsl:choose>
					<xsl:when test="$locale = 'ru'">Дата отчета: </xsl:when>
					<xsl:otherwise>Report date: </xsl:otherwise>
				</xsl:choose>
				<xsl:call-template name="formatDate">
					<xsl:with-param name="date" select="@ReportDate" />
				</xsl:call-template>
			</div>
		</div>
		<br/>
		<table style="font-size:small; ">
			<tr>
				<td><xsl:choose>
					<xsl:when test="$locale = 'ru'">Единый идентификатор Участника (Уникод):</xsl:when>
					<xsl:otherwise>Unified Member Code:</xsl:otherwise>
				</xsl:choose></td>
				<td style="font-weight:bold; "><xsl:text>&#160;</xsl:text><xsl:value-of select="string(@UniFirmId)"/></td>
			</tr>
			<tr>
				<td><xsl:choose>
					<xsl:when test="$locale = 'ru'">Наименование Участника:</xsl:when>
					<xsl:otherwise>Member Name:</xsl:otherwise>
				</xsl:choose></td>
				<td style="font-weight:bold; "><xsl:value-of select="string(@FirmName)"/></td>
			</tr>
		</table>
		<br/>
		<xsl:apply-templates />
	</xsl:template>
	
	<xsl:template match="CLIENT_LEGAL_STATUS[@LegalStatus = 'LEGAL_PERS']">
		<div style="font-size:small; font-style:italic; font-weight:bold; text-decoration:underline; ">
			<xsl:choose>
				<xsl:when test="$locale = 'ru'">Список клиентов - юридических лиц</xsl:when>
				<xsl:otherwise>Organizations</xsl:otherwise>
			</xsl:choose>
		</div>
		<xsl:apply-templates />
	</xsl:template>
	
	<xsl:template match="CLIENT_LEGAL_STATUS[@LegalStatus = 'INDIVIDUAL']">
		<div style="font-size:small; font-style:italic; font-weight:bold; text-decoration:underline; ">
			<xsl:choose>
				<xsl:when test="$locale = 'ru'">Список клиентов - физических лиц</xsl:when>
				<xsl:otherwise>Individuals</xsl:otherwise>
			</xsl:choose>
		</div>
		<xsl:apply-templates />
	</xsl:template>

	<xsl:template match="CLIENT_TYPE[@ClientType = 'CLIENT_SIMPLE']">
		<xsl:variable name="entity" select="../@LegalStatus"/>
		<div style="font-size:small; font-style:italic; ">
			<xsl:choose>
				<xsl:when test="$locale = 'ru'">Клиенты Участника или субброкера</xsl:when>
				<xsl:otherwise>Clients of Member or Sub-broker</xsl:otherwise>
			</xsl:choose>
		</div>
		<table style="border-collapse:collapse; font-size:x-small; " border="1">
			<thead>
				<tr>
					<th rowspan="2">
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Единый<br/>краткий код<br/>клиента
							</xsl:when>
							<xsl:otherwise>
								Unified<br/>client<br/>code
							</xsl:otherwise>
						</xsl:choose>
					</th>
					<th rowspan="2">
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Единый<br/>краткий код<br/>клиента<br/>1-го уровня
							</xsl:when>
							<xsl:otherwise>
								Unified<br/>client<br/>code<br/>of upper level
							</xsl:otherwise>
						</xsl:choose>
					</th>
					<th rowspan="2">
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Данные<br/>промежуточных<br/>клиентов
							</xsl:when>
							<xsl:otherwise>
								Intermediate<br/>clients<br/>data
							</xsl:otherwise>
						</xsl:choose>
					</th>
					<th rowspan="2">
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Код<br/>страны
							</xsl:when>
							<xsl:otherwise>
								Country<br/>code
							</xsl:otherwise>
						</xsl:choose>
					</th>
					<xsl:if test="$entity = 'LEGAL_PERS'">
						<th rowspan="2">
							<xsl:choose>
								<xsl:when test="$locale = 'ru'">
									ИНН/<br/>КИО
								</xsl:when>
								<xsl:otherwise>
									TIN/<br/>FOC
								</xsl:otherwise>
							</xsl:choose>
						</th>
						<th colspan="4">
							<xsl:choose>
								<xsl:when test="$locale = 'ru'">
									УК УТ
								</xsl:when>
								<xsl:otherwise>
									Clearin/Trading Member
								</xsl:otherwise>
							</xsl:choose>
						</th>
					</xsl:if>
					<xsl:if test="$entity = 'INDIVIDUAL'">
						<th rowspan="2">
							<xsl:choose>
								<xsl:when test="$locale = 'ru'">
									Тип<br/>документа<br/>клиента
								</xsl:when>
								<xsl:otherwise>
									Client<br/>document<br/>type
								</xsl:otherwise>
							</xsl:choose>
						</th>
						<th rowspan="2">
							<xsl:choose>
								<xsl:when test="$locale = 'ru'">
									Номер<br/>документа<br/>клиента
								</xsl:when>
								<xsl:otherwise>
									Client<br/>document<br/>number
								</xsl:otherwise>
							</xsl:choose>
						</th>
					</xsl:if>
					<th rowspan="2">
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Квалифици-<br/>рованный<br/>инвестор
							</xsl:when>
							<xsl:otherwise>
								Qualified<br/>investor
							</xsl:otherwise>
						</xsl:choose>
					</th>
					<th rowspan="2">
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Кросс-сделки<br/>в адресных режимах/<br/>кросс-заявки<br/>в безадресных
							</xsl:when>
							<xsl:otherwise>
								Cross-<br/>trade<br/>mode
							</xsl:otherwise>
						</xsl:choose>
					</th>
					<xsl:if test="$entity = 'LEGAL_PERS'">
						<th rowspan="2">
							<xsl:choose>
								<xsl:when test="$locale = 'ru'">
									Клиент<br/>является<br/>участником<br/>торгов
								</xsl:when>
								<xsl:otherwise>
									Client<br/>is<br/>trading<br/>member
								</xsl:otherwise>
							</xsl:choose>
						</th>
						<th rowspan="2">
							<xsl:choose>
								<xsl:when test="$locale = 'ru'">
									Страховая<br/>лицензия
								</xsl:when>
								<xsl:otherwise>
									Insurer<br/>license
								</xsl:otherwise>
							</xsl:choose>
						</th>
						<th rowspan="2">
							<xsl:choose>
								<xsl:when test="$locale = 'ru'">
									Валютная<br/>банковская<br/>лицензия
								</xsl:when>
								<xsl:otherwise>
									Bank<br/>currency<br/>license
								</xsl:otherwise>
							</xsl:choose>
						</th>
						<th rowspan="2">
							<xsl:choose>
								<xsl:when test="$locale = 'ru'">
									Номер<br/>банковской<br/>лицензии
								</xsl:when>
								<xsl:otherwise>
									Bank<br/>license<br/>number
								</xsl:otherwise>
							</xsl:choose>
						</th>
						<th rowspan="2">
							<xsl:choose>
								<xsl:when test="$locale = 'ru'">
									БИК
								</xsl:when>
								<xsl:otherwise>
									BIC
								</xsl:otherwise>
							</xsl:choose>
						</th>
						<th rowspan="2">
							<xsl:choose>
								<xsl:when test="$locale = 'ru'">
									Может быть<br/>брокером
								</xsl:when>
								<xsl:otherwise>
									Can act aa<br/>Broker
								</xsl:otherwise>
							</xsl:choose>
						</th>
						<th rowspan="2">
							<xsl:choose>
								<xsl:when test="$locale = 'ru'">
									Может быть<br/>управляющим<br/>для одного<br/>учредителя ДУ
								</xsl:when>
								<xsl:otherwise>
									Can act as<br/>Asset Management Trustee<br/>for single Trust Founder
								</xsl:otherwise>
							</xsl:choose>
						</th>
						<th rowspan="2">
							<xsl:choose>
								<xsl:when test="$locale = 'ru'">
									Может быть<br/>управляющим<br/>для группы<br/>учредителей ДУ
								</xsl:when>
								<xsl:otherwise>
									Can act as<br/>Asset Management Trustee<br/>for group of Trust Founders
								</xsl:otherwise>
							</xsl:choose>
						</th>
						<th rowspan="2">
							<xsl:choose>
								<xsl:when test="$locale = 'ru'">
									Может быть<br/>управляющим<br/>для фондов
								</xsl:when>
								<xsl:otherwise>
									Can act as<br/>Asset Management Trustee<br/>for Funds
								</xsl:otherwise>
							</xsl:choose>
						</th>
						<th rowspan="2">
							<xsl:choose>
								<xsl:when test="$locale = 'ru'">
									Является ДУ -<br/>иностранным<br/>юридическим лицом
								</xsl:when>
								<xsl:otherwise>
									Is a Trust - <br/>foreign legal entity
								</xsl:otherwise>
							</xsl:choose>
						</th>
						<th rowspan="2">
							<xsl:choose>
								<xsl:when test="$locale = 'ru'">
									Краткое наименование в соответствии с Уставом
								</xsl:when>
								<xsl:otherwise>
									Short name as by Statute
								</xsl:otherwise>
							</xsl:choose>
						</th>
					</xsl:if>
					<xsl:if test="$entity = 'INDIVIDUAL'">
						<th rowspan="2">
							<xsl:choose>
								<xsl:when test="$locale = 'ru'">
									ИИС
								</xsl:when>
								<xsl:otherwise>
									Individual Investment Account (IIA)
								</xsl:otherwise>
							</xsl:choose>
						</th>
						<th rowspan="2">
							<xsl:choose>
								<xsl:when test="$locale = 'ru'">
									ИИС<br/>существует<br/>у другого<br/>клиента
								</xsl:when>
								<xsl:otherwise>
									Another<br/>client<br/>has the IIA
								</xsl:otherwise>
							</xsl:choose>
						</th>
						<th rowspan="2">
							<xsl:choose>
								<xsl:when test="$locale = 'ru'">
									Документ<br/>представителя<br/>клиента
								</xsl:when>
								<xsl:otherwise>
									Representative<br/>document<br/>number
								</xsl:otherwise>
							</xsl:choose>
						</th>
						<th rowspan="2">
							<xsl:choose>
								<xsl:when test="$locale = 'ru'">
									Тип документа<br/>представителя<br/>клиента
								</xsl:when>
								<xsl:otherwise>
									Representative<br/>document<br/>type
								</xsl:otherwise>
							</xsl:choose>
						</th>
					</xsl:if>
					<th rowspan="2">
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Данные<br/>изменены
							</xsl:when>
							<xsl:otherwise>
								Data<br/>updated
							</xsl:otherwise>
						</xsl:choose>
					</th>
					<th rowspan="2">
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Идентификатор 437-П
							</xsl:when>
							<xsl:otherwise>
								437-P Identifier
							</xsl:otherwise>
						</xsl:choose>
					</th>
					<th rowspan="2">
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Возможность осуществления операций (сделок) с резидентами (TRD_RESTR)
							</xsl:when>
							<xsl:otherwise>
								Potential to make transactions (trades) with residents (TRD_RESTR)
							</xsl:otherwise>
						</xsl:choose>
					</th>
					<th rowspan="2">
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Состояние<br/>клиента
							</xsl:when>
							<xsl:otherwise>
								Client<br/>state
							</xsl:otherwise>
						</xsl:choose>
					</th>
					<th rowspan="2">
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Краткий код<br/>клиента<br/>на рынке
							</xsl:when>
							<xsl:otherwise>
								Short<br/>client code<br/>at market
							</xsl:otherwise>
						</xsl:choose>
					</th>
					<th rowspan="2">
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Код<br/>рынка
							</xsl:when>
							<xsl:otherwise>
								Market<br/>code
							</xsl:otherwise>
						</xsl:choose>
					</th>
					<th rowspan="2">
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Тип клиента<br/>на рынке
							</xsl:when>
							<xsl:otherwise>
								Client<br/>type
							</xsl:otherwise>
						</xsl:choose>
					</th>
					<xsl:if test="$entity = 'LEGAL_PERS'">
						<th rowspan="2">
							<xsl:choose>
								<xsl:when test="$locale = 'ru'">
									НПФ сами являясь участниками торгов могут размещать средства
								</xsl:when>
								<xsl:otherwise>
									Non-governmental pension funds themselves as trading members can place funds
								</xsl:otherwise>
							</xsl:choose>
						</th>
						<th rowspan="2">
							<xsl:choose>
								<xsl:when test="$locale = 'ru'">
									Код получателя дохода
								</xsl:when>
								<xsl:otherwise>
									Income receiver code
								</xsl:otherwise>
							</xsl:choose>
						</th>
					</xsl:if>
					<xsl:if test="$entity = 'INDIVIDUAL'">
						<th rowspan="2">
							<xsl:choose>
								<xsl:when test="$locale = 'ru'">
									ИИС<br/>на рынке
								</xsl:when>
								<xsl:otherwise>
									IIA<br/>at market
								</xsl:otherwise>
							</xsl:choose>
						</th>
					</xsl:if>
					<th rowspan="2">
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Кросс-сделки<br/>в адресных режимах/<br/>кросс-заявки<br/>в безадресных<br/>на рынке
							</xsl:when>
							<xsl:otherwise>
								Cross-trade<br/>mode<br/>at market
							</xsl:otherwise>
						</xsl:choose>
					</th>
					<xsl:if test="$entity = 'LEGAL_PERS'">
						<th rowspan="2">
							<xsl:choose>
								<xsl:when test="$locale = 'ru'">
									Может быть<br/>управляющим<br/>для группы<br/>учредителей ДУ<br/>на рынке
								</xsl:when>
								<xsl:otherwise>
									Can be an<br/>Asset Management Trustee<br/>for a group of Trust Founders<br/>at market
								</xsl:otherwise>
							</xsl:choose>
						</th>
					</xsl:if>
					<th rowspan="2">
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Наименование<br/>на рынке
							</xsl:when>
							<xsl:otherwise>
								Name<br/>at market
							</xsl:otherwise>
						</xsl:choose>
					</th>
					<xsl:if test="$entity = 'LEGAL_PERS'">
						<th rowspan="2">
							<xsl:choose>
								<xsl:when test="$locale = 'ru'">
									Номер портфеля
								</xsl:when>
								<xsl:otherwise>
									Portfolio number
								</xsl:otherwise>
							</xsl:choose>
						</th>
					</xsl:if>
					<th colspan="4">
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Идентификации бенефициаров
							</xsl:when>
							<xsl:otherwise>
								Beneficiaries identity
							</xsl:otherwise>
						</xsl:choose>
					</th>
					<th rowspan="2">
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Привязка ктк ФР к ктк на СР
							</xsl:when>
							<xsl:otherwise>
								Binding of short market code at SE to FO
							</xsl:otherwise>
						</xsl:choose>
					</th>
					<th rowspan="2">
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Категория
							</xsl:when>
							<xsl:otherwise>
								Category
							</xsl:otherwise>
						</xsl:choose>
					</th>
					<th rowspan="2">
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Категория уровня риска
							</xsl:when>
							<xsl:otherwise>
								Risk level category
							</xsl:otherwise>
						</xsl:choose>
					</th>
					<th rowspan="2">
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Дата<br/>регистрации<br/>на рынке
							</xsl:when>
							<xsl:otherwise>
								Date of<br/>registration<br/>at market
							</xsl:otherwise>
						</xsl:choose>
					</th>
					<th rowspan="2">
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Дата<br/>обработки запроса<br/>на удаление в ЕРК
							</xsl:when>
							<xsl:otherwise>
								Date of<br/>deleting<br/>in UCR
							</xsl:otherwise>
						</xsl:choose>
					</th>
					<th rowspan="2">
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Состояние<br/>клиента<br/>на рынке
							</xsl:when>
							<xsl:otherwise>
								Client<br/>state<br/>at market
							</xsl:otherwise>
						</xsl:choose>
					</th>
				</tr>
				<tr>
					<xsl:if test="$entity = 'LEGAL_PERS'">
						<th>
							<xsl:choose>
								<xsl:when test="$locale = 'ru'">
									Код налогоплательщика в стране регистрации
								</xsl:when>
								<xsl:otherwise>
									Taxpayer code in the country of registration
								</xsl:otherwise>
							</xsl:choose>
						</th>
						<th>
							SWIFT
						</th>
						<th>
							<xsl:choose>
								<xsl:when test="$locale = 'ru'">
									Уникод участника клиринга
								</xsl:when>
								<xsl:otherwise>
									Unified code of clearing member
								</xsl:otherwise>
							</xsl:choose>
						</th>
						<th>
							<xsl:choose>
								<xsl:when test="$locale = 'ru'">
									Международный код идентификации юридического лица
								</xsl:when>
								<xsl:otherwise>
									Legal entity identifier
								</xsl:otherwise>
							</xsl:choose>
						</th>
					</xsl:if>
					<th>
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Код зарегистрированного в НРД клиента Участника
							</xsl:when>
							<xsl:otherwise>
								Code of a Participant's client registered with NSD
							</xsl:otherwise>
						</xsl:choose>
					</th>
					<th>
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Применяемая ставка по дивидендам US-бумаг для клиента Участника по главе 3
							</xsl:when>
							<xsl:otherwise>
								Applicable dividend rate on US securities for a Participant's client under Chapter III
							</xsl:otherwise>
						</xsl:choose>
					</th>
					<th>
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Применяемая ставка по купонным доходам US-бумаг для клиента Участника по главе 3
							</xsl:when>
							<xsl:otherwise>
								Applicable coupon rate on US securities for a Participant's client under Chapter III
							</xsl:otherwise>
						</xsl:choose>
					</th>
					<th>
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Статус клиента Участника по главе 4
							</xsl:when>
							<xsl:otherwise>
								Status of a Participant's client under Chapter IV
							</xsl:otherwise>
						</xsl:choose>
					</th>
				</tr>
			</thead>
			<tbody>
				<xsl:for-each select="CLIENTS">
					<tr>
						<td style="padding-left:3pt; padding-right:3pt; text-align:center; " nowrap="set">
							<xsl:text>&#160;</xsl:text>
							<xsl:value-of select="@UniClientCode" />
						</td>
						<td style="padding-left:3pt; padding-right:3pt; text-align:center; " nowrap="set">
							<xsl:text>&#160;</xsl:text>
							<xsl:value-of select="@UniClientCodeMain"/>
						</td>
						<td style="padding-left:3pt; padding-right:3pt; text-align:center; " nowrap="set">
							<xsl:text>&#160;</xsl:text>
							<xsl:value-of select="@DETAILS_CHAIN"/>
						</td>
						<td style="padding-left:3pt; padding-right:3pt; text-align:center; ">
							<xsl:text>&#160;</xsl:text>
							<xsl:value-of select="@CountryCode"/>
						</td>
						<xsl:if test="$entity = 'LEGAL_PERS'">
							<td style="padding-left:3pt; padding-right:3pt; text-align:left; ">
								<xsl:text>&#160;</xsl:text>
								<xsl:value-of select="@INN"/>
								<xsl:value-of select="@KIO"/>
							</td>
							<td style="padding-left:3pt; padding-right:3pt; ">
								<xsl:text>&#160;</xsl:text>
								<xsl:value-of select="@NONRESIDENTTAXCODE"/>
							</td>
							<td style="padding-left:3pt; padding-right:3pt; ">
								<xsl:text>&#160;</xsl:text>
								<xsl:value-of select="@SWIFTCODE"/>
							</td>
							<td style="padding-left:3pt; padding-right:3pt; ">
								<xsl:text>&#160;</xsl:text>
								<xsl:value-of select="@CLEARINGUNICODE"/>
							</td>
							<td style="padding-left:3pt; padding-right:3pt; ">
								<xsl:text>&#160;</xsl:text>
								<xsl:value-of select="@LEI"/>
							</td>
						</xsl:if>
						<xsl:if test="$entity = 'INDIVIDUAL'">
							<td style="padding-left:3pt; padding-right:3pt; text-align:center; ">
								<xsl:choose>
									<xsl:when test="@DocType = &apos;BIRTH_CERTIFICATE&apos;">
										<xsl:choose>
											<xsl:when test="$locale = 'ru'">
												Свидетельство о рождении
											</xsl:when>
											<xsl:otherwise>
												Birth certificate
											</xsl:otherwise>
										</xsl:choose>
									</xsl:when>
									<xsl:otherwise>
										<xsl:call-template name="representative">
											<xsl:with-param name="type" select="@DocType" />
										</xsl:call-template>
									</xsl:otherwise>
								</xsl:choose>
							</td>
							<td style="padding-left:3pt; padding-right:3pt; " nowrap="set">
								<xsl:text>&#160;</xsl:text>
								<xsl:value-of select="@DocNo"/>
							</td>
						</xsl:if>
						<td style="padding-left:3pt; padding-right:3pt; text-align:center; ">
							<xsl:call-template name="yesOrNo">
								<xsl:with-param name="value" select="@isQualInvestor" />
							</xsl:call-template>
						</td>
						<td style="padding-left:3pt; padding-right:3pt; text-align:center; ">
							<xsl:call-template name="crossTrades">
								<xsl:with-param name="value" select="@isCrossTrades" />
							</xsl:call-template>
						</td>
						<xsl:if test="$entity = 'LEGAL_PERS'">
							<td style="padding-left:3pt; padding-right:3pt; text-align:center; ">
								<xsl:call-template name="yesOrNo">
									<xsl:with-param name="value" select="@isSelfFirm" />
								</xsl:call-template>
							</td>
							<td style="padding-left:3pt; padding-right:3pt; text-align:center; ">
								<xsl:call-template name="yesOrNo">
									<xsl:with-param name="value" select="@isInsureLicense" />
								</xsl:call-template>
							</td>
							<td style="padding-left:3pt; padding-right:3pt; text-align:center; ">
								<xsl:call-template name="yesOrNo">
									<xsl:with-param name="value" select="@isCurrencyLicense" />
								</xsl:call-template>
							</td>
							<td style="padding-left:3pt; padding-right:3pt; text-align:center; ">
								<xsl:text>&#160;</xsl:text>
								<xsl:value-of select="@BankLicense"/>
							</td>
							<td style="padding-left:3pt; padding-right:3pt; ">
								<xsl:text>&#160;</xsl:text>
								<xsl:value-of select="@BIC"/>
							</td>
							<td style="padding-left:3pt; padding-right:3pt; text-align:center; ">
								<xsl:call-template name="yesOrNo">
									<xsl:with-param name="value" select="@isMainBroker" />
								</xsl:call-template>
							</td>
							<td style="padding-left:3pt; padding-right:3pt; text-align:center; ">
								<xsl:call-template name="yesOrNo">
									<xsl:with-param name="value" select="@isMainSingleDU" />
								</xsl:call-template>
							</td>
							<td style="padding-left:3pt; padding-right:3pt; text-align:center; ">
								<xsl:call-template name="yesOrNo">
									<xsl:with-param name="value" select="@isMainGroupDU" />
								</xsl:call-template>
							</td>
							<td style="padding-left:3pt; padding-right:3pt; text-align:center; ">
								<xsl:call-template name="yesOrNo">
									<xsl:with-param name="value" select="@isMainPF" />
								</xsl:call-template>
							</td>
							<td style="padding-left:3pt; padding-right:3pt; text-align:center; ">
								<xsl:call-template name="yesOrNo">
									<xsl:with-param name="value" select="@IS_DU_NOTREZ" />
								</xsl:call-template>
							</td>
							<td style="padding-left:3pt; padding-right:3pt; ">
								<xsl:value-of select="@ShortName"/>
							</td>
						</xsl:if>
						<xsl:if test="$entity = 'INDIVIDUAL'">
							<td style="padding-left:3pt; padding-right:3pt; text-align:center; ">
								<xsl:call-template name="yesOrNo">
									<xsl:with-param name="value" select="@isIISContract" />
								</xsl:call-template>
							</td>
							<td style="padding-left:3pt; padding-right:3pt; text-align:center; ">
								<xsl:call-template name="yesOrNo">
									<xsl:with-param name="value" select="@isPresentIISContract" />
								</xsl:call-template>
							</td>
							<td style="padding-left:3pt; padding-right:3pt; text-align:left; " nowrap="set">
								<xsl:text>&#160;</xsl:text>
								<xsl:value-of select="@RepresentativeDocNo"/>
							</td>
							<td style="padding-left:3pt; padding-right:3pt; text-align:center; ">
								<xsl:call-template name="representative">
									<xsl:with-param name="type" select="@RepresentativeDocType"/>
								</xsl:call-template>
							</td>
						</xsl:if>
						<td style="padding-left:3pt; padding-right:3pt; text-align:center; ">
							<xsl:call-template name="yesOrNo">
								<xsl:with-param name="value" select="@DataChanged" />
							</xsl:call-template>
						</td>
						<td style="padding-left:3pt; padding-right:3pt; " nowrap="set">
							<xsl:text>&#160;</xsl:text>
							<xsl:value-of select="@ID_P437"/>
						</td>
						<td style="padding-left:3pt; padding-right:3pt; text-align:center; ">
							<xsl:value-of select="@TRD_RESTR"/>
						</td>
						<td style="padding-left:3pt; padding-right:3pt; text-align:center; ">
							<xsl:value-of select="@Status"/>
						</td>
						
						<xsl:for-each select="CLIENT_MARKETS[1]">
							<xsl:call-template name="market">
								<xsl:with-param name="client" select="'simple'"/>
								<xsl:with-param name="entity" select="$entity"/>
							</xsl:call-template>
						</xsl:for-each>
						<xsl:for-each select="CLIENT_MARKETS[position() > 1]">
							<tr>
								<xsl:choose>
									<xsl:when test="$entity = 'LEGAL_PERS'">
										<td colspan="26" style="border-bottom:0; border-top:0; "/>
									</xsl:when>
									<xsl:when test="$entity = 'INDIVIDUAL'">
										<td colspan="16" style="border-bottom:0; border-top:0; "/>
									</xsl:when>
								</xsl:choose>
								<xsl:call-template name="market">
									<xsl:with-param name="client" select="'simple'"/>
									<xsl:with-param name="entity" select="$entity"/>
								</xsl:call-template>
							</tr>
						</xsl:for-each>
					</tr>
				</xsl:for-each>
			</tbody>
		</table>
		<br/>
	</xsl:template>

	<xsl:template match="CLIENT_TYPE[@ClientType = 'CLIENT_DU']">
		<xsl:variable name="entity" select="../@LegalStatus"/>
		<div style="font-size:small; font-style:italic; ">
			<xsl:choose>
				<xsl:when test="$locale = 'ru'">Учредители доверительного управления, в интересах которых Участник или клиент Участника выступает в качестве управляющего</xsl:when>
				<xsl:otherwise>Founders of trust management</xsl:otherwise>
			</xsl:choose>
		</div>
		<table style="border-collapse:collapse; font-size:x-small; " border="1">
			<thead>
				<tr>
					<th>
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Единый<br/>краткий код<br/>клиента
							</xsl:when>
							<xsl:otherwise>
								Unified<br/>client<br/>code
							</xsl:otherwise>
						</xsl:choose>
					</th>
					<th>
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Единый<br/>краткий код<br/>клиента<br/>управляющего
							</xsl:when>
							<xsl:otherwise>
								Unified<br/>client<br/>code<br/>of manager
							</xsl:otherwise>
						</xsl:choose>
					</th>
					<th>
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Краткий код<br/>пула учредителей<br/>ДУ клиента<br/>управляющего
							</xsl:when>
							<xsl:otherwise>
								Short client code<br/>for the pool of Trust Founders<br/>of the Asset Management Trustee's client
							</xsl:otherwise>
						</xsl:choose>
					</th>
					<th>
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Код рынка<br/>для пула учредителей<br/>ДУ клиента<br/>управляющего
							</xsl:when>
							<xsl:otherwise>
								Market code<br/>for the pool of Trust Founders<br/>of the Asset Management Trustee's client
							</xsl:otherwise>
						</xsl:choose>
					</th>
					<th>
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Код<br/>страны
							</xsl:when>
							<xsl:otherwise>
								Country<br/>code
							</xsl:otherwise>
						</xsl:choose>
					</th>
					<xsl:if test="$entity = 'LEGAL_PERS'">
						<th>
							<xsl:choose>
								<xsl:when test="$locale = 'ru'">
									ИНН/<br/>КИО
								</xsl:when>
								<xsl:otherwise>
									TIN/<br/>FOC
								</xsl:otherwise>
							</xsl:choose>
						</th>
					</xsl:if>
					<xsl:if test="$entity = 'INDIVIDUAL'">
						<th>
							<xsl:choose>
								<xsl:when test="$locale = 'ru'">
									Номер<br/>документа<br/>клиента
								</xsl:when>
								<xsl:otherwise>
									Client<br/>document<br/>number
								</xsl:otherwise>
							</xsl:choose>
						</th>
					</xsl:if>
					<th>
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Квалифици-<br/>рованный<br/>инвестор
							</xsl:when>
							<xsl:otherwise>
								Qualified<br/>investor
							</xsl:otherwise>
						</xsl:choose>
					</th>
					<xsl:if test="$entity = 'LEGAL_PERS'">
						<th>
							<xsl:choose>
								<xsl:when test="$locale = 'ru'">
									Страховая<br/>лицензия
								</xsl:when>
								<xsl:otherwise>
									Insurer<br/>license
								</xsl:otherwise>
							</xsl:choose>
						</th>
						<th>
							<xsl:choose>
								<xsl:when test="$locale = 'ru'">
									Валютная<br/>банковская<br/>лицензия
								</xsl:when>
								<xsl:otherwise>
									Bank<br/>currency<br/>license
								</xsl:otherwise>
							</xsl:choose>
						</th>
						<th>
							<xsl:choose>
								<xsl:when test="$locale = 'ru'">
									Номер<br/>банковской<br/>лицензии
								</xsl:when>
								<xsl:otherwise>
									Bank<br/>license<br/>number
								</xsl:otherwise>
							</xsl:choose>
						</th>
						<th>
							<xsl:choose>
								<xsl:when test="$locale = 'ru'">
									БИК
								</xsl:when>
								<xsl:otherwise>
									BIC
								</xsl:otherwise>
							</xsl:choose>
						</th>
					</xsl:if>
					<xsl:if test="$entity = 'INDIVIDUAL'">
						<th>
							<xsl:choose>
								<xsl:when test="$locale = 'ru'">
									ИИС
								</xsl:when>
								<xsl:otherwise>
									Individual Investment Account (IIA)
								</xsl:otherwise>
							</xsl:choose>
						</th>
						<th>
							<xsl:choose>
								<xsl:when test="$locale = 'ru'">
									ИИС<br/>существует<br/>у другого<br/>клиента
								</xsl:when>
								<xsl:otherwise>
									Another<br/>client<br/>has the IIA
								</xsl:otherwise>
							</xsl:choose>
						</th>
						<th>
							<xsl:choose>
								<xsl:when test="$locale = 'ru'">
									Документ<br/>представителя<br/>клиента
								</xsl:when>
								<xsl:otherwise>
									Representative<br/>document<br/>number
								</xsl:otherwise>
							</xsl:choose>
						</th>
						<th>
							<xsl:choose>
								<xsl:when test="$locale = 'ru'">
									Тип документа<br/>представителя<br/>клиента
								</xsl:when>
								<xsl:otherwise>
									Representative<br/>document<br/>type
								</xsl:otherwise>
							</xsl:choose>
						</th>
					</xsl:if>
					<th>
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Данные<br/>изменены
							</xsl:when>
							<xsl:otherwise>
								Data<br/>updated
							</xsl:otherwise>
						</xsl:choose>
					</th>
					<th>
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Идентификатор 437-П
							</xsl:when>
							<xsl:otherwise>
								437-P Identifier
							</xsl:otherwise>
						</xsl:choose>
					</th>
					<th>
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Возможность осуществления операций (сделок) с резидентами (TRD_RESTR)
							</xsl:when>
							<xsl:otherwise>
								Potential to make transactions (trades) with residents (TRD_RESTR)
							</xsl:otherwise>
						</xsl:choose>
					</th>
					<th>
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Состояние<br/>клиента
							</xsl:when>
							<xsl:otherwise>
								Client<br/>state
							</xsl:otherwise>
						</xsl:choose>
					</th>
					<th>
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Краткий код<br/>клиента<br/>на рынке
							</xsl:when>
							<xsl:otherwise>
								Short<br/>client code<br/>at market
							</xsl:otherwise>
						</xsl:choose>
					</th>
					<th>
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Код<br/>рынка
							</xsl:when>
							<xsl:otherwise>
								Market<br/>code
							</xsl:otherwise>
						</xsl:choose>
					</th>
					<th>
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Тип клиента<br/>на рынке
							</xsl:when>
							<xsl:otherwise>
								Client<br/>type
							</xsl:otherwise>
						</xsl:choose>
					</th>
					<xsl:if test="$entity = 'LEGAL_PERS'">
						<th>
							<xsl:choose>
								<xsl:when test="$locale = 'ru'">
									Код получателя дохода
								</xsl:when>
								<xsl:otherwise>
									Income receiver code
								</xsl:otherwise>
							</xsl:choose>
						</th>
					</xsl:if>
					<xsl:if test="$entity = 'INDIVIDUAL'">
						<th>
							<xsl:choose>
								<xsl:when test="$locale = 'ru'">
									ИИС<br/>на рынке
								</xsl:when>
								<xsl:otherwise>
									IIA<br/>at market
								</xsl:otherwise>
							</xsl:choose>
						</th>
					</xsl:if>
					<th>
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Наименование<br/>на рынке
							</xsl:when>
							<xsl:otherwise>
								Name<br/>at market
							</xsl:otherwise>
						</xsl:choose>
					</th>
					<th>
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Привязка ктк ФР к ктк на СР
							</xsl:when>
							<xsl:otherwise>
								Binding of short market code at SE to FO
							</xsl:otherwise>
						</xsl:choose>
					</th>
					<th>
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Категория
							</xsl:when>
							<xsl:otherwise>
								Category
							</xsl:otherwise>
						</xsl:choose>
					</th>
					<th>
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Категория уровня риска
							</xsl:when>
							<xsl:otherwise>
								Risk level category
							</xsl:otherwise>
						</xsl:choose>
					</th>
					<th>
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Дата<br/>регистрации<br/>на рынке
							</xsl:when>
							<xsl:otherwise>
								Date of<br/>registration<br/>at market
							</xsl:otherwise>
						</xsl:choose>
					</th>
					<th>
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Дата<br/>обработки запроса<br/>на удаление в ЕРК
							</xsl:when>
							<xsl:otherwise>
								Date of<br/>deleting<br/>in UCR
							</xsl:otherwise>
						</xsl:choose>
					</th>
					<th>
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Состояние<br/>клиента<br/>на рынке
							</xsl:when>
							<xsl:otherwise>
								Client<br/>state<br/>at market
							</xsl:otherwise>
						</xsl:choose>
					</th>
				</tr>
			</thead>
			<tbody>
				<xsl:for-each select="CLIENTS">
					<tr>
						<td style="padding-left:3pt; padding-right:3pt; text-align:center; " nowrap="set">
							<xsl:text>&#160;</xsl:text>
							<xsl:value-of select="@UniClientCode"/>
						</td>
						<td style="padding-left:3pt; padding-right:3pt; text-align:center; " nowrap="set">
							<xsl:text>&#160;</xsl:text>
							<xsl:value-of select="@UniClientCodeMain"/>
						</td>
						<td style="padding-left:3pt; padding-right:3pt; text-align:center; " nowrap="set">
							<xsl:text>&#160;</xsl:text>
							<xsl:value-of select="@ClientCodeMain"/>
						</td>
						<td style="padding-left:3pt; padding-right:3pt; text-align:center; ">
							<xsl:value-of select="@MarketIdMain"/>
						</td>
						<td style="padding-left:3pt; padding-right:3pt; text-align:center; ">
							<xsl:text>&#160;</xsl:text>
							<xsl:value-of select="@CountryCode"/>
						</td>
						<xsl:if test="$entity = 'LEGAL_PERS'">
							<td style="padding-left:3pt; padding-right:3pt; ">
								<xsl:text>&#160;</xsl:text>
								<xsl:value-of select="@INN"/>
								<xsl:value-of select="@KIO"/>
							</td>
						</xsl:if>
						<xsl:if test="$entity = 'INDIVIDUAL'">
							<td style="padding-left:3pt; padding-right:3pt; ">
								<xsl:value-of select="@DocNo"/>
							</td>
						</xsl:if>
						<td style="padding-left:3pt; padding-right:3pt; text-align:center; ">
							<xsl:call-template name="yesOrNo">
								<xsl:with-param name="value" select="@isQualInvestor" />
							</xsl:call-template>
						</td>
						<xsl:if test="$entity = 'LEGAL_PERS'">
							<td style="padding-left:3pt; padding-right:3pt; text-align:center; ">
								<xsl:call-template name="yesOrNo">
									<xsl:with-param name="value" select="@isInsureLicense" />
								</xsl:call-template>
							</td>
							<td style="padding-left:3pt; padding-right:3pt; text-align:center; ">
								<xsl:call-template name="yesOrNo">
									<xsl:with-param name="value" select="@isCurrencyLicense" />
								</xsl:call-template>
							</td>
							<td style="padding-left:3pt; padding-right:3pt; text-align:center; ">
								<xsl:value-of select="@BankLicense"/>
							</td>
							<td style="padding-left:3pt; padding-right:3pt; ">
								<xsl:text>&#160;</xsl:text>
								<xsl:value-of select="@BIC"/>
							</td>
						</xsl:if>
						<xsl:if test="$entity = 'INDIVIDUAL'">
							<td style="padding-left:3pt; padding-right:3pt; text-align:center; ">
								<xsl:call-template name="yesOrNo">
									<xsl:with-param name="value" select="@isIISContract" />
								</xsl:call-template>
							</td>
							<td style="padding-left:3pt; padding-right:3pt; text-align:center; ">
								<xsl:call-template name="yesOrNo">
									<xsl:with-param name="value" select="@isPresentIISContract" />
								</xsl:call-template>
							</td>
							<td style="padding-left:3pt; padding-right:3pt; " nowrap="set">
								<xsl:text>&#160;</xsl:text>
								<xsl:value-of select="@RepresentativeDocNo"/>
							</td>
							<td style="padding-left:3pt; padding-right:3pt; text-align:center; ">
								<xsl:call-template name="representative">
									<xsl:with-param name="type" select="@RepresentativeDocType"/>
								</xsl:call-template>
							</td>
						</xsl:if>
						<td style="padding-left:3pt; padding-right:3pt; text-align:center; ">
							<xsl:call-template name="yesOrNo">
								<xsl:with-param name="value" select="@DataChanged" />
							</xsl:call-template>
						</td>
						<td style="padding-left:3pt; padding-right:3pt; " nowrap="set">
							<xsl:text>&#160;</xsl:text>
							<xsl:value-of select="@ID_P437"/>
						</td>
						<td style="padding-left:3pt; padding-right:3pt; text-align:center; ">
							<xsl:value-of select="@TRD_RESTR"/>
						</td>
						<td style="padding-left:3pt; padding-right:3pt; text-align:center; ">
							<xsl:value-of select="@Status"/>
						</td>


						<xsl:for-each select="CLIENT_MARKETS[1]">
							<xsl:call-template name="market">
								<xsl:with-param name="client" select="'trust'"/>
								<xsl:with-param name="entity" select="$entity"/>
							</xsl:call-template>
						</xsl:for-each>
						<xsl:for-each select="CLIENT_MARKETS[position() > 1]">
							<tr>
								<td colspan="15" style="border-bottom:0; border-top:0; "/>
								<xsl:call-template name="market">
									<xsl:with-param name="client" select="'trust'"/>
									<xsl:with-param name="entity" select="$entity"/>
								</xsl:call-template>
							</tr>
						</xsl:for-each>
					</tr>
				</xsl:for-each>
			</tbody>
		</table>
		<br/>
	</xsl:template>

	<xsl:template match="CLIENT_TYPE[@ClientType = 'CLIENT_PF']">
		<xsl:variable name="entity" select="../@LegalStatus"/>
		<div style="font-size:small; font-style:italic; ">
			<xsl:choose>
				<xsl:when test="$locale = 'ru'">Фонды, в интересах которых Участник или клиент Участника, выступает в качестве Управляющего</xsl:when>
				<xsl:otherwise>Funds for whom a Participant or a Participant's client acts as Asset Management Trustee</xsl:otherwise>
			</xsl:choose>
		</div>
		<table style="border-collapse:collapse; font-size:x-small; " border="1">
			<thead>
				<tr>
					<th>
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Единый<br/>краткий код<br/>клиента
							</xsl:when>
							<xsl:otherwise>
								Unified<br/>client<br/>code
							</xsl:otherwise>
						</xsl:choose>
					</th>
					<th>
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Единый<br/>краткий код<br/>клиента<br/>управляющего
							</xsl:when>
							<xsl:otherwise>
								Unified<br/>client<br/>code<br/>of manager
							</xsl:otherwise>
						</xsl:choose>
					</th>
					<th>
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Тип фонда
							</xsl:when>
							<xsl:otherwise>
								Fund type
							</xsl:otherwise>
						</xsl:choose>
					</th>
					<th>
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Тип<br/>паевого<br/>инвестиционного<br/>фонда
							</xsl:when>
							<xsl:otherwise>
								Mutual<br/>fund<br/>type
							</xsl:otherwise>
						</xsl:choose>
					</th>
					<th>
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Информация<br/>идентифицирующая<br/>фонд
							</xsl:when>
							<xsl:otherwise>
								Fund<br/>identification
							</xsl:otherwise>
						</xsl:choose>
					</th>
					<th>
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Квалифици-<br/>рованный<br/>инвестор
							</xsl:when>
							<xsl:otherwise>
								Qualified<br/>investor
							</xsl:otherwise>
						</xsl:choose>
					</th>
					<th>
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Данные<br/>изменены
							</xsl:when>
							<xsl:otherwise>
								Data<br/>updated
							</xsl:otherwise>
						</xsl:choose>
					</th>
					<th>
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Идентификатор 437-П
							</xsl:when>
							<xsl:otherwise>
								437-P Identifier
							</xsl:otherwise>
						</xsl:choose>
					</th>
					<th>
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Возможность осуществления операций (сделок) с резидентами (TRD_RESTR)
							</xsl:when>
							<xsl:otherwise>
								Potential to make transactions (trades) with residents (TRD_RESTR)
							</xsl:otherwise>
						</xsl:choose>
					</th>
					<th>
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Состояние<br/>клиента
							</xsl:when>
							<xsl:otherwise>
								Client<br/>state
							</xsl:otherwise>
						</xsl:choose>
					</th>
					<th>
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Краткий код<br/>клиента<br/>на рынке
							</xsl:when>
							<xsl:otherwise>
								Short<br/>client code<br/>at market
							</xsl:otherwise>
						</xsl:choose>
					</th>
					<th>
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Код<br/>рынка
							</xsl:when>
							<xsl:otherwise>
								Market<br/>code
							</xsl:otherwise>
						</xsl:choose>
					</th>
					<th>
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Тип клиента<br/>на рынке
							</xsl:when>
							<xsl:otherwise>
								Client<br/>type
							</xsl:otherwise>
						</xsl:choose>
					</th>
					<th>
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Код получателя дохода
							</xsl:when>
							<xsl:otherwise>
								Income receiver code
							</xsl:otherwise>
						</xsl:choose>
					</th>
					<th>
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Наименование<br/>на рынке
							</xsl:when>
							<xsl:otherwise>
								Name<br/>at market
							</xsl:otherwise>
						</xsl:choose>
					</th>
					<th>
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Привязка ктк ФР к ктк на СР
							</xsl:when>
							<xsl:otherwise>
								Binding of short market code at SE to FO
							</xsl:otherwise>
						</xsl:choose>
					</th>
					<th>
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Категория
							</xsl:when>
							<xsl:otherwise>
								Category
							</xsl:otherwise>
						</xsl:choose>
					</th>
					<th>
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Категория уровня риска
							</xsl:when>
							<xsl:otherwise>
								Risk level category
							</xsl:otherwise>
						</xsl:choose>
					</th>
					<th>
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Разрешение на кросс-сделки между ПИФами
							</xsl:when>
							<xsl:otherwise>
								Cross-trades between mutual funds
							</xsl:otherwise>
						</xsl:choose>
					</th>
					<th>
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Дата<br/>регистрации<br/>на рынке
							</xsl:when>
							<xsl:otherwise>
								Date of<br/>registration<br/>at market
							</xsl:otherwise>
						</xsl:choose>
					</th>
					<th>
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Дата<br/>обработки запроса<br/>на удаление в ЕРК
							</xsl:when>
							<xsl:otherwise>
								Date of<br/>deleting<br/>in UCR
							</xsl:otherwise>
						</xsl:choose>
					</th>
					<th>
						<xsl:choose>
							<xsl:when test="$locale = 'ru'">
								Состояние<br/>клиента<br/>на рынке
							</xsl:when>
							<xsl:otherwise>
								Client<br/>state<br/>at market
							</xsl:otherwise>
						</xsl:choose>
					</th>
				</tr>
			</thead>
			<tbody>
				<xsl:for-each select="CLIENTS">
					<tr>
						<td style="padding-left:3pt; padding-right:3pt; text-align:center; " nowrap="set">
							<xsl:text>&#160;</xsl:text>
							<xsl:value-of select="@UniClientCode"/>
						</td>
						<td style="padding-left:3pt; padding-right:3pt; text-align:center; " nowrap="set">
							<xsl:text>&#160;</xsl:text>
							<xsl:value-of select="@UniClientCodeMain"/>
						</td>
						<td style="padding-left:3pt; padding-right:3pt; text-align:center; ">
							<xsl:choose>
								<xsl:when test="@PF_Type = &apos;PIF&apos;">
									<xsl:choose>
										<xsl:when test="$locale = 'ru'">
											Управляющий для ПИФ
										</xsl:when>
										<xsl:otherwise>
											Asset Manager for mutual funds
										</xsl:otherwise>
									</xsl:choose>
								</xsl:when>
								<xsl:when test="@PF_Type = &apos;NPF_Save&apos;">
									<xsl:choose>
										<xsl:when test="$locale = 'ru'">
											Управляющий пенсионными накоплениями негосударственного пенсионного фонда
										</xsl:when>
										<xsl:otherwise>
											Asset Manager of private pension scheme funds
										</xsl:otherwise>
									</xsl:choose>
								</xsl:when>
								<xsl:when test="@PF_Type = &apos;NPF_Reserv&apos;">
									<xsl:choose>
										<xsl:when test="$locale = 'ru'">
											Управляющий пенсионными резервами негосударственного пенсионного фонда
										</xsl:when>
										<xsl:otherwise>
											Asset Manager of pension reserves of private pension schemes
										</xsl:otherwise>
									</xsl:choose>
								</xsl:when>
								<xsl:when test="@PF_Type = &apos;NPF_Ustav&apos;">
									<xsl:choose>
										<xsl:when test="$locale = 'ru'">
											Управляющий имуществом, предназначенным для обеспечения уставной деятельности либо собственных средств негосударственного пенсионного фонда
										</xsl:when>
										<xsl:otherwise>
											Asset Manager of property  intended for assuring the statutory activity or the private pension scheme own funds
										</xsl:otherwise>
									</xsl:choose>
								</xsl:when>
								<xsl:when test="@PF_Type = &apos;PF&apos;">
									<xsl:choose>
										<xsl:when test="$locale = 'ru'">
											Управляющий, которому Пенсионным фондом РФ переданы в доверительное управление средства пенсионных накоплений
										</xsl:when>
										<xsl:otherwise>
											Asset Manager to whom the Pension Fund of the Russian Federation has placed pension savings in trust management
										</xsl:otherwise>
									</xsl:choose>
								</xsl:when>
								<xsl:when test="@PF_Type = &apos;HomeMilitary&apos;">
									<xsl:choose>
										<xsl:when test="$locale = 'ru'">
											Управляющая компания, осуществляющая доверительное управление накоплениями для жилищного обеспечения военнослужащих
										</xsl:when>
										<xsl:otherwise>
											Management company that manages savings for military housing on a trust basis
										</xsl:otherwise>
									</xsl:choose>
								</xsl:when>
							</xsl:choose>
						</td>
						<td style="padding-left:3pt; padding-right:3pt; text-align:center; ">
							<xsl:choose>
								<xsl:when test="@PIF_TYPE=&apos;OF&apos;">
									<xsl:choose>
										<xsl:when test="$locale = 'ru'">
											открытый
										</xsl:when>
										<xsl:otherwise>
											public
										</xsl:otherwise>
									</xsl:choose>
								</xsl:when>
								<xsl:when test="@PIF_TYPE=&apos;CF&apos;">
									<xsl:choose>
										<xsl:when test="$locale = 'ru'">
											закрытый
										</xsl:when>
										<xsl:otherwise>
											private
										</xsl:otherwise>
									</xsl:choose>
								</xsl:when>
								<xsl:when test="@PIF_TYPE=&apos;IF&apos;">
									<xsl:choose>
										<xsl:when test="$locale = 'ru'">
											интервальный
										</xsl:when>
										<xsl:otherwise>
											interval
										</xsl:otherwise>
									</xsl:choose>
								</xsl:when>
								<xsl:when test="@PIF_TYPE=&apos;EF&apos;">
									<xsl:choose>
										<xsl:when test="$locale = 'ru'">
											биржевой
										</xsl:when>
										<xsl:otherwise>
											exchange
										</xsl:otherwise>
									</xsl:choose>
								</xsl:when>
							</xsl:choose>
						</td>
						<td style="padding-left:3pt; padding-right:3pt; ">
							<xsl:text>&#160;</xsl:text>
							<xsl:value-of select="@PF_InfoData"/>
						</td>
						<td style="padding-left:3pt; padding-right:3pt; text-align:center; ">
							<xsl:call-template name="yesOrNo">
								<xsl:with-param name="value" select="@isQualInvestor" />
							</xsl:call-template>
						</td>
						<td style="padding-left:3pt; padding-right:3pt; text-align:center; ">
							<xsl:call-template name="yesOrNo">
								<xsl:with-param name="value" select="@DataChanged" />
							</xsl:call-template>
						</td>
						<td style="padding-left:3pt; padding-right:3pt; " nowrap="set">
							<xsl:text>&#160;</xsl:text>
							<xsl:value-of select="@ID_P437"/>
						</td>
						<td style="padding-left:3pt; padding-right:3pt; text-align:center; ">
							<xsl:value-of select="@TRD_RESTR"/>
						</td>
						<td style="padding-left:3pt; padding-right:3pt; text-align:center; ">
							<xsl:value-of select="@Status"/>
						</td>

						<xsl:for-each select="CLIENT_MARKETS[1]">
							<xsl:call-template name="market">
								<xsl:with-param name="client" select="'fund'"/>
								<xsl:with-param name="entity" select="$entity"/>
							</xsl:call-template>
						</xsl:for-each>
						<xsl:for-each select="CLIENT_MARKETS[position() > 1]">
							<tr>
								<td colspan="10" style="border-bottom:0; border-top:0; "/>
								<xsl:call-template name="market">
									<xsl:with-param name="client" select="'fund'"/>
									<xsl:with-param name="entity" select="$entity"/>
								</xsl:call-template>
							</tr>
						</xsl:for-each>
					</tr>
				</xsl:for-each>
			</tbody>
		</table>
		<br/>
	</xsl:template>

</xsl:stylesheet>
