Вывод дополнительных свойств для группы товаров в магазине

#
Вывод дополнительных свойств для группы товаров в магазине
Здравствуйте подскажите пожалуйста.
Добавил свойства для групп товаров типа файл.
Теперь хочу их вывести.. ( типовую динамическую страницу отредактировал)..свойства выводятся.
но выводятся все одинаково не зависимости от их типа.
Вместо ожидаемых картинок выводятся их адресса

вот кусок из XLS шаблона

<div class="block_content">
         <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>
      </div>
      
      <xsl:if test="count(properties_groups_dir)">
         <blockquote>
            <xsl:apply-templates select="properties_groups_dir"/>
         </blockquote>
      </xsl:if>
   </xsl:template>
   
   <!-- Вывод строки со значением свойства -->
   <xsl:template match="property">
      <tr>
         <td style="padding: 5px" bgcolor="#eeeeee">
            <b><xsl:value-of select="name"/></b>
         </td>
         <td style="padding: 5px" bgcolor="#eeeeee">
            <xsl:choose>
               <xsl:when test="type = 1">
                  
                  
                  
                  <a href="{file_path}" class="highslide" onclick="return hs.expand(this)" alt="Highslide JS"
                     title="Нажмите для увеличения" >
                     <img src="{small_image}"  style=" margin:1px;" />
                  </a>
               </xsl:when>
               <xsl:when test="type = 7">
                  <xsl:choose>
                     <xsl:when test="value = 1">
                        <input type="checkbox" checked="" disabled="" />
                     </xsl:when>
                     <xsl:otherwise>
                        <input type="checkbox" disabled="" />
                     </xsl:otherwise>
                  </xsl:choose>
               </xsl:when>
               <xsl:otherwise>
                  <xsl:value-of disable-output-escaping="yes" select="value"/>
               </xsl:otherwise>
            </xsl:choose>
         </td>
      </tr>
   </xsl:template>
Авторизация