а как вывести в характеристиках товара в XSL-шаблоне еденицу измерения? то-есть взятую именно из дополнительных свойств (например: Мощность: 35
ватт)
пробовал вот так, но ничего не выводит:
<!-- Вывод строки со значением свойства -->
<xsl:template match="property_value">
<xsl:if test="value/node() and value != '' or file/node() and file != ''">
<xsl:variable name="property_id" select="property_id" />
<xsl:variable name="property" select="/shop/shop_item_properties//property[@id=$property_id]" />
<xsl:value-of disable-output-escaping="yes" select="$property/name"/><xsl:text>: </xsl:text>
<xsl:choose>
<xsl:when test="$property/type = 2">
<a href="{../dir}{file}" target="_blank"><xsl:value-of disable-output-escaping="yes" select="file_name"/></a>
</xsl:when>
<xsl:when test="$property/type = 7">
<input type="checkbox" disabled="disabled">
<xsl:if test="value = 1">
<xsl:attribute name="checked">checked</xsl:attribute>
</xsl:if>
</input>
</xsl:when>
<xsl:otherwise>
<strong><xsl:value-of disable-output-escaping="yes" select="value"/> <xsl:value-of select="mesure"/> </strong>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
</xsl:template>