Выделение активного пункта меню в ИС

#
Выделение активного пункта меню в ИС
Делаю меню из ИС. Никак не могу выделить активный пункт. Со структурой всё понятно, а вот с ИС... На форому решение не нашел.
Может кто уже реализовывал, бросьте xsl шаблончик.

Основа такая

<?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 select="/document"/>
   </xsl:template>

   <xsl:template match="/document">
      
      
      
      <!-- Выводим название информационной системы -->
      <span>
         <xsl:value-of disable-output-escaping="yes" select="blocks/name"/>
      </span>
      

      <!-- Отображение записи информационной системы -->
      <xsl:if test="blocks/items/item[item_status=1]">
         <ul class="news_list">
            <xsl:apply-templates select="blocks/items/item[item_status=1]"/>
         </ul>
      </xsl:if>
   </xsl:template>

   <!-- Шаблон вывода информационного элемента -->
   <xsl:template match="item">
      

      <!-- Название -->
      
      <li>
         <a href="{item_path}" title="{item_name}">
            <xsl:value-of disable-output-escaping="yes" select="item_name"/>
         </a>
      </li>
      
      
   </xsl:template>
</xsl:stylesheet>
#
Re: Выделение активного пункта меню в ИС
На форуме решения есть, плохо искали!
Из своего скину -


<?php
//СписокПродукции
$InformationSystem = & singleton('InformationSystem');
$InformationSystemId = 26;
$rez = array();
$rez = $InformationSystem->GetInformationFromPath($InformationSystemId);
$external_propertys = array();
$external_propertys['ТекущийЭлемент'] = $rez['item'];
$external_propertys['ТекущаяГруппа'] = $rez['group'];
$param['xml_show_group_type'] = 'all';
$item_count = 99;

$InformationSystem->ShowInformationSystem($InformationSystemId, false,'СписокПродукции',$item_count,0,$external_propertys, $param);
?>



Ну и проверка



<!-- Шаблон /// Группы ИС /// -->
<xsl:template match="group" mode="groups">

.....

<xsl:variable name="current_group_id" select="/document/ТекущаяГруппа"/>
<xsl:if test="$current_group_id = @id or count(.//group[@id=$current_group_id])=1">
<xsl:attribute name="class">active</xsl:attribute>
</xsl:if>

....

<!-- Шаблон /// Элемент ИС /// -->
<xsl:template match="blocks/items/item">

...

<xsl:variable name="current_item_id" select="/document/ТекущийЭлемент"/>
<xsl:if test="$current_item_id = @id">
<xsl:attribute name="class">active</xsl:attribute>
</xsl:if>

ку
#
Re: Выделение активного пункта меню в ИС
Огромнейшая благодарность! Помогло
Авторизация