Здравствуйте!
шаблон - show_items_blue
<?xml version="1.0" encoding="utf-8"?>
<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:template match="shop_item" name="show_items_blue">
...
</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:template match="/shop">
<xsl:apply-templates select="shop_item" name="show_item"/>
</xsl:template>
<xsl:template match="shop_item" name="show_item">
...
<xsl:apply-templates select="associated/shop_item" />
...
</xsl:template>
<xsl:template match="associated/shop_item">
<xsl:apply-templates select="." name="show_items_blue"/>
</xsl:template>
<xsl:include href="import://show_items_blue" />
</xsl:stylesheet>
исполняется сразу шаблон name="show_items_blue", а не name="show_item" и только потом должен по associated использоваться name="show_items_blue"!
Подскажите как их разделить!?
