<?xml version="1.0" encoding="windows-1251"?>
<!DOCTYPE page [
<!ENTITY nbsp "&amp;nbsp;">
]>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:output method="html" version="1.0" encoding="windows-1251" omit-xml-declaration="no" indent="no" media-type="text/html"/>

	<!-- Administrator section layout stylesheet -->

	<!-- Applying root template -->
	<xsl:template match="/"><xsl:apply-templates select="/page/content"/></xsl:template>

	<!-- Page content -->
<xsl:template match="content">
	mesRecords = new Array ();
	<xsl:apply-templates select="Votes/row"/>
	mesRatingVal = "<xsl:value-of select="Ratings/row/MiddleRating"/>";
	mesRatingImg = "<xsl:value-of select="Ratings/row/RoundRating"/>";
</xsl:template>
	
<xsl:template match="Votes/row">
	mesRecords[<xsl:value-of select="position() -1"/>] = new Array("<xsl:call-template name="MakeDate"><xsl:with-param name="Date" select="Date"/></xsl:call-template>","<xsl:value-of select="User"/>","<xsl:value-of select="Vote"/>","<xsl:value-of select="Rating"/>","<xsl:value-of select="JSMessage" disable-output-escaping="yes"/>");
</xsl:template>

<xsl:template match="Rating/row">
</xsl:template>

	<xsl:template name="MakeDate">
		<xsl:param name="Date"/>
		<xsl:param name="NeedHours"/>
		<xsl:param name="InputDate"/>
		<xsl:choose><xsl:when test="$InputDate=1"><xsl:value-of select="$Date/Year"/><xsl:text>-</xsl:text><xsl:value-of select="$Date/MonthFullValue"/><xsl:text>-</xsl:text><xsl:value-of select="$Date/Day"/></xsl:when><xsl:otherwise><xsl:choose><xsl:when test="$Date/Day!=0 and $Date/Year!=0"><xsl:value-of select="$Date/Day"/><xsl:text> </xsl:text><xsl:value-of select="$Date/MonthName"/><xsl:text>, </xsl:text><xsl:value-of select="$Date/Year"/></xsl:when><xsl:otherwise><span class="error"><xsl:value-of select="//page/content/Messages/GlobalEmpty"/></span></xsl:otherwise></xsl:choose></xsl:otherwise></xsl:choose><xsl:if test="$NeedHours=1"><xsl:text> </xsl:text><xsl:value-of select="$Date/Hour"/><xsl:text>:</xsl:text><xsl:value-of select="$Date/Minute"/><xsl:text>:</xsl:text><xsl:value-of select="$Date/Second"/></xsl:if>
	</xsl:template>
	
</xsl:stylesheet>
