Когда делал сайт, возникла такая проблема. При нахождение в корне каталоге список групп выводится как нужно.
Но когда выбирают группу, то помимо элементов в ней, еще выводится название этой группы, ее картинка и перейти в самом верху.
Адрес сайта:
http://progress22.pro/catalog/
А вот когда внутри группы, то сверху есть описание группы:
http://progress22.pro/catalog/11/
Вот код:
<?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="/informationsystem"/>
</xsl:template>
<xsl:template match="/informationsystem">
<div class="container" id="features-list">
<xsl:apply-templates select="informationsystem_group"/>
<div class="row auto-clear">
<xsl:apply-templates select="informationsystem_item"/>
</div>
</div>
</xsl:template>
<xsl:template match="informationsystem_group">
<div class="col-xs-12 col-sm-6 col-md-4 col-lg-4 text-center">
<div class="fbox catalog_view" style="padding:10px 20px 10px 20px">
<h2><a href="{url}"><xsl:value-of select="name" disable-output-escaping="yes"/> в Барнауле</a></h2>
<a href="{url}"><img src="{dir}{image_large}"/></a>
<xsl:value-of select="description" disable-output-escaping="yes"/>
<a class="button green rounded margin-20" href="{url}">Перейти</a>
</div>
</div>
</xsl:template>
<xsl:template match="informationsystem_item">
<div class="col-xs-12 col-sm-6 col-md-3 col-lg-3 text-center">
<div class="fbox catalog_view" style="padding:10px 20px 10px 20px">
<h2 style="font-size:16px;"><xsl:value-of select="name" disable-output-escaping="yes"/></h2>
<img src="{dir}{image_large}"/>
<xsl:value-of select="description" disable-output-escaping="yes"/>
<a class="button green rounded margin-20" data-toggle="modal" data-target="#backform">Купить</a>
</div>
</div>
</xsl:template>
</xsl:stylesheet>