Не выходит каменная чаша

#
Не выходит каменная чаша
Суть в том что, я пытаюсь посредством xslt шаблона в ИС выводить список товаров в обрамление
<div class="catalog_list"></div>
по условию, если в текущей группе есть товары, то к выводу добавляем дивы. Но что то идёт не так и условие не срабатывает
Выводит в группе где нет товаров, и в группе где есть товары.
Вариант 1
      <!-- Отображение записи информационной системы -->
      <xsl:variable name="div_open">
         <xsl:choose>
            <xsl:when test="count(.//informationsystem_group[@id=$group]/items_count) = 0"></xsl:when>
            <xsl:otherwise>&lt;div class="catalog_list"&gt;</xsl:otherwise>
         </xsl:choose>         
      </xsl:variable>
      
      <xsl:value-of disable-output-escaping="yes" select="$div_open"/>

      <xsl:apply-templates select="informationsystem_item[active=1]"/>
      
      <xsl:variable name="div_close">
         <xsl:choose>
            <xsl:when test="count(.//informationsystem_group[@id=$group]/items_count) = 0"></xsl:when>
            <xsl:otherwise>&lt;/div&gt;</xsl:otherwise>
         </xsl:choose>      
      </xsl:variable>

      <xsl:value-of disable-output-escaping="yes" select="$div_close"/>

Вариант 2
      <!-- Отображение записи информационной системы -->
      <xsl:variable name="div_open">
         &lt;div class="catalog_list"&gt;
      </xsl:variable>
      <xsl:if test="count(.//informationsystem_group[@id=$group]/items_count) != 0">
         <xsl:value-of disable-output-escaping="yes" select="$div_open"/>
      </xsl:if>
      
      <xsl:apply-templates select="informationsystem_item[active=1]"/>
      
      <xsl:variable name="div_close">
         &lt;/div&gt;
      </xsl:variable>
      <xsl:if test="count(.//informationsystem_group[@id=$group]/items_count) != 0">
         <xsl:value-of disable-output-escaping="yes" select="$div_close"/>
      </xsl:if>

skype: mcross82
#
Re: Не выходит каменная чаша
Mcross,
для товаров интернет магазина

      <xsl:if test="shop_item">
         <div class="catalog_list">
            <xsl:apply-templates select="shop_item"/>
         </div>
      </xsl:if>

для элементов инфосистемы
      <xsl:if test="informationsystem_item">
         <div class="catalog_list">
            <xsl:apply-templates select="informationsystem_item"/>
         </div>
      </xsl:if>
HostDev.pw - модули для HostCMS, Telegram: @hostdev
#
Re: Re: Не выходит каменная чаша
EugenyP,
Спасибо, так вроде норм!
skype: mcross82
Авторизация