﻿<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<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:decimal-format decimal-separator="," grouping-separator=" " />
	<xsl:template match="/">
		<html>
			<head>
				<title/>
				<meta http-equiv="X-UA-Compatible" content="IE=5"/>
				<style type="text/css">
					@page
					{
					margin-left:0.6in;
					margin-right:0.6in;
					margin-top:0.79in;
					margin-bottom:0.79in
					}
				</style>
				<style>
					td
					{padding-top:1px;
					padding-right:3px;
					padding-bottom:1px;
					padding-left:3px;
					color:windowtext;
					font-size:10pt;			
					font-style:normal;
					text-decoration:none;
					font-family:"Arial";
					text-align:general;
					vertical-align:center;					
					word-wrap:break-word;}
				

				</style>
			</head>
			<body>
				<xsl:for-each select="$XML1">					
					<xsl:for-each select="RTS_DOC">
						
						<xsl:for-each select="DOC_REQUISITES">
						</xsl:for-each>							
							<xsl:for-each select="SPB_IPO">
								<table width="100%" style="word-wrap:break-word; border:0; border-bottom:0; border-collapse:collapse; border-left:0; border-right:0;"  >
										<th colspan="5" style="text-align:left; vertical-align:Center; border-bottom:0; word-wrap:break-word; font-size:15; font-weight:bold;">
											<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>
										</th>
										<tr  style="text-align:center;">
											<td width="10%" >
												<xsl:text>Период:</xsl:text>
											</td>
											<td width="10%" style="text-align:left; ">
												<xsl:for-each select="@ReportDate">
													<span>
														<xsl:variable name="seqContentStrings_1">
															<xsl:choose>
																<xsl:when test="format-number(number(substring(string(string(.)), 6, 2)), '00')=01">
																	<xsl:text>Январь </xsl:text>
																</xsl:when>
																<xsl:when test="format-number(number(substring(string(string(.)), 6, 2)), '00')=02">
																	<xsl:text>Февраль </xsl:text>
																</xsl:when>
																<xsl:when test="format-number(number(substring(string(string(.)), 6, 2)), '00')=03">
																	<xsl:text>Март </xsl:text>
																</xsl:when>
																<xsl:when test="format-number(number(substring(string(string(.)), 6, 2)), '00')=04">
																	<xsl:text>Апрель </xsl:text>
																</xsl:when>
																<xsl:when test="format-number(number(substring(string(string(.)), 6, 2)), '00')=05">
																	<xsl:text>Май </xsl:text>
																</xsl:when>
																<xsl:when test="format-number(number(substring(string(string(.)), 6, 2)), '00')=06">
																	<xsl:text>Июнь </xsl:text>
																</xsl:when>
																<xsl:when test="format-number(number(substring(string(string(.)), 6, 2)), '00')=07">
																	<xsl:text>Июль </xsl:text>
																</xsl:when>
																<xsl:when test="format-number(number(substring(string(string(.)), 6, 2)), '00')=08">
																	<xsl:text>Август </xsl:text>
																</xsl:when>
																<xsl:when test="format-number(number(substring(string(string(.)), 6, 2)), '00')=09">
																	<xsl:text>Сентябрь </xsl:text>
																</xsl:when>
																<xsl:when test="format-number(number(substring(string(string(.)), 6, 2)), '00')=10">
																	<xsl:text>Октябрь </xsl:text>
																</xsl:when>
																<xsl:when test="format-number(number(substring(string(string(.)), 6, 2)), '00')=11">
																	<xsl:text>Ноябрь </xsl:text>
																</xsl:when>
																<xsl:when test="format-number(number(substring(string(string(.)), 6, 2)), '00')=12">
																	<xsl:text>Декабрь </xsl:text>
																</xsl:when>
															</xsl:choose>
															<xsl:value-of select="format-number(number(substring(string(string(string(.))), 1, 4)), '0000')"/>
															<xsl:text> г.</xsl:text>
														</xsl:variable>
														<xsl:variable name="sContent_1" select="string($seqContentStrings_1)"/>
														<xsl:value-of select="$sContent_1"/>
													</span>
												</xsl:for-each>
												
											</td>
											<td/>
											<td/>
											<td/>
										</tr>
									</table>
								<xsl:choose>
									<xsl:when test="@ReportVersion=3">
										<table width="100%" style="word-wrap:break-word; border:0; border-bottom:0; border-collapse:collapse; border-left:0; border-right:0;" border="1" >
											<xsl:for-each select="BOARD">
												<xsl:choose>
													<xsl:when test="@CurrencyId='USD'">
														<table width="100%" style="word-wrap:break-word; border:0; border-bottom:0; border-collapse:collapse; border-left:0; border-right:0;" border="1" >
															<tr style="font-weight:bold;">
																<td colspan="14" style="background=#C1CDCD; text-align:center;  ">
																	<xsl:text>Группа инструментов "</xsl:text>
																	<xsl:value-of select="@BoardName"/>
																	<xsl:text>" (в долларах США)</xsl:text>
																</td>
															</tr>
															<tr>
																<td width="10%" style="background=#C1CDCD; text-align:center; font-weight:bold; ">
																	<xsl:text>Идентификационный код ценной бумаги</xsl:text>
																</td>
																<td width="15%" style="background=#C1CDCD; text-align:center;  font-weight:bold; ">
																	<xsl:text>Наименование ценной бумаги</xsl:text>
																</td >

																<td width="10%" style="background=#C1CDCD; text-align:center; font-weight:bold;">
																	<xsl:text>ISIN</xsl:text>
																</td>
																<td width="10%" style="background=#C1CDCD; text-align:center; font-weight:bold;">
																	<xsl:text>Наименование эмитента</xsl:text>
																</td>
																<td width="10%" style="background=#C1CDCD; text-align:center;font-weight:bold; ">
																	<xsl:text>Реквизиты эмитента</xsl:text>
																</td>
																<td width="10%" style="background=#C1CDCD; text-align:center;font-weight:bold; ">
																	<xsl:text>Категория (вид) ценной бумаги</xsl:text>
																</td>
																<td width="15%" style="background=#C1CDCD; text-align:center;font-weight:bold; ">
																	<xsl:text>Стоимостной объем договоров</xsl:text>
																</td>
																<td width="15%" style="background=#C1CDCD; text-align:center;font-weight:bold;">
																	<xsl:text>Количество договоров</xsl:text>
																</td>
																
															</tr>
															
															<xsl:for-each select="ISSUE_TYPE">
																<xsl:choose>
																	<xsl:when test="@IssueTypeId!=0">
																		<xsl:for-each select="ASSET">																			
																			<xsl:choose>																				
																				<xsl:when test="not(@IsTotal) or @IsTotal='N'">
																					<xsl:for-each select="TOTAL">
																					<tr>																						
																						<td>
																							<xsl:value-of select="../@AssetCode"/>
																						</td>
																						<td>
																							<xsl:value-of select="../@AssetName"/>
																						</td>
																						<td>
																							<xsl:value-of select="../@ISIN"/>
																						</td>
																						<td>
																							<xsl:value-of select="../@IssuerName"/>
																						</td>
																						<td>
																							<xsl:value-of select="../@IssuerDetails"/>
																						</td>
																						<td>
																							<xsl:value-of select="../../@IssueType"/>
																						</td>
																						
																						<td >
																							<xsl:for-each select="@Volume">
																								<xsl:value-of select="format-number(number(string(.)), '# ##0,00')"/>
																							</xsl:for-each>
																						</td>
																						<td >
																							<xsl:for-each select="@DealCount">
																								<xsl:value-of select="format-number(number(string(.)), '# ##0')"/>
																							</xsl:for-each>
																						</td>
																						

																					</tr>
																					</xsl:for-each>

																				</xsl:when>
																				<xsl:otherwise>
																					<xsl:for-each select="TOTAL">
																					<tr style="background=#CCCDCC;">
																						<td colspan="6" style="font-size=14; font-weight:bold; ">
																							<xsl:text>Итого по </xsl:text>
																							<xsl:choose>
																								<xsl:when test="../../@IssueTypeId=1" >
																									<xsl:text>Акциям</xsl:text>
																								</xsl:when>
																								<xsl:when test="../../@IssueTypeId=2" >
																									<xsl:text>Облигациям</xsl:text>
																								</xsl:when>
																								<xsl:when test="../../@IssueTypeId=6" >
																									<xsl:text>Инвестиционным паям</xsl:text>
																								</xsl:when>
																								<xsl:when test="../../@IssueTypeId=7" >
																									<xsl:text>Депозитарным распискам</xsl:text>
																								</xsl:when>
																								<xsl:when test="../../@IssueTypeId=8" >
																									<xsl:text>Ипотечным сертификатам</xsl:text>
																								</xsl:when>
																								<xsl:when test="../../@IssueTypeId=9" >
																									<xsl:text>Прочим ценным бумагам</xsl:text>
																								</xsl:when>
																							</xsl:choose>
																						</td>																				
																							
																						<td style="font-weight:bold; font-size=14;  ">
																							<xsl:for-each select="@Volume">
																								<xsl:value-of select="format-number(number(string(.)), '# ##0,00')"/>
																							</xsl:for-each>
																						</td>
																						<td style="font-weight:bold; font-size=14;  ">
																							<xsl:for-each select="@DealCount">
																								<xsl:value-of select="format-number(number(string(.)), '# ##0')"/>
																							</xsl:for-each>
																						</td>
																						
																					</tr>
																					</xsl:for-each >
																				</xsl:otherwise>
																			</xsl:choose>
																		</xsl:for-each>
																	</xsl:when>
																</xsl:choose>
															</xsl:for-each>
															<xsl:for-each select="ISSUE_TYPE">
																<xsl:choose>
																	<xsl:when test="@IssueTypeId=0">
																		<xsl:for-each select="ASSET">
																			<xsl:for-each select="TOTAL">
																					<tr style="background=#C1CDCD; ">
																						<td colspan="6" style="font-size=14; font-weight:bold;">																							
																							<xsl:text>Итого по всем ценным бумагам</xsl:text>
																						</td>
																						<td style="font-weight:bold; font-size=14;  ">
																							<xsl:for-each select="@Volume">
																								<xsl:value-of select="format-number(number(string(.)), '# ##0,00')"/>
																							</xsl:for-each>
																						</td>
																						<td style="font-weight:bold; font-size=14;  ">
																							<xsl:for-each select="@DealCount">
																								<xsl:value-of select="format-number(number(string(.)), '# ##0')"/>
																							</xsl:for-each>
																						</td>

																					</tr>
																			</xsl:for-each>	
																		</xsl:for-each>
																	</xsl:when>
																	
																</xsl:choose>
															</xsl:for-each>
																	
														</table>
														<br/>
													</xsl:when>

													<xsl:when test="@CurrencyId='RUB'">
														<table width="100%" style="word-wrap:break-word; border:0; border-bottom:0; border-collapse:collapse; border-left:0; border-right:0;" border="1" >
															<tr style="font-weight:bold;">
																<td colspan="14" style="background=#C1CDCD; text-align:center;  ">
																	<xsl:text>Группа инструментов "</xsl:text>
																	<xsl:value-of select="@BoardName"/>
																	<xsl:text>" (в рублях)</xsl:text>
																</td>
															</tr>
															<tr>
																<td width="10%" style="background=#C1CDCD; text-align:center; font-weight:bold; ">
																	<xsl:text>Идентификационный код ценной бумаги</xsl:text>
																</td>
																<td width="15%" style="background=#C1CDCD; text-align:center;  font-weight:bold; ">
																	<xsl:text>Наименование ценной бумаги</xsl:text>
																</td >

																<td width="10%" style="background=#C1CDCD; text-align:center; font-weight:bold;">
																	<xsl:text>ISIN</xsl:text>
																</td>
																<td width="10%" style="background=#C1CDCD; text-align:center; font-weight:bold;">
																	<xsl:text>Наименование эмитента</xsl:text>
																</td>
																<td width="10%" style="background=#C1CDCD; text-align:center;font-weight:bold; ">
																	<xsl:text>Реквизиты эмитента</xsl:text>
																</td>
																<td width="10%" style="background=#C1CDCD; text-align:center;font-weight:bold; ">
																	<xsl:text>Категория (вид) ценной бумаги</xsl:text>
																</td>
																<td width="15%" style="background=#C1CDCD; text-align:center;font-weight:bold; ">
																	<xsl:text>Стоимостной объем договоров</xsl:text>
																</td>
																<td width="15%" style="background=#C1CDCD; text-align:center;font-weight:bold;">
																	<xsl:text>Количество договоров</xsl:text>
																</td>

															</tr>

															<xsl:for-each select="ISSUE_TYPE">
																<xsl:choose>
																	<xsl:when test="@IssueTypeId!=0">
																		<xsl:for-each select="ASSET">
																			<xsl:choose>
																				<xsl:when test="not(@IsTotal) or @IsTotal='N'">
																					<xsl:for-each select="TOTAL">
																						<tr>
																							<td>
																								<xsl:value-of select="../@AssetCode"/>
																							</td>
																							<td>
																								<xsl:value-of select="../@AssetName"/>
																							</td>
																							<td>
																								<xsl:value-of select="../@ISIN"/>
																							</td>
																							<td>
																								<xsl:value-of select="../@IssuerName"/>
																							</td>
																							<td>
																								<xsl:value-of select="../@IssuerDetails"/>
																							</td>
																							<td>
																								<xsl:value-of select="../../@IssueType"/>
																							</td>

																							<td >
																								<xsl:for-each select="@Volume">
																									<xsl:value-of select="format-number(number(string(.)), '# ##0,00')"/>
																								</xsl:for-each>
																							</td>
																							<td >
																								<xsl:for-each select="@DealCount">
																									<xsl:value-of select="format-number(number(string(.)), '# ##0')"/>
																								</xsl:for-each>
																							</td>


																						</tr>
																					</xsl:for-each>

																				</xsl:when>
																				<xsl:otherwise>
																					<xsl:for-each select="TOTAL">
																						<tr style="background=#CCCDCC;">
																							<td colspan="6" style="font-size=14; font-weight:bold; ">
																								<xsl:text>Итого по </xsl:text>
																								<xsl:choose>
																									<xsl:when test="../../@IssueTypeId=1" >
																										<xsl:text>Акциям</xsl:text>
																									</xsl:when>
																									<xsl:when test="../../@IssueTypeId=2" >
																										<xsl:text>Облигациям</xsl:text>
																									</xsl:when>
																									<xsl:when test="../../@IssueTypeId=6" >
																										<xsl:text>Инвестиционным паям</xsl:text>
																									</xsl:when>
																									<xsl:when test="../../@IssueTypeId=7" >
																										<xsl:text>Депозитарным распискам</xsl:text>
																									</xsl:when>
																									<xsl:when test="../../@IssueTypeId=8" >
																										<xsl:text>Ипотечным сертификатам</xsl:text>
																									</xsl:when>
																									<xsl:when test="../../@IssueTypeId=9" >
																										<xsl:text>Прочим ценным бумагам</xsl:text>
																									</xsl:when>
																								</xsl:choose>
																							</td>

																							<td style="font-weight:bold; font-size=14;  ">
																								<xsl:for-each select="@Volume">
																									<xsl:value-of select="format-number(number(string(.)), '# ##0,00')"/>
																								</xsl:for-each>
																							</td>
																							<td style="font-weight:bold; font-size=14;  ">
																								<xsl:for-each select="@DealCount">
																									<xsl:value-of select="format-number(number(string(.)), '# ##0')"/>
																								</xsl:for-each>
																							</td>

																						</tr>
																					</xsl:for-each>
																				</xsl:otherwise>
																			</xsl:choose>
																		</xsl:for-each>
																	</xsl:when>
																</xsl:choose>
															</xsl:for-each>
															<xsl:for-each select="ISSUE_TYPE">
																<xsl:choose>
																	<xsl:when test="@IssueTypeId=0">
																		<xsl:for-each select="ASSET">
																			<xsl:for-each select="TOTAL">
																			<tr style="background=#C1CDCD; ">
																				<td colspan="6" style="font-size=14; font-weight:bold;">
																					<xsl:text>Итого по всем ценным бумагам</xsl:text>
																				</td>
																				<td style="font-weight:bold; font-size=14;  ">
																					<xsl:for-each select="@Volume">
																						<xsl:value-of select="format-number(number(string(.)), '# ##0,00')"/>
																					</xsl:for-each>
																				</td>
																				<td style="font-weight:bold; font-size=14;  ">
																					<xsl:for-each select="@DealCount">
																						<xsl:value-of select="format-number(number(string(.)), '# ##0')"/>
																					</xsl:for-each>
																				</td>

																			</tr>
																			</xsl:for-each>

																		</xsl:for-each>
																	</xsl:when>

																</xsl:choose>
															</xsl:for-each>

														</table>
														<br/>
													</xsl:when>
													
												</xsl:choose>
											</xsl:for-each>
										</table>
									</xsl:when>
									<xsl:otherwise>
								<table width="100%" style="word-wrap:break-word; border:0; border-bottom:0; border-collapse:collapse; border-left:0; border-right:0;" border="1" >
																	
									<tr style="height:36">
										<td width="40%" style="background=#C1CDCD; text-align:center; font-weight:bold; ">
											<xsl:text>Вид ценных бумаг</xsl:text>
										</td>
										<td style="background=#C1CDCD; text-align:center; font-weight:bold;">
											<xsl:text>Стоимостной объем сделок, руб</xsl:text>
										</td>
										<td style="background=#C1CDCD; text-align:center; font-weight:bold;">
											<xsl:text>Количество сделок</xsl:text>
										</td>
									</tr>					
									<tr>
										<td>
											<xsl:text>суммарно по видам бумаг и срочных сделок</xsl:text>
										</td>
									
									
										<xsl:variable name="vol0_rub">
											<xsl:for-each select="ISSUE_TYPE">										
												<xsl:choose>													
														<xsl:when test="@IssueType='суммарно по видам бумаг и срочных сделок'">
															<xsl:for-each select="TOTAL">
																<xsl:for-each select="@Volume">
																	<xsl:value-of select="format-number(number(string(.)), '# ##0,00')"/>
																</xsl:for-each>
															</xsl:for-each>
														</xsl:when>
												</xsl:choose>														
											</xsl:for-each>
										</xsl:variable>
										<td>
											<xsl:value-of select="$vol0_rub"/>
										</td>
										<xsl:variable name="cnt0_rub">
											<xsl:for-each select="ISSUE_TYPE">
												<xsl:choose>
													<xsl:when test="@IssueType='суммарно по видам бумаг и срочных сделок'">
														<xsl:for-each select="TOTAL">
															<xsl:for-each select="@DealCount">
																<xsl:value-of select="format-number(number(string(.)), '# ##0')"/>
															</xsl:for-each>
														</xsl:for-each>
													</xsl:when>
												</xsl:choose>
											</xsl:for-each>
										</xsl:variable>
										<td>
											<xsl:value-of select="$cnt0_rub"/>
										</td>
										
									</tr>

									<tr>
										<td>
											<xsl:text>акции</xsl:text>
										</td>

										
											<xsl:variable name="vol1_rub">
												<xsl:for-each select="ISSUE_TYPE">
												
													<xsl:choose>
														<xsl:when test="@IssueType='акции'">
															<xsl:for-each select="TOTAL">
																<xsl:for-each select="@Volume">
																	<xsl:value-of select="format-number(number(string(.)), '# ##0,00')"/>
																</xsl:for-each>
															</xsl:for-each>
														</xsl:when>
													</xsl:choose>
												</xsl:for-each>
											</xsl:variable>
											<td>
												<xsl:value-of select="$vol1_rub"/>
											</td>
											<xsl:variable name="cnt1_rub">
												<xsl:for-each select="ISSUE_TYPE">
													<xsl:choose>
														<xsl:when test="@IssueType='акции'">
															<xsl:for-each select="TOTAL">
																<xsl:for-each select="@DealCount">
																	<xsl:value-of select="format-number(number(string(.)), '# ##0')"/>
																</xsl:for-each>
															</xsl:for-each>
														</xsl:when>
													</xsl:choose>
												</xsl:for-each>
											</xsl:variable>
											<td>
												<xsl:value-of select="$cnt1_rub"/>
											</td>
										
									</tr>
									<tr>
										<td>
											<xsl:text>корпоративные облигации</xsl:text>
										</td>

										
											<xsl:variable name="vol2_rub">
												<xsl:for-each select="ISSUE_TYPE">
												
													<xsl:choose>
														<xsl:when test="@IssueType='корпоративные облигации'">
															<xsl:for-each select="TOTAL">
																<xsl:for-each select="@Volume">
																	<xsl:value-of select="format-number(number(string(.)), '# ##0,00')"/>
																</xsl:for-each>
															</xsl:for-each>
														</xsl:when>
													</xsl:choose>
												</xsl:for-each>
											</xsl:variable>
											<td>
												<xsl:value-of select="$vol2_rub"/>
											</td>
											<xsl:variable name="cnt2_rub">
												<xsl:for-each select="ISSUE_TYPE">
													<xsl:choose>
														<xsl:when test="@IssueType='корпоративные облигации'">
															<xsl:for-each select="TOTAL">
																<xsl:for-each select="@DealCount">
																	<xsl:value-of select="format-number(number(string(.)), '# ##0')"/>
																</xsl:for-each>
															</xsl:for-each>
														</xsl:when>
													</xsl:choose>
												</xsl:for-each>
											</xsl:variable>
											<td>
												<xsl:value-of select="$cnt2_rub"/>
											</td>
										
									</tr>
									<tr>
										<td>
											<xsl:text>гос. облигации</xsl:text>
										</td>

										
											<xsl:variable name="vol3_rub">
												<xsl:for-each select="ISSUE_TYPE">
												
													<xsl:choose>
														<xsl:when test="@IssueType='гос. облигации'">
															<xsl:for-each select="TOTAL">
																<xsl:for-each select="@Volume">
																	<xsl:value-of select="format-number(number(string(.)), '# ##0,00')"/>
																</xsl:for-each>
															</xsl:for-each>
														</xsl:when>
													</xsl:choose>
												</xsl:for-each>
											</xsl:variable>
											<td>
												<xsl:value-of select="$vol3_rub"/>
											</td>
											<xsl:variable name="cnt3_rub">
												<xsl:for-each select="ISSUE_TYPE">
												<xsl:choose>
													<xsl:when test="@IssueType='гос. облигации'">
														<xsl:for-each select="TOTAL">
															<xsl:for-each select="@DealCount">
																<xsl:value-of select="format-number(number(string(.)), '# ##0')"/>
															</xsl:for-each>
														</xsl:for-each>
													</xsl:when>
												</xsl:choose>
												</xsl:for-each>
											</xsl:variable>
											<td>
												<xsl:value-of select="$cnt3_rub"/>
											</td>
										
									</tr>
									<tr>
										<td>
											<xsl:text>облигации субъектов РФ</xsl:text>
										</td>

										
											<xsl:variable name="vol4_rub">
												<xsl:for-each select="ISSUE_TYPE">
													<xsl:choose>
														<xsl:when test="@IssueType='облигации субъектов РФ'">
															<xsl:for-each select="TOTAL">
																<xsl:for-each select="@Volume">
																	<xsl:value-of select="format-number(number(string(.)), '# ##0,00')"/>
																</xsl:for-each>
															</xsl:for-each>
														</xsl:when>
													</xsl:choose>
												</xsl:for-each>
											</xsl:variable>
											<td>
												<xsl:value-of select="$vol4_rub"/>
											</td>
											<xsl:variable name="cnt4_rub">
												<xsl:for-each select="ISSUE_TYPE">
												<xsl:choose>
													<xsl:when test="@IssueType='облигации субъектов РФ'">
														<xsl:for-each select="TOTAL">
															<xsl:for-each select="@DealCount">
																<xsl:value-of select="format-number(number(string(.)), '# ##0')"/>
															</xsl:for-each>
														</xsl:for-each>
													</xsl:when>
												</xsl:choose>
												</xsl:for-each>
											</xsl:variable>
											<td>
												<xsl:value-of select="$cnt4_rub"/>
											</td>
										
									</tr>
									<tr>
										<td>
											<xsl:text>муниципальные облигации</xsl:text>
										</td>

										
											<xsl:variable name="vol5_rub">
												<xsl:for-each select="ISSUE_TYPE">
													<xsl:choose>
														<xsl:when test="@IssueType='муниципальные облигации'">
															<xsl:for-each select="TOTAL">
																<xsl:for-each select="@Volume">
																	<xsl:value-of select="format-number(number(string(.)), '# ##0,00')"/>
																</xsl:for-each>
															</xsl:for-each>
														</xsl:when>
													</xsl:choose>
												</xsl:for-each>
											</xsl:variable>
											<td>
												<xsl:value-of select="$vol5_rub"/>
											</td>
											<xsl:variable name="cnt5_rub">
												<xsl:for-each select="ISSUE_TYPE">
													<xsl:choose>
														<xsl:when test="@IssueType='муниципальные облигации'">
															<xsl:for-each select="TOTAL">
																<xsl:for-each select="@DealCount">
																	<xsl:value-of select="format-number(number(string(.)), '# ##0')"/>
																</xsl:for-each>
															</xsl:for-each>
														</xsl:when>
													</xsl:choose>
												</xsl:for-each>
											</xsl:variable>
											<td>
												<xsl:value-of select="$cnt5_rub"/>
											</td>
										
									</tr>
									<tr>
										<td>
											<xsl:text>паи ПИФов</xsl:text>
										</td>

										
											<xsl:variable name="vol6_rub">
												<xsl:for-each select="ISSUE_TYPE">
												
													<xsl:choose>
														<xsl:when test="@IssueType='паи ПИФов'">
															<xsl:for-each select="TOTAL">
																<xsl:for-each select="@Volume">
																	<xsl:value-of select="format-number(number(string(.)), '# ##0,00')"/>
																</xsl:for-each>
															</xsl:for-each>
														</xsl:when>
													</xsl:choose>
												</xsl:for-each>
											</xsl:variable>
											<td>
												<xsl:value-of select="$vol6_rub"/>
											</td>
											<xsl:variable name="cnt6_rub">
												<xsl:for-each select="ISSUE_TYPE">
													<xsl:choose>
														<xsl:when test="@IssueType='паи ПИФов'">
															<xsl:for-each select="TOTAL">
																<xsl:for-each select="@DealCount">
																	<xsl:value-of select="format-number(number(string(.)), '# ##0')"/>
																</xsl:for-each>
															</xsl:for-each>
														</xsl:when>
													</xsl:choose>
												</xsl:for-each>	
											</xsl:variable>
											<td>
												<xsl:value-of select="$cnt6_rub"/>
											</td>
										
									</tr>
									<tr>
										<td>
											<xsl:text>прочие ценные бумаги</xsl:text>
										</td>

											<xsl:variable name="vol7_rub">
												<xsl:for-each select="ISSUE_TYPE">
													<xsl:choose>
														<xsl:when test="@IssueType='прочие ценные бумаги'">
															<xsl:for-each select="TOTAL">
																<xsl:for-each select="@Volume">
																	<xsl:value-of select="format-number(number(string(.)), '# ##0,00')"/>
																</xsl:for-each>
															</xsl:for-each>
														</xsl:when>
													</xsl:choose>
												</xsl:for-each>
											</xsl:variable>
											<td>
												<xsl:value-of select="$vol7_rub"/>
											</td>
											<xsl:variable name="cnt7_rub">
												<xsl:for-each select="ISSUE_TYPE">
													<xsl:choose>
														<xsl:when test="@IssueType='прочие ценные бумаги'">
															<xsl:for-each select="TOTAL">
																<xsl:for-each select="@DealCount">
																	<xsl:value-of select="format-number(number(string(.)), '# ##0')"/>
																</xsl:for-each>
															</xsl:for-each>
														</xsl:when>
													</xsl:choose>
												</xsl:for-each>
											</xsl:variable>
											<td>
												<xsl:value-of select="$cnt7_rub"/>
											</td>
										
									</tr>
									
								</table>
									</xsl:otherwise>
								</xsl:choose>
									</xsl:for-each>								
							</xsl:for-each>
					</xsl:for-each>
			</body>
		</html>
	</xsl:template>
</xsl:stylesheet>
