Имеется такой код в шаблоне:
<?php
$Informationsystem_Controller_Show = new Informationsystem_Controller_Show(
Core_Entity::factory('Informationsystem', 1)
);
$Informationsystem_Controller_Show
->informationsystemItems()
->queryBuilder()
->clearOrderBy()
->orderBy('showed', 'DESC');
$Informationsystem_Controller_Show
->xsl(Core_Entity::factory('Xsl')->getByName('ПопулярныеНовости'))
->limit(5)
->show();
?>
В XSL шаблоне следующее:
<?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/informationsystem_item"/>
</xsl:template>
<xsl:template match="informationsystem_item">
<div class="item-header">
<a href="{link}">
<img src="{dir}{image_small}"/>
</a>
</div>
<div class="item-content">
<h4>
<a href="{link}">
<xsl:value-of disable-output-escaping="yes" select="name"/>
</a>
</h4>
<p>
<xsl:value-of disable-output-escaping="yes" select="descroption"/>
</p>
</div>
</xsl:template>
</xsl:stylesheet>
Как мне сделать, чтоб в блок производилась выборка самых популярных новостей не из всех ИС как сейчас, а только из ИС "Новости"?