Задача - вывести таблицу с товарами производителя. Код такой:
<form action="{/shop/url}cart/" class="catalog_form">
<table>
<tr>
<th class="model">Модель</th>
<th>Производитель</th>
<th>Цена</th>
<th>Наличие</th>
<th>Количество</th>
</tr>
<xsl:if test="/shop/shop_item != ''">
<tr>
<td class="model">
<a href="{url}" title="{name}" hostcms:id="{@id}" hostcms:field="name" hostcms:entity="shop_item">
<xsl:value-of disable-output-escaping="yes" select="name"/>
</a>
</td>
<td>
<xsl:value-of disable-output-escaping="yes" select="shop_producer/name"/>
</td>
<td class="grey">
<xsl:value-of select="format-number(price, '### ##0', 'my')"/><xsl:text> </xsl:text><xsl:value-of select="currency"/><xsl:text> </xsl:text>
</td>
<td class="grey">
<xsl:if test="rest > 0 and type != 1">
В НАЛИЧИИ
</xsl:if>
<xsl:if test="rest = 0 and type != 1">
ПОД ЗАКАЗ
</xsl:if>
</td>
<td>
<input type="text" value="1" id="count_{@id}" />
</td>
</tr>
</xsl:if>
</table>