вот такой шаблон)
<?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">
<xsl:variable name="parent_group_id" select="blocks/parent_group_id"/>
<table id="free">
<xsl:apply-templates select=".//group[@parent_id=$parent_group_id]" mode="goups"/>
</table>
</xsl:template>
<xsl:template match="group" mode="goups">
<tr>
<td>
<a href="{/document/blocks/url}{fullpath}"><xsl:value-of disable-output-escaping="yes" select="propertys/property[@xml_name='addname']/value"/></a>
</td>
<td>
<div class="count"><xsl:value-of select="count(blocks/items/item[item_propertys/item_property[@xml_name='free']/value=0])" /></div>
</td>
</tr>
</xsl:template>
</xsl:stylesheet>
а вызывается вот таким способом
<?
$InformationSystem = new InformationSystem();
$external_propertys=array();
$external_propertys['ОтображатьСсылкуНаАрхив']=0;
$external_propertys['ОтображатьСсылкиНаСледующиеСтраницы']=0;
$item_count = 100;
$InformationSystemId = 24;
$InformationGroupId = 0;
$InformationSystem->ShowInformationSystem($InformationSystemId, $InformationGroupId, 'Колво',$item_count,0,$external_propertys);
?>
возвращает 0
но если вызвать подсчет в шаблоне document будет ведь подсчет только общего количества?
Сама инф.система представляет собой несколько групп, в которых идут элементы, которые и нужно считать)