Убрать фильтр при переходе в каталог товаров

#
Убрать фильтр при переходе в каталог товаров
Добрый. Как убрать фильтр при переходе от производителя в каталог товаров. У меня стоит  в каталоге фильтр по производителям.Когда нажимаешь на производителя, то происходит переход в каталог, и отображаются товары именно этого производителя, но так же отображается фильтр по производителю, который стоит по умолчанию в каталоге. Как мне его убрать? Спасибо.

Производителей вывожу так:

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE xsl:stylesheet>
<xsl:stylesheet version="1.0"
   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
   xmlns:hostcms="http://www.hostcms.ru/"
   exclude-result-prefixes="hostcms">
   <xsl:output xmlns="http://www.w3.org/TR/xhtml1/strict" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" encoding="utf-8" indent="yes" method="html" omit-xml-declaration="no" version="1.0" media-type="text/xml"/>
   
   <!-- МагазинСписокПроизводителей -->
   
   <xsl:template match="/">
      <xsl:apply-templates select="shop"/>
   </xsl:template>
   
   <xsl:template match="shop">
      <span class="title">Производители</span>
      
      <xsl:if test="count(shop_producer) = 0">
         <div id="error">Производители не найдены!</div>
      </xsl:if>
      
      <ul class="producer-list-left-nav">
         <xsl:apply-templates select="shop_producer"/>
      </ul>
      
      <!-- Ссылка, для которой дописываются суффиксы page-XX/ -->
      <xsl:variable name="link"><xsl:value-of select="/shop/url"/>producers/</xsl:variable>
      
      <xsl:call-template name="for">
         <xsl:with-param name="link" select="$link"/>
         <xsl:with-param name="limit" select="/shop/limit"/>
         <xsl:with-param name="page" select="/shop/page"/>
         <xsl:with-param name="total" select="/shop/total"/>
         <xsl:with-param name="visible_pages">5</xsl:with-param>
      </xsl:call-template>
      
   </xsl:template>
   
   <xsl:template match="shop_producer">
      <li>
         <xsl:if test="image_small != ''">
         <p><a href="{/shop/url}producers/{path}/"><img src="{dir}{image_small}" class="image" /></a></p>
         </xsl:if>
         
         <!-- Заносим в переменную $group идентификатор текущей группы -->
         <xsl:variable name="group" select="/shop/group"/>
         
         <!-- Определяем группу для формирования адреса ссылки -->
<xsl:variable name="group_link"><xsl:choose><xsl:when test="$group != 0"><xsl:value-of select="/shop//shop_group[@id=$group]/url"/></xsl:when><xsl:otherwise><xsl:value-of select="/shop/url"/></xsl:otherwise></xsl:choose></xsl:variable>

      <p><a href="{$group_link}producer-{@id}"><xsl:value-of disable-output-escaping="no" select="name"/></a></p>
      </li>
      <xsl:if test="position() mod 3 = 0 and position() != last()">
         <xsl:text disable-output-escaping="yes">
            &lt;/tr&gt;
            &lt;tr valign="top"&gt;
         </xsl:text>
      </xsl:if>
   </xsl:template>
   
   <!-- Цикл для вывода строк ссылок -->
   <xsl:template name="for">
      <xsl:param name="i" select="0"/>
      <xsl:param name="prefix">page</xsl:param>
      <xsl:param name="link"/>
      <xsl:param name="limit"/>
      <xsl:param name="page"/>
      <xsl:param name="total"/>
      <xsl:param name="visible_pages"/>
      
      <xsl:variable name="n" select="$total div $limit"/>
      
      <!-- Заносим в переменную $parent_group_id идентификатор текущей группы -->
      <xsl:variable name="parent_group_id" select="/document/parent_group_id"/>
      
      <!-- Считаем количество выводимых ссылок перед текущим элементом -->
      <xsl:variable name="pre_count_page">
         <xsl:choose>
            <xsl:when test="$page &gt; ($n - (round($visible_pages div 2) - 1))">
               <xsl:value-of select="$visible_pages - ($n - $page)"/>
            </xsl:when>
            <xsl:otherwise>
               <xsl:value-of select="round($visible_pages div 2) - 1"/>
            </xsl:otherwise>
         </xsl:choose>
      </xsl:variable>
      
      <!-- Считаем количество выводимых ссылок после текущего элемента -->
      <xsl:variable name="post_count_page">
         <xsl:choose>
            <xsl:when test="0 &gt; $page - (round($visible_pages div 2) - 1)">
               <xsl:value-of select="$visible_pages - $page"/>
            </xsl:when>
            <xsl:otherwise>
               <xsl:choose>
                  <xsl:when test="round($visible_pages div 2) = ($visible_pages div 2)">
                     <xsl:value-of select="$visible_pages div 2"/>
                  </xsl:when>
                  <xsl:otherwise>
                     <xsl:value-of select="round($visible_pages div 2) - 1"/>
                  </xsl:otherwise>
               </xsl:choose>
            </xsl:otherwise>
         </xsl:choose>
      </xsl:variable>
      
      <xsl:if test="$i = 0 and $page != 0">
         <span class="ctrl">←
         Ctrl</span>
      </xsl:if>
      
      <xsl:if test="$i &gt;= $n and ($n - 1) &gt; $page">
         <span class="ctrl">Ctrl →</span>
      </xsl:if>
      
      <xsl:if test="$total &gt; $limit and $n &gt; $i">
         
         <!-- Определяем адрес ссылки -->
         <xsl:variable name="number_link">
            <xsl:choose>
               <!-- Если не нулевой уровень -->
               <xsl:when test="$i != 0">
                  <xsl:value-of select="$prefix"/>-<xsl:value-of select="$i + 1"/>/</xsl:when>
               <!-- Иначе если нулевой уровень - просто ссылка на страницу со списком элементов -->
               <xsl:otherwise></xsl:otherwise>
            </xsl:choose>
         </xsl:variable>
         
         <!-- Ставим ссылку на страницу-->
         <xsl:if test="$i != $page">
            <!-- Выводим ссылку на первую страницу -->
            <xsl:if test="$page - $pre_count_page &gt; 0 and $i = 0">
               <a href="{$link}" class="page_link" style="text-decoration: none;">←</a>
            </xsl:if>
            
            <xsl:choose>
               <xsl:when test="$i &gt;= ($page - $pre_count_page) and ($page + $post_count_page) &gt;= $i">
                  <!-- Выводим ссылки на видимые страницы -->
                  <a href="{$link}{$number_link}" class="page_link">
                     <xsl:value-of select="$i + 1"/>
                  </a>
               </xsl:when>
               <xsl:otherwise></xsl:otherwise>
            </xsl:choose>
            
            <!-- Выводим ссылку на последнюю страницу -->
            <xsl:if test="$i+1 &gt;= $n and $n &gt; ($page + 1 + $post_count_page)">
               <xsl:choose>
                  <xsl:when test="$n &gt; round($n)">
                     <!-- Выводим ссылку на последнюю страницу -->
                     <a href="{$link}{$prefix}-{round($n+1)}/" class="page_link" style="text-decoration: none;">→</a>
                  </xsl:when>
                  <xsl:otherwise>
                     <a href="{$link}{$prefix}-{round($n)}/" class="page_link" style="text-decoration: none;">→</a>
                  </xsl:otherwise>
               </xsl:choose>
            </xsl:if>
         </xsl:if>
         
         <!-- Ссылка на предыдущую страницу для Ctrl + влево -->
         <xsl:if test="$page != 0 and $i = $page">
            <xsl:variable name="prev_number_link">
               <xsl:choose>
                  <!-- Если не нулевой уровень -->
                  <xsl:when test="($page) != 0">page-<xsl:value-of select="$i"/>/</xsl:when>
                  <!-- Иначе если нулевой уровень - просто ссылка на страницу со списком элементов -->
                  <xsl:otherwise></xsl:otherwise>
               </xsl:choose>
            </xsl:variable>
            
            <a href="{$link}{$prev_number_link}" id="id_prev"></a>
         </xsl:if>
         
         <!-- Ссылка на следующую страницу для Ctrl + вправо -->
         <xsl:if test="($n - 1) &gt; $page and $i = $page">
            <a href="{$link}page-{$page+2}/" id="id_next"></a>
         </xsl:if>
         
         <!-- Не ставим ссылку на страницу-->
         <xsl:if test="$i = $page">
            <span class="current">
               <xsl:value-of select="$i+1"/>
            </span>
         </xsl:if>
         
         <!-- Рекурсивный вызов шаблона. НЕОБХОДИМО ПЕРЕДАВАТЬ ВСЕ НЕОБХОДИМЫЕ ПАРАМЕТРЫ! -->
         <xsl:call-template name="for">
            <xsl:with-param name="i" select="$i + 1"/>
            <xsl:with-param name="prefix" select="$prefix"/>
            <xsl:with-param name="link" select="$link"/>
            <xsl:with-param name="limit" select="$limit"/>
            <xsl:with-param name="page" select="$page"/>
            <xsl:with-param name="total" select="$total"/>
            <xsl:with-param name="visible_pages" select="$visible_pages"/>
         </xsl:call-template>
      </xsl:if>
   </xsl:template>

   
</xsl:stylesheet>



Каталог вывожу так:

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE xsl:stylesheet>
<xsl:stylesheet version="1.0"
   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
   xmlns:hostcms="http://www.hostcms.ru/"
   exclude-result-prefixes="hostcms">
   <xsl:output xmlns="http://www.w3.org/TR/xhtml1/strict" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" encoding="utf-8" indent="yes" method="html" omit-xml-declaration="no" version="1.0" media-type="text/xml"/>
   
   <xsl:decimal-format name="my" decimal-separator="," grouping-separator=" "/>
   
   <xsl:template match="/">
      <xsl:apply-templates select="/shop"/>
   </xsl:template>
   
   <xsl:template match="property">
      <xsl:variable name="property_id" select="@id" />
      <xsl:if test="/shop/shop_item/property_value[property_id = $property_id]/value/node() and /shop/shop_item/property_value[property_id = $property_id]/value != '' or /shop/shop_item/property_value[property_id = $property_id]/type != 2">
         <tr>
            <td style="padding: 5px" bgcolor="#F5F5F5"><xsl:value-of disable-output-escaping="yes" select="name"/></td>
            <xsl:apply-templates select="/shop/shop_item/property_value[property_id = $property_id]" />
         </tr>
      </xsl:if>
   </xsl:template>
   
   <xsl:variable name="n" select="number(3)"/>
   
   <!-- Шаблон для магазина -->
   <xsl:template match="/shop">
      
      <!-- Получаем ID родительской группы и записываем в переменную $parent_group_id -->
      <xsl:variable name="group" select="group"/>
      
      <xsl:choose>
         <xsl:when test="$group = 0">
            <h1 hostcms:id="{@id}" hostcms:field="name" hostcms:entity="shop">
               <xsl:value-of disable-output-escaping="yes" select="name"/>
            </h1>
            
            <!-- Описание выводится при отсутствии фильтрации по тэгам -->
            
            <div hostcms:id="{@id}" hostcms:field="description" hostcms:entity="shop" hostcms:type="wysiwyg"><xsl:value-of disable-output-escaping="yes" select="description"/></div>
            
         </xsl:when>
         <xsl:otherwise>
            <h1 hostcms:id="{$group}" hostcms:field="name" hostcms:entity="shop_group">
               <xsl:value-of disable-output-escaping="yes" select=".//shop_group[@id=$group]/name"/>
            </h1>
            
            
            
            <!-- Путь к группе -->
            
            <div class="catalog-breadcrumbs">
               <a href="/" class="breadcrumbs-home">Главная:</a><xsl:apply-templates select=".//shop_group[@id=$group]" mode="breadCrumbs"/>
            </div>
            
         </xsl:otherwise>
      </xsl:choose>
      
      
      <!-- Обработка выбранных тэгов -->
      <xsl:if test="count(tag)">
      <p class="h2">Метка — <strong><xsl:value-of select="tag/name"/></strong>.</p>
         <xsl:if test="tag/description != ''">
            <p><xsl:value-of select="tag/description" disable-output-escaping="yes" /></p>
         </xsl:if>
      </xsl:if>
      
      <xsl:variable name="count">1</xsl:variable>
      
      <!-- Отображение подгрупп данной группы, только если подгруппы есть и не идет фильтра по меткам -->
      
      
      <xsl:if test="count(tag) = 0 and count(shop_producer) = 0 and count(//shop_group[parent_id=$group]) &gt; 0">
         
         <div class="other-link-cat">
            <div class="catalog-nav other">
               <a href="/novelties" class="group_title">Новинки</a>
            </div>
            
            <div class="catalog-nav other m">
               <a href="/sale" class="group_title">Распродажа</a>
            </div>
         </div>
         <table width="100%" border="0" cellpadding="3" cellspacing="0">
            <tr>
               <td valign="top" align="center">
                  <xsl:apply-templates select=".//shop_group[parent_id=$group]"/>
               </td>
            </tr>
         </table>
      </xsl:if>
      
      <!-- дополнение пути для action, если выбрана метка -->
      <xsl:if test="count(shop_item) &gt; 0 or /shop/filter = 1">
         <!-- дополнение пути для action, если выбрана метка -->
      <xsl:variable name="form_tag_url"><xsl:if test="count(tag) = 1">tag/<xsl:value-of select="tag/urlencode"/>/</xsl:if></xsl:variable>
         
         <xsl:variable name="path"><xsl:choose>
               <xsl:when test="/shop//shop_group[@id=$group]/node()"><xsl:value-of select="/shop//shop_group[@id=$group]/url"/></xsl:when>
               <xsl:otherwise><xsl:value-of select="/shop/url"/></xsl:otherwise>
         </xsl:choose></xsl:variable>
         
         <form method="get" action="{$path}{$form_tag_url}">
            <div class="filter-box">
               <div>
                  <!--   Цена от:&#xA0;
                  <input name="price_from" size="5" type="text">
                     <xsl:if test="/shop/price_from != 0">
                        <xsl:attribute name="value">
                           <xsl:value-of disable-output-escaping="yes" select="/shop/price_from"/>
                        </xsl:attribute>
                     </xsl:if>
                  </input>&#xA0;
                  
                  до:&#xA0;
                  <input name="price_to" size="5" type="text">
                     <xsl:if test="/shop/price_to != 0">
                        <xsl:attribute name="value">
                           <xsl:value-of disable-output-escaping="yes" select="/shop/price_to"/>
                        </xsl:attribute>
                     </xsl:if>
                  </input>&#xA0;&#xA0;&#xA0;
                  
                  <select name="sorting" onchange="$(this).parents('form:first').submit()">
                     <option disabled="disabled">Сортировать</option>
                     <option value="1">
                     <xsl:if test="/shop/sorting = 1"><xsl:attribute name="selected">selected</xsl:attribute></xsl:if>
                        По цене (сначала дешевые)
                     </option>
                     <option value="2">
                     <xsl:if test="/shop/sorting = 2"><xsl:attribute name="selected">selected</xsl:attribute></xsl:if>
                        По цене (сначала дорогие)
                     </option>
                     <option value="3">
                     <xsl:if test="/shop/sorting = 3"><xsl:attribute name="selected">selected</xsl:attribute></xsl:if>
                        По названию
                     </option>
                  </select>
                  -->
                  
                  <div class="cat-select">
                     <span style="white-space: nowrap">Производитель</span>&#xA0;
                     <!-- Если есть доступные производители -->
                     <xsl:if test="count(producers/shop_producer) > 0">
                        <select name="producer_id">
                           <option value="0">- не выбрано -</option>
                           <xsl:apply-templates select="producers/shop_producer"/>
                        </select>
                     </xsl:if>
                  </div>
                  
                  
                  <!--
                  <span style="white-space: nowrap">Товаров на странице:</span>&#xA0;
                  <select name="on_page">
                     <option value="0">&#x2026;</option>
                     <xsl:call-template name="for_on_page">
                        <xsl:with-param name="i" select="10"/>
                        <xsl:with-param name="n" select="50"/>
                     </xsl:call-template>
                  </select>&#xA0;
                  -->
                  
                  
                  
               </div>
               
               <xsl:if test="count(shop_item_properties//property[filter != 0 and (type = 0 or type = 1 or type = 3 or type = 7)])">
                  <!-- <p>
                     <b>Фильтр по дополнительным свойствам товара:</b>
                  </p> -->
                  <!-- <div class="cat-select-list">
                     <xsl:apply-templates select="shop_item_properties//property[filter != 0 and (type = 0 or type = 1 or type = 3 or type = 7)]" mode="propertyList" />
                     
                  </div> -->
               </xsl:if>
               <div class="nofloat" style="margin-left: 40%">
                  <div class="gray_button goods-page">
                     <div>
                        <input name="filter" value="Подобрать" type="submit"/>
                     </div>
                  </div>
               </div>
            </div>
            
            <!-- Таблица с элементами для сравнения -->
            <xsl:if test="count(/shop/compare_items/compare_item) &gt; 0">
               <table cellpadding="5px" cellspacing="0" border="0">
                  <tr>
                     <td>
                        <input type="checkbox" onclick="SelectAllItemsByPrefix(this.checked, 'del_compare_id_')" />
                     </td>
                     <td>
                        <b>Сравниваемые элементы</b>
                     </td>
                  </tr>
                  <xsl:apply-templates select="compare_items/compare_item"/>
               </table>
            </xsl:if>
            
            <!-- Определяем ссылку с параметрами фильтра -->
            <xsl:variable name="filter">
               <xsl:choose>
                  <xsl:when test="/shop/apply_filter/node()">?action=apply_filter&amp;producer_id=<xsl:value-of select="/shop/producer_id"/>&amp;saller_id=<xsl:value-of select="/shop/saller_id"/>&amp;price_from=<xsl:value-of select="/shop/price_from"/>&amp;price_to=<xsl:value-of select="/shop/price_to"/>&amp;on_page=<xsl:value-of select="/shop/on_page"/>
                     <xsl:if test="/shop/property_xml/node()">
                        <!-- GET для доп. свойств -->
                        <xsl:value-of select="/shop/property_xml"/>
                     </xsl:if>
                  </xsl:when>
                  <xsl:otherwise></xsl:otherwise>
               </xsl:choose>
            </xsl:variable>
            <!-- Определяем первый символ вопрос или амперсанд -->
            <xsl:variable name="first_symbol">
               <xsl:choose>
                  <xsl:when test="$filter != ''">&amp;</xsl:when>
                  <xsl:otherwise>?</xsl:otherwise>
               </xsl:choose>
            </xsl:variable>
            <!-- Отображаем товары -->
            <div class="column p_l">
               <xsl:apply-templates select="shop_item" />
            </div>
            <!--
            <xsl:if test="count_items &gt; 0">
               <div class="nofloat" style="height: 27px; padding: 0 0 10px 0;">
                  <div class="gray_button">
                     <div>
                        <input name="add_compare" value="Добавить для сравнения" type="submit" />
                     </div>
                  </div>
               </div>
            </xsl:if>
            -->
            <xsl:if test="count(/shop/group[@id = /shop/@current_group_id]/propertys/property) > 0">
               <div style="margin: 10px 0px;">
                  <h2>Атрибуты группы товаров</h2>
                  
                  <xsl:if test="count(property[@dir_id = 0])">
                     <table border="0">
                        <xsl:apply-templates select="property[@dir_id = 0]"/>
                     </table>
                  </xsl:if>
                  
                  <xsl:apply-templates select="/shop/properties_groups_dir"/>
               </div>
            </xsl:if>
            
            <xsl:if test="total &gt; 0 and limit &gt; 0">
               
               <xsl:variable name="count_pages" select="ceiling(total div limit)"/>
               
               <xsl:variable name="visible_pages" select="5"/>
               
               <xsl:variable name="real_visible_pages"><xsl:choose>
                     <xsl:when test="$count_pages &lt; $visible_pages"><xsl:value-of select="$count_pages"/></xsl:when>
                     <xsl:otherwise><xsl:value-of select="$visible_pages"/></xsl:otherwise>
               </xsl:choose></xsl:variable>
               
               <!-- Считаем количество выводимых ссылок перед текущим элементом -->
               <xsl:variable name="pre_count_page"><xsl:choose>
                     <xsl:when test="page - (floor($real_visible_pages div 2)) &lt; 0">
                        <xsl:value-of select="page"/>
                     </xsl:when>
                     <xsl:when test="($count_pages - page - 1) &lt; floor($real_visible_pages div 2)">
                        <xsl:value-of select="$real_visible_pages - ($count_pages - page - 1) - 1"/>
                     </xsl:when>
                     <xsl:otherwise>
                        <xsl:choose>
                           <xsl:when test="round($real_visible_pages div 2) = $real_visible_pages div 2">
                              <xsl:value-of select="floor($real_visible_pages div 2) - 1"/>
                           </xsl:when>
                           <xsl:otherwise>
                              <xsl:value-of select="floor($real_visible_pages div 2)"/>
                           </xsl:otherwise>
                        </xsl:choose>
                     </xsl:otherwise>
               </xsl:choose></xsl:variable>
               
               <!-- Считаем количество выводимых ссылок после текущего элемента -->
               <xsl:variable name="post_count_page"><xsl:choose>
                     <xsl:when test="0 &gt; page - (floor($real_visible_pages div 2) - 1)">
                        <xsl:value-of select="$real_visible_pages - page - 1"/>
                     </xsl:when>
                     <xsl:when test="($count_pages - page - 1) &lt; floor($real_visible_pages div 2)">
                        <xsl:value-of select="$real_visible_pages - $pre_count_page - 1"/>
                     </xsl:when>
                     <xsl:otherwise>
                        <xsl:value-of select="$real_visible_pages - $pre_count_page - 1"/>
                     </xsl:otherwise>
               </xsl:choose></xsl:variable>
               
               <xsl:variable name="i"><xsl:choose>
                     <xsl:when test="page + 1 = $count_pages"><xsl:value-of select="page - $real_visible_pages + 1"/></xsl:when>
                     <xsl:when test="page - $pre_count_page &gt; 0"><xsl:value-of select="page - $pre_count_page"/></xsl:when>
                     <xsl:otherwise>0</xsl:otherwise>
               </xsl:choose></xsl:variable>
               
               <div class="paginator">
                  <xsl:call-template name="for">
                     <xsl:with-param name="limit" select="limit"/>
                     <xsl:with-param name="page" select="page"/>
                     <xsl:with-param name="items_count" select="total"/>
                     <xsl:with-param name="i" select="$i"/>
                     <xsl:with-param name="post_count_page" select="$post_count_page"/>
                     <xsl:with-param name="pre_count_page" select="$pre_count_page"/>
                     <xsl:with-param name="visible_pages" select="$real_visible_pages"/>
                  </xsl:call-template>
               </div>
               <div style="clear: both"></div>
            </xsl:if>
         </form>
      </xsl:if>
   </xsl:template>
   
   <!-- Вывод раздела для свойств группы товаров -->
   <xsl:template match="properties_groups_dir">
      
   <p><b><xsl:value-of select="shop_properties_groups_dir_name"/></b></p>
      
      <xsl:variable name="dir_id" select="@id"/>
      
      <xsl:if test="count(/shop/group[@id = /shop/@current_group_id]/propertys/property)">
         <table border="0">
            <xsl:apply-templates select="/shop/group[@id = /shop/@current_group_id]/propertys/property[@parent_id = $dir_id]"/>
         </table>
      </xsl:if>
      
      <xsl:if test="count(properties_groups_dir)">
         <blockquote>
            <xsl:apply-templates select="properties_groups_dir"/>
         </blockquote>
      </xsl:if>
   </xsl:template>
   
   <!-- Вывод строки со значением свойства -->
   <xsl:template match="property_value">
      <xsl:if test="value/node()">
         <div class="shop_property">
            <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>
            <span><xsl:choose>
                  <xsl:when test="$property/type = 2">
                     <a href="{../dir}{file}" target="_blank"><xsl:value-of disable-output-escaping="yes" select="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>
                     <xsl:value-of disable-output-escaping="yes" select="value"/>
                  </xsl:otherwise>
            </xsl:choose></span>
         </div>
      </xsl:if>
   </xsl:template>
   
   
   
   
   
   
   <!-- Шаблон для меню color -->
   <xsl:template match="shop_group" mode="menu">
      <xsl:apply-templates select="property_value[tag_name='color']"  mode="propertyList"/>
   </xsl:template>
   
   <!-- Шаблон для списка меню color -->
   <xsl:template match="property_value" mode="propertyList">
      <a href="#"><xsl:value-of select=".//value"/></a>
   </xsl:template>
   
   
   
   
   
   
   <!-- Шаблон для списка товаров для сравнения -->
   <xsl:template match="compare_items/compare_item">
      <xsl:variable name="var_compare_id" select="."/>
      <tr>
         <td>
            <input type="checkbox" name="del_compare_id_{compare_item_id}" id="id_del_compare_id_{compare_item_id}"/>
         </td>
         <td>
            <a href="{/shop/path}{compare_item_fullpath}{compare_item_path}/">
               <xsl:value-of disable-output-escaping="yes" select="compare_item_name"/>
            </a>
         </td>
      </tr>
   </xsl:template>
   
   
   <!-- Шаблон для фильтра по дополнительным свойствам -->
   <xsl:template match="properties_for_group/property">
      
      <xsl:variable name="nodename">property_id_<xsl:value-of select="@id"/></xsl:variable>
      
      <xsl:variable name="nodename_from">property_id_<xsl:value-of select="@id"/>_from</xsl:variable>
      <xsl:variable name="nodename_to">property_id_<xsl:value-of select="@id"/>_to</xsl:variable>
      
      
      <td>
         <xsl:value-of disable-output-escaping="yes" select="property_name"/>&#xA0;
         <xsl:if test="property_show_kind = 1">
            <!-- Отображаем поле ввода -->
            <br/>
            <input type="text" name="property_id_{@id}">
               <xsl:if test="/shop/*[name()=$nodename] != ''">
                  <xsl:attribute name="value">
                     <xsl:value-of select="/shop/*[name()=$nodename]"/>
                  </xsl:attribute>
               </xsl:if>
            </input>
         </xsl:if>
         <xsl:if test="property_show_kind = 2">
            <!-- Отображаем список -->
            <br/>
            <select name="property_id_{@id}">
               <option value="0">...</option>-->
               <xsl:apply-templates select="list_items/list_item"/>
            </select>
         </xsl:if>
         <xsl:if test="property_show_kind = 3">
            <!-- Отображаем переключатели -->
            <br/>
            <input type="radio" name="property_id_{@id}" value="0" id="id_prop_radio_{@id}_0"></input>
            <label for="id_prop_radio_{@id}_0">Любой вариант</label>
            <xsl:apply-templates select="list_items/list_item"/>
         </xsl:if>
         
         <xsl:if test=" property_show_kind = 4">
            <!-- Отображаем флажки -->
            <xsl:apply-templates select="list_items/list_item"/>
         </xsl:if>
         
         <xsl:if test=" property_show_kind = 5">
            <!-- Отображаем флажок -->
            <br/>
            <input type="checkbox" name="property_id_{@id}" id="property_id_{@id}" style="padding-top:4px">
               <xsl:if test="/shop/*[name()=$nodename] != ''">
                  <xsl:attribute name="checked">
                     <xsl:value-of select="/shop/*[name()=$nodename]"/>
                  </xsl:attribute>
               </xsl:if>
            </input>
            <label for="property_id_{@id}">Да</label>
         </xsl:if>
         
         <xsl:if test=" property_show_kind = 6">
            <!-- Отображение полей "От.. До.." -->
            <br/>
            от: <input type="text" name="property_id_{@id}_from" size="5" value="{/shop/*[name()=$nodename_from]}"/> до: <input type="text" name="property_id_{@id}_to" size="5" value="{/shop/*[name()=$nodename_to]}"/>
         </xsl:if>
         
         <xsl:if test="property_show_kind = 7">
            <!-- Отображаем список  с множественным выбором-->
            <br/>
            <select name="property_id_{@id}[]" multiple="">
               <xsl:apply-templates select="list_items/list_item"/>
            </select>
         </xsl:if>
      </td>
      <xsl:if test="position() mod 6 = 0">
         <xsl:text disable-output-escaping="yes">
            &lt;/tr&gt;
            &lt;tr valign="top"&gt;
         </xsl:text>
      </xsl:if>
   </xsl:template>
   
   <!-- Шаблон для фильтра по дополнительным свойствам -->
   <xsl:template match="property" mode="propertyList">
      <xsl:variable name="nodename">property_<xsl:value-of select="@id"/></xsl:variable>
      <xsl:variable name="nodename_from">property_<xsl:value-of select="@id"/>_from</xsl:variable>
      <xsl:variable name="nodename_to">property_<xsl:value-of select="@id"/>_to</xsl:variable>
      
      <div class="select-title">
         
         <xsl:if test="filter != 5">
            <xsl:value-of disable-output-escaping="yes" select="name"/><xsl:text> </xsl:text>
         </xsl:if>
         
         <xsl:choose>
            <!-- Отображаем поле ввода -->
            <xsl:when test="filter = 1">
               <input type="text" name="property_{@id}">
                  <xsl:if test="/shop/*[name()=$nodename] != ''">
                     <xsl:attribute name="value"><xsl:value-of select="/shop/*[name()=$nodename]"/></xsl:attribute>
                  </xsl:if>
               </input>
            </xsl:when>
            
            
            <!-- Отображаем список -->
            <!-- <xsl:when test="filter = 2">
               <div class="cat-select">
                  <select name="property_{@id}">
                     <option value="0">- не выбрано -</option>
                     <xsl:apply-templates select="list/list_item"/>
                  </select>
               </div>
            </xsl:when> -->
            <!-- Отображаем переключатели -->
            <xsl:when test="filter = 3">
               <br/>
               <div class="propertyInput">
                  <input type="radio" name="property_{@id}" value="0" id="id_prop_radio_{@id}_0"></input>
                  <label for="id_prop_radio_{@id}_0">Любой вариант</label>
                  <xsl:apply-templates select="list/list_item"/>
               </div>
            </xsl:when>
            <!-- Отображаем флажки -->
            <xsl:when test="filter = 4">
               <div class="propertyInput">
                  <xsl:apply-templates select="list/list_item"/>
               </div>
            </xsl:when>
            <!-- Отображаем флажок -->
            <xsl:when test="filter = 5">
               <input type="checkbox" name="property_{@id}" id="property_{@id}" style="padding-top:4px">
                  <xsl:if test="/shop/*[name()=$nodename] != ''">
                     <xsl:attribute name="checked"><xsl:value-of select="/shop/*[name()=$nodename]"/></xsl:attribute>
                  </xsl:if>
               </input>
               <label for="property_{@id}">
                  <xsl:value-of disable-output-escaping="yes" select="name"/><xsl:text> </xsl:text>
               </label>
            </xsl:when>
            <!-- Отображение полей "от и до" -->
            <xsl:when test="filter = 6">
               <br/>
               от: <input type="text" name="property_{@id}_from" size="2" value="{/shop/*[name()=$nodename_from]}"/> до: <input type="text" name="property_{@id}_to" size="2" value="{/shop/*[name()=$nodename_to]}"/>
            </xsl:when>
            <!-- Отображаем список с множественным выбором-->
            <xsl:when test="filter = 7">
               <br/>
               <select name="property_{@id}[]" multiple="multiple">
                  <xsl:apply-templates select="list/list_item"/>
               </select>
            </xsl:when>
         </xsl:choose>
      </div>
   </xsl:template>
   
   <xsl:template match="list/list_item">
      <xsl:if test="../../filter = 2">
         <!-- Отображаем список -->
         <xsl:variable name="nodename">property_<xsl:value-of select="../../@id"/></xsl:variable>
         <option value="{@id}">
         <xsl:if test="/shop/*[name()=$nodename] = @id"><xsl:attribute name="selected">selected</xsl:attribute></xsl:if>
            <xsl:value-of disable-output-escaping="yes" select="value"/>
         </option>
      </xsl:if>
      <xsl:if test="../../filter = 3">
         <!-- Отображаем переключатели -->
         <xsl:variable name="nodename">property_<xsl:value-of select="../../@id"/></xsl:variable>
         <br/>
         <input type="radio" name="property_{../../@id}" value="{@id}" id="id_property_{../../@id}_{@id}">
            <xsl:if test="/shop/*[name()=$nodename] = @id">
               <xsl:attribute name="checked">checked</xsl:attribute>
            </xsl:if>
            <label for="id_property_{../../@id}_{@id}">
               <xsl:value-of disable-output-escaping="yes" select="value"/>
            </label>
         </input>
      </xsl:if>
      <xsl:if test="../../filter = 4">
         <!-- Отображаем флажки -->
         <xsl:variable name="nodename">property_<xsl:value-of select="../../@id"/></xsl:variable>
         <br/>
         <input type="checkbox" value="{@id}" name="property_{../../@id}[]" id="property_{../../@id}_{@id}">
            <xsl:if test="/shop/*[name()=$nodename] = @id">
               <xsl:attribute name="checked">checked</xsl:attribute>
            </xsl:if>
            <label for="property_{../../@id}_{@id}">
               <xsl:value-of disable-output-escaping="yes" select="value"/>
            </label>
         </input>
      </xsl:if>
      <xsl:if test="../../filter = 7">
         <!-- Отображаем список -->
         <xsl:variable name="nodename">property_<xsl:value-of select="../../@id"/></xsl:variable>
         <option value="{@id}">
            <xsl:if test="/shop/*[name()=$nodename] = @id">
               <xsl:attribute name="selected">
               </xsl:attribute>
            </xsl:if>
            <xsl:value-of disable-output-escaping="yes" select="value"/>
         </option>
      </xsl:if>
   </xsl:template>
   
   <!-- Цикл с шагом 10 для select'a количества элементов на страницу -->
   <xsl:template name="for_on_page">
      <xsl:param name="i" select="0"/>
      <xsl:param name="n"/>
      
      <option value="{$i}">
         <xsl:if test="$i = /shop/on_page">
            <xsl:attribute name="selected">
            </xsl:attribute>
         </xsl:if>
         <xsl:value-of select="$i"/>
      </option>
      
      <xsl:if test="$n &gt; $i">
         <!-- Рекурсивный вызов шаблона -->
         <xsl:call-template name="for_on_page">
            <xsl:with-param name="i" select="$i + 10"/>
            <xsl:with-param name="n" select="$n"/>
         </xsl:call-template>
      </xsl:if>
   </xsl:template>
   
   <!-- Шаблон для групп товара -->
   <xsl:template match="shop_group">
      <!--<xsl:variable name="parent_id" select="@parent"/>-->
      <div class="catalog-nav">
         <xsl:if test="image_small != ''">
            <a href="{/shop/path}{fullpath}"><img src="{dir}{image_small}" border="0" style="margin-top: 5%; margin-bottom: 3px;" /></a><br />
         </xsl:if>
         
         <a href="{url}" class="group_title">
            <xsl:value-of disable-output-escaping="yes" select="name"/>
            (<xsl:value-of select="items_total_count"/>)
         </a>
         
         <!--
         <br/>
         <xsl:value-of disable-output-escaping="yes" select="description"/>
         -->
         <xsl:if test="count(shop_group) &gt; 1">
            <!--   <xsl:apply-templates select="group" mode="sub_group"/>-->
         </xsl:if>
      </div>
      
      <!--<xsl:if test="position()= round(count(//group[@parent = $parent_id]) div 3)">-->
         <xsl:if test="position() mod 3 = 0">
            
            <xsl:text disable-output-escaping="yes">
               &lt;/td&gt;
               &lt;td valign="top" width="33%" align="center"&gt;
            </xsl:text>
         </xsl:if>
      </xsl:template>
      
      
      <!-- Шаблон для подразделов -->
      <xsl:template match="shop_group" mode="sub_group">
         <a href="{url}"  hostcms:id="{@id}" hostcms:field="name" hostcms:entity="shop_group">
            <xsl:value-of disable-output-escaping="yes" select="name"/>
         </a>
         <xsl:variable name="parent_id" select="parent_id"/>
         <!-- Ставим запятую после группы, за которой следуют еще группы из данной родителской группы -->
         <xsl:if test="position() != last() and count(//shop_group[parent_id = $parent_id]) &gt; 1">,&#xA0;</xsl:if>
      </xsl:template>
      
      <!-- Шаблон для товара -->
      <xsl:template match="shop_item">
<xsl:variable name="col_class">col-<xsl:choose><xsl:when test="position() = 1 or position() > 5 and ((position()-1) mod 5 = 0)">1</xsl:when><xsl:when test="position()=2  or position() > 5 and ((position()-2) mod 5 = 0)">2</xsl:when><xsl:when test="position()=5 or position() > 5 and ((position()-5) mod 5 = 0)">5</xsl:when></xsl:choose></xsl:variable>
         
         <div class="goods-view-box">
            <!-- Изображение для информационного элемента (если есть) -->
            <xsl:if test="image_small!=''">
               <div class="img-indent">
                  <a href="{url}"><img src="{dir}{image_small}" /></a>
               </div>
            </xsl:if>
            <xsl:if test="shop_producer/node()">
               <div class="shop-producer"><xsl:value-of disable-output-escaping="yes" select="shop_producer/name"/></div>
            </xsl:if>
         <h5><a href="{url}"><xsl:value-of disable-output-escaping="yes" select="name"/></a></h5>
            <!-- <p class="p0"><xsl:value-of disable-output-escaping="yes" select="description"/></p> -->
            
            <!-- <xsl:apply-templates select="property_value[tag_name='color']" mode="all"/>
            <xsl:apply-templates select="/shop/shop_item/property_value[property_id = $property_id]" /> -->
            
            <!-- <xsl:variable name="myItem" select="." />
            
            <xsl:for-each select="/shop/shop_item_properties//property">
               <xsl:variable name="propertyId" select="@id" />
               <xsl:choose>
                  <xsl:when test="count($myItem/property_value[property_id = $propertyId])">
                     <xsl:apply-templates select="$myItem/property_value[property_id = $propertyId]"/>
                  </xsl:when>
               <xsl:otherwise><td></td></xsl:otherwise>
               </xsl:choose>
            </xsl:for-each> -->
            
            
         </div>
         
         <!-- Перевод строки после каждого 3-го элемента -->
         <xsl:if test="((position() - 5) mod 5 = 0) and position() != last()">
            <xsl:text disable-output-escaping="yes">
               &lt;/div&gt;
               &lt;div class="wrapper"&gt;
               &lt;span class="cat-line"&gt; &lt;/span&gt;
            </xsl:text>
         </xsl:if>
         
         
         
         <div class="cat-list-desc">
            <!-- Описание выводим только на первой странице -->
            <xsl:if test="page = 0 and .//shop_group[@id=$group]/description != ''">
               <div hostcms:id="{$group}" hostcms:field="description" hostcms:entity="shop_group" hostcms:type="wysiwyg"><xsl:value-of disable-output-escaping="yes" select=".//shop_group[@id=$group]/description"/></div>
            </xsl:if>
         </div>
         
      </xsl:template>
      
      
      <!-- Метки для товаров -->
      <xsl:template match="tag">
         <a href="{/shop/url}tag/{urlencode}/" class="tag">
            <xsl:value-of select="name"/>
         </a>
      <xsl:if test="position() != last()"><xsl:text>, </xsl:text></xsl:if>
      </xsl:template>
      
      <!-- Шаблон для модификаций -->
      <xsl:template match="modifications/item">
         <tr>
            <td>
               
               <a href="{/shop/path}{fullpath}{path}/">
                  <img src="{small_image}" class="image" />
               </a>
               
            </td>
            <td>
               <!-- Название модификации -->
               <a href="{/shop/path}{fullpath}{path}/">
                  <xsl:value-of disable-output-escaping="yes" select="name"/>
               </a>
            </td>
            <td>
               <!-- Цена модификации -->
               <xsl:choose>
                  <xsl:when test="price_discount != 0">
                     <xsl:value-of disable-output-escaping="yes" select="price_discount"/>&#xA0;
                     <!-- Валюта товара -->
                     <xsl:value-of disable-output-escaping="yes" select="currency"/>
                  </xsl:when>
                  <xsl:otherwise>договорная</xsl:otherwise>
               </xsl:choose>
            </td>
         </tr>
      </xsl:template>
      
      <!-- Шаблон для скидки -->
      <xsl:template match="discount">
         <br/>
         <xsl:value-of disable-output-escaping="yes" select="name"/>&#xA0;
         <xsl:value-of disable-output-escaping="yes" select="value"/>%</xsl:template>
      
      <!-- Шаблон для спеццен -->
      <xsl:template match="special_price">
         
         <xsl:variable name="item_id" select="@item_id" />
         
         <br/>
         от <xsl:value-of select="shop_special_prices_from"/> до <xsl:value-of select="shop_special_prices_to"/>&#xA0;<xsl:value-of select="/shop/item[@id = $item_id]/mesure"/>
         <xsl:text> </xsl:text>
         &#8212;
         <xsl:text> </xsl:text>
         <xsl:value-of select="format-number(shop_special_prices_price,'### ##0,00', 'my')" />&#xA0;<xsl:value-of select="/shop/item[@id = $item_id]/currency"/>
         за 1 <xsl:value-of select="/shop/item[@id = $item_id]/mesure"/>
      </xsl:template>
      
      <!-- Цикл для вывода строк ссылок -->
      <xsl:template name="for">
         
         <xsl:param name="limit"/>
         <xsl:param name="page"/>
         <xsl:param name="pre_count_page"/>
         <xsl:param name="post_count_page"/>
         <xsl:param name="i" select="0"/>
         <xsl:param name="items_count"/>
         <xsl:param name="visible_pages"/>
         
         <xsl:variable name="n" select="ceiling($items_count div $limit)"/>
         
         <xsl:variable name="start_page"><xsl:choose>
               <xsl:when test="$page + 1 = $n"><xsl:value-of select="$page - $visible_pages + 1"/></xsl:when>
               <xsl:when test="$page - $pre_count_page &gt; 0"><xsl:value-of select="$page - $pre_count_page"/></xsl:when>
               <xsl:otherwise>0</xsl:otherwise>
         </xsl:choose></xsl:variable>
         
         <xsl:if test="$i = $start_page and $page != 0">
            <span class="ctrl">
               ← Ctrl
            </span>
         </xsl:if>
         
         <xsl:if test="$i = ($page + $post_count_page + 1) and $n != ($page+1)">
            <span class="ctrl">
               Ctrl →
            </span>
         </xsl:if>
         
         <!-- Передаем фильтр -->
<xsl:variable name="filter"><xsl:if test="/shop/filter/node()">?filter=1&amp;sorting=<xsl:value-of select="/shop/sorting"/>&amp;price_from=<xsl:value-of select="/shop/price_from"/>&amp;price_to=<xsl:value-of select="/shop/price_to"/><xsl:for-each select="/shop/*"><xsl:if test="starts-with(name(), 'property_')">&amp;<xsl:value-of select="name()"/>=<xsl:value-of select="."/></xsl:if></xsl:for-each></xsl:if></xsl:variable>
         
         <xsl:if test="$items_count &gt; $limit and ($page + $post_count_page + 1) &gt; $i">
            <!-- Заносим в переменную $group идентификатор текущей группы -->
            <xsl:variable name="group" select="/shop/group"/>
            
            <!-- Путь для тэга -->
         <xsl:variable name="tag_path"><xsl:if test="count(/shop/tag) != 0">tag/<xsl:value-of select="/shop/tag/urlencode"/>/</xsl:if></xsl:variable>
            
            <!-- Путь для сравнения товара -->
         <xsl:variable name="shop_producer_path"><xsl:if test="count(/shop/shop_producer)">producer-<xsl:value-of select="/shop/shop_producer/@id"/>/</xsl:if></xsl:variable>
            
            <!-- Определяем группу для формирования адреса ссылки -->
   <xsl:variable name="group_link"><xsl:choose><xsl:when test="$group != 0"><xsl:value-of select="/shop//shop_group[@id=$group]/url"/></xsl:when><xsl:otherwise><xsl:value-of select="/shop/url"/></xsl:otherwise></xsl:choose></xsl:variable>
            
            <!-- Определяем адрес ссылки -->
         <xsl:variable name="number_link"><xsl:if test="$i != 0">page-<xsl:value-of select="$i + 1"/>/</xsl:if></xsl:variable>
            
            
            
            
            <!-- Выводим ссылку на первую страницу -->
            <xsl:if test="$page - $pre_count_page &gt; 0 and $i = $start_page">
               <a href="{$group_link}{$tag_path}{$shop_producer_path}{$filter}" class="page_link" style="text-decoration: none;">←</a>
            </xsl:if>
            
            <!-- Ставим ссылку на страницу-->
            <xsl:if test="$i != $page">
               <xsl:if test="($page - $pre_count_page) &lt;= $i and $i &lt; $n">
                  <!-- Выводим ссылки на видимые страницы -->
                  <a href="{$group_link}{$number_link}{$tag_path}{$shop_producer_path}{$filter}" class="page_link">
                     <xsl:value-of select="$i + 1"/>
                  </a>
               </xsl:if>
               
               <!-- Выводим ссылку на последнюю страницу -->
               <xsl:if test="$i+1 &gt;= ($page + $post_count_page + 1) and $n &gt; ($page + 1 + $post_count_page)">
                  <!-- Выводим ссылку на последнюю страницу -->
                  <a href="{$group_link}page-{$n}/{$tag_path}{$shop_producer_path}{$filter}" class="page_link" style="text-decoration: none;">→</a>
               </xsl:if>
            </xsl:if>
            
            <!-- Ссылка на предыдущую страницу для Ctrl + влево -->
   <xsl:if test="$page != 0 and $i = $page"><xsl:variable name="prev_number_link"><xsl:if test="($page) != 0">page-<xsl:value-of select="$i"/>/</xsl:if></xsl:variable><a href="{$group_link}{$prev_number_link}{$tag_path}{$shop_producer_path}{$filter}" id="id_prev"></a></xsl:if>
            
            <!-- Ссылка на следующую страницу для Ctrl + вправо -->
            <xsl:if test="($n - 1) > $page and $i = $page">
               <a href="{$group_link}page-{$page+2}/{$tag_path}{$shop_producer_path}{$filter}" id="id_next"></a>
            </xsl:if>
            
            <!-- Не ставим ссылку на страницу-->
            <xsl:if test="$i = $page">
               <span class="current">
                  <xsl:value-of select="$i+1"/>
               </span>
            </xsl:if>
            
            
            <!-- Рекурсивный вызов шаблона. НЕОБХОДИМО ПЕРЕДАВАТЬ ВСЕ НЕОБХОДИМЫЕ ПАРАМЕТРЫ! -->
            <xsl:call-template name="for">
               <xsl:with-param name="i" select="$i + 1"/>
               <xsl:with-param name="limit" select="$limit"/>
               <xsl:with-param name="page" select="$page"/>
               <xsl:with-param name="items_count" select="$items_count"/>
               <xsl:with-param name="pre_count_page" select="$pre_count_page"/>
               <xsl:with-param name="post_count_page" select="$post_count_page"/>
               <xsl:with-param name="visible_pages" select="$visible_pages"/>
            </xsl:call-template>
         </xsl:if>
      </xsl:template>
      
      <!-- Шаблон выводит рекурсивно ссылки на группы инф. элемента -->
      <xsl:template match="shop_group" mode="breadCrumbs">
         <xsl:param name="parent_id" select="parent_id"/>
         
         <!-- Получаем ID родительской группы и записываем в переменную $group -->
         <xsl:param name="group" select="/shop/shop_group"/>
         
         <xsl:apply-templates select="//shop_group[@id=$parent_id]" mode="breadCrumbs"/>
         
         <xsl:if test="parent_id=0">
            <a href="{/shop/url}" hostcms:id="{/shop/@id}" hostcms:field="name" hostcms:entity="shop">
               <xsl:value-of select="/shop/name"/>
            </a>
         </xsl:if>
         
      <span class="path_arrow"><xsl:text>→</xsl:text></span>
         
         <a href="{url}" hostcms:id="{@id}" hostcms:field="name" hostcms:entity="shop_group">
            <xsl:value-of disable-output-escaping="yes" select="name"/>
         </a>
         
      </xsl:template>
      
      <!-- Шаблон для доп свойств -->
      <!-- <xsl:template match="property">
         <xsl:variable name="property_id" select="@id" />
         <xsl:if test="/shop/shop_item/property_value[property_id = $property_id]/value/node() and /shop/shop_item/property_value[property_id = $property_id]/value != '' or /shop/shop_item/property_value[property_id = $property_id]/type != 0">
            <tr>
               <td><xsl:value-of disable-output-escaping="yes" select="name"/></td>
               <xsl:apply-templates select="/shop/shop_item/property_value[property_id = $property_id]" />
            </tr>
         </xsl:if>
      </xsl:template> -->
      
      <!-- <xsl:template match="property_value[tag_name='color']" mode="all">
         <xsl:variable name="myItem" select="." />
         
         <xsl:for-each select="/shop/shop_item_properties//property">
            <xsl:variable name="propertyId" select="@id" />
            <xsl:choose>
               <xsl:when test="count($myItem/property_value[property_id = $propertyId])">
                  <xsl:apply-templates select="$myItem/property_value[property_id = $propertyId]"/>
               </xsl:when>
            <xsl:otherwise><td></td></xsl:otherwise>
            </xsl:choose>
         </xsl:for-each>
      </xsl:template> -->
      
      
      <!-- Шаблон для фильтра производителей -->
      <xsl:template match="producers/shop_producer">
         
         <xsl:param name="id_prod" select="@id"/>
         <option value="{@id}">
            <xsl:if test="@id = /shop/producer_id">
               <xsl:attribute name="selected"> </xsl:attribute>
            </xsl:if>
            <xsl:value-of disable-output-escaping="yes" select="name"/>
         </option>
      </xsl:template>
      
      
      <!-- Шаблон для фильтра цвета -->
      <!--    <xsl:template match="color_t">
         
         <xsl:variable name="myItem" select="." />
         <select>
            <xsl:for-each select="/shop/shop_item_properties//property">
               <xsl:variable name="propertyId" select="@id" />
               <xsl:choose>
                  <xsl:when test="count($myItem/property_value[property_id = $propertyId])">
                     <option value="{@id}"><xsl:apply-templates select="$myItem/property_value[property_id = $propertyId]"/></option>
                  </xsl:when>
               <xsl:otherwise><td></td></xsl:otherwise>
               </xsl:choose>
            </xsl:for-each>
         </select>
         
      </xsl:template> -->
   </xsl:stylesheet>
Модератор
#
Re: Убрать фильтр при переходе в каталог товаров
Где можно пронаблюдать?
Вы только что начали читать предложение, чтение которого вы уже заканчиваете.
#
Re: Убрать фильтр при переходе в каталог товаров
Авторизация