Как бы так сделать чтобы в зависимости от категории товара изменить класс у элемента в этом шаблоне?
hostcmsfiles\xsl\79.xsl
Это текущий шаблон.
т.е. шаблон 79.xsl выглядет вот примерно вот так:
<xsl:template match="/shop">
<div id="little_cart">
<div class="cart-block-in">
<div class="phone">тел. номер</div>
<div class="email"><a href="">email</a> </div>
<div class="title">Заказ online</div>
<div class="info">
<xsl:variable name="totalQuantity" select="sum(shop_cart[postpone = 0]/quantity)" />
<xsl:variable name="totalDiscount" select="sum(shop_cart[postpone = 0]/shop_item/property_value[tag_name = 'discount10']/../../quantity)" />
<!-- Вывод общих количества, веса и стоимости товаров -->
<p>В корзине <b><xsl:value-of select="$totalQuantity"/></b><xsl:text> </xsl:text><xsl:call-template name="declension"><xsl:with-param name="number" select="$totalQuantity"/></xsl:call-template>
<br />на сумму <b>
<xsl:value-of select="format-number(total_amount, '### ##0', 'my')"/>
<xsl:text> </xsl:text><xsl:value-of disable-output-escaping="yes" select="shop_currency/name"/></b></p>
</div>
<a href="{/shop/url}cart/" class="btn-green">Оформить заказ <i class="icon-more"></i></a>
</div>
</div>
</xsl:template>
Но нужно класс изменить с
class="btn-green"
на
class="my-class"
( в зависимости от того какая категория у товара ).
Тут используется что-то вроде smarty?