Вот части кода
<!-- Отзывы о товаре -->
<div id="comments">
<h2 class="h2_bl">Отзывы об этом товаре</h2>
<xsl:if test="count(comments/comment) = 0">
Пока нет ни одного отзыва
<h2>Оставить свой отзыв</h2>
</xsl:if>
<xsl:if test="count(comments/comment) > 0">
<a name="comments"></a>
<xsl:apply-templates select="comments/comment" />
</xsl:if>
<xsl:call-template name="AddCommentForm"></xsl:call-template>
</div>
<!-- Шаблон вывода добавления комментария -->
<xsl:template name="AddCommentForm">
<xsl:param name="comment_id" select="0"/>
<!-- Заполняем форму -->
<xsl:variable name="subject">
<xsl:if test="/document/form_parent_id/node() and /document/form_parent_id/node() and /document/form_parent_id= $comment_id">
<xsl:value-of select="/document/form_subject"/>
</xsl:if>
</xsl:variable>
<xsl:variable name="email">
<xsl:if test="/document/form_user_email/node() and /document/form_parent_id/node() and /document/form_parent_id= $comment_id">
<xsl:value-of select="/document/form_user_email"/>
</xsl:if>
</xsl:variable>
<xsl:variable name="text">
<xsl:if test="/document/form_text/node() and /document/form_parent_id/node() and /document/form_parent_id= $comment_id">
<xsl:value-of disable-output-escaping="yes" select="/document/form_text"/>
</xsl:if>
</xsl:variable>
<xsl:variable name="name">
<xsl:if test="/document/form_user_name/node() and /document/form_parent_id/node() and /document/form_parent_id= $comment_id">
<xsl:value-of select="/document/form_user_name"/>
</xsl:if>
</xsl:variable>
<!--Отображение формы добавления комментария-->
<form action="{/document/url}" name="comment_form_0{comment_id}" method="post">
<p><textarea name="shop_comment_text" class="comment_textarea"><xsl:value-of select="/shop/shop_comment_text"/></textarea></p>
<!-- Авторизированным не показываем -->
<xsl:if test="/shop/user_id = 0">
<p class="comment_username">
Ваше имя:
<input type="text" class="comment_username" name="shop_comment_user_name" value="{/shop/shop_comment_user_name}"/>
<!--</p>--><br /><br />
<!--<p class="comment_username">-->
E-mail: <input id="email{$comment_id}" type="text" class="comment_username" name="shop_comment_user_email" value="{/shop/shop_comment_user_email}"
onblur="FieldCheckEmail(this.id)"
onkeyup="FieldCheckEmail(this.id)"
onkeydown="FieldCheckEmail(this.id)" />
<div id="error_email{$comment_id}"></div>
Тема: <input type="text" class="comment_username" name="shop_comment_subject" value="{/shop/shop_comment_subject}"/>
</p>
</xsl:if>
<!-- Обработка CAPTCHA -->
<xsl:if test="//captcha_key != 0 and /shop/user_id = 0">
<div class="captcha">
<img id="comment_{$comment_id}" src="/captcha.php?get_captcha={captcha_key}{$comment_id}&height=43&width=91" title="Код подтверждения" name="captcha"/>
<p><a href="javascript:void(0);" onclick="ReNewCaptchaById('comment_{$comment_id}', '{//captcha_key}{$comment_id}', 30); return false;">Обновить</a></p>
<p><input type="hidden" name="captcha_key" value="{//captcha_key}{$comment_id}"/>
<input type="text" name="captcha_keystring" /></p>
</div>
</xsl:if>
<xsl:if test="$comment_id != 0">
<input type="hidden" name="comment_parent_id" value="{comment_id}"/>
</xsl:if>
<p>
<input id="submit_email{$comment_id}" type="submit" name="submit_comment" value="Опубликовать" class="comment_submit" />
</p>
</form>
</xsl:template>
<!-- Шаблон для отзывов -->
<xsl:template match="comments/comment">
<a name="comment{@id}"></a>
<div class="comment">
<div class="tl"></div>
<div class="tr"></div>
<div class="bl"></div>
<div class="br"></div>
<xsl:if test="subject != ''">
<div>
<strong>
<xsl:value-of select="subject"/>
</strong>
</div>
</xsl:if>
<xsl:value-of select="text" disable-output-escaping="yes"/>
<!-- Оценка комментария -->
<xsl:if test="grade != 0">
<div>Оценка:
<xsl:call-template name="show_average_grade">
<xsl:with-param name="grade" select="grade"/>
<xsl:with-param name="const_grade" select="5"/>
</xsl:call-template>
</div>
</xsl:if>
</div>
<div class="comment_desc">
<xsl:choose>
<xsl:when test="user_name">
<xsl:value-of select="user_name"/>
</xsl:when>
<xsl:otherwise>
<img src="/hostcmsfiles/images/user.gif" style="margin: 0px 5px -4px 0px" />
<b>
<a href="/users/info/{site_user_login}/" class="c_u_l" ><xsl:value-of select="site_user_login"/></a>
</b>
</xsl:otherwise>
</xsl:choose> · <xsl:value-of select="date_time"/> · <a href="{/shop/path}{/shop/item/fullpath}{/shop/item/path}/#comment{@id}" title="ссылка">#</a>
</div>
</xsl:template>