Я немного изменил данный шаблон:
<?xml version="1.0" encoding="windows-1251"?>
<!DOCTYPE xsl:stylesheet>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output xmlns="http://www.w3.org/TR/xhtml1/strict" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
encoding="Windows-1251" indent="yes" method="html" omit-xml-declaration="no" version="1.0" media-type="text/xml" />
<xsl:template match="/">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="/document">
<!-- Получаем ID родительской группы и записываем в переменную $parent_group_id -->
<xsl:variable name="parent_group_id" select="blocks/parent_group_id" />
<!-- Отображение подгрупп данной группы -->
<table border="0" cellpadding="0" cellspacing="0">
<xsl:apply-templates select="//group[@parent_id='0']" mode="groups" />
</table>
</xsl:template>
<!-- ======================================================== -->
<!-- Шаблон выводит ссылки подгруппы информационного элемента -->
<!-- ======================================================== -->
<xsl:template match="group" mode="groups">
<xsl:param name="cur_gr_id" select="@id"/>
<xsl:if test="count(/document/blocks/items/item[@group_id=$cur_gr_id]) != 0">
<tr>
<td valign="top">
<div class="level1Section"><b style="font-size:12px; padding-left:5px">
<a href="{/document/blocks/url}{fullpath}" style="color:#C10417"><xsl:value-of disable-output-escaping="yes" select="name" /></a>
</b></div>
</td>
</tr>
<!-- Отображение записи информационного блока -->
<xsl:apply-templates select="//item[item_status=1 and @group_id = $cur_gr_id]" />
</xsl:if>
</xsl:template>
<!-- ======================== -->
<!-- Данные об инф. элементах -->
<!-- ======================== -->
<xsl:template match="blocks/items/item">
<xsl:param name="group_id" select="@group_id"/>
<tr>
<td valign="top" align="right">
<div style="font-size:12px; text-decoration:none; padding-left:5px; border-bottom:thin; border-bottom-style:solid; border-bottom-color:#D9D9D9">
<!-- Название -->
<a href="{item_path}" class="level3Section" style="padding-left: 15px; padding-right: 10px;"><xsl:value-of disable-output-escaping="yes" select="item_name" /></a>
</div>
</td>
</tr>
</xsl:template>
</xsl:stylesheet>
Итображение инф системы:
<?
/* Вывод информационных систем */
$InformationSystem = new InformationSystem();
$item_count = 999;
$InformationGroupId = false; // false - из всех групп, 0 - из корневой группы
$InformationSystem->ShowInformationSystem(26, $InformationGroupId, 'СписокЭлементовИнфосистемыЛТ' ,$item_count);
?>
Все отображается как надо, но в журнале вот такая ошибка высвечивается:
<strong>ПРЕДУПРЕЖЕДЕНИЕ:</strong> Missing argument 5 for informationsystem::showinformationsystem(), called in /home/u29959/images.lab-pribor.ru/www/data_templates/18.htm on line 34 and defined в файле /home/u29959/images.lab-pribor.ru/www/modules/InformationSystems/InformationSystems.class.php (строка 3241)
Что не так, помогите разобраться.