Здравствуйте! Для обычных товаров вывожу так:
Шаблон вывода списка товаров:
<xsl:if test="count(shop_discount)">
<p class="catalog-item__economy">Экономия
<span class="strong">
<xsl:apply-templates select="shop_discount"/>%
</span>
</p>
</xsl:if>
<xsl:template match="shop_discount">
<xsl:value-of select="round(percent)"/>
</xsl:template>
Делаю тоже самое в шаблоне товара, но для модификаций (они у меня внизу под карточкой товара выходят)
<xsl:template match="modifications/shop_item">
<div class="col-xs-6 col-sm-4 col-md-4 catalog-item">
<a href="{url}" class="catalog-item__link"><xsl:value-of disable-output-escaping="yes" select="name"/></a>
<xsl:if test="discount != 0">
<span class="catalog-item__old-price">
<xsl:value-of select="format-number(price + discount, '### ##0', 'my')"/>
</span>
</xsl:if>
<xsl:if test="price != 0">
<span class="catalog-item__new-price">
<xsl:value-of select="format-number(price, '### ##0', 'my')"/>.-
</span>
</xsl:if>
<xsl:if test="count(shop_discount)">
<p class="catalog-item__economy">Экономия
<span class="strong">
<xsl:apply-templates select="shop_discount"/>%
</span>
</p>
</xsl:if>
<a onclick="return $.bootstrapAddIntoCart('{/shop/url}cart/', {@id}, 1)" class="catalog-item__busket"><i class="glyphicon glyphicon-shopping-cart catalog-item__busket-icon"></i> В корзину</a>
</div>
</xsl:template>
<xsl:template match="shop_discount">
<xsl:value-of select="round(percent)"/>
</xsl:template>
В итоге где должно быть написано "Экономия 10%" пишет "Экономия Скидка 10% 10.00%%"
Т.е. как бы выводит,но не корректно. Где это можно поправить? Может что-то не так делаю?