conditional counting of elements

Subject: conditional counting of elements
From: PAPINENI Sivaprakash <SPapinen@xxxxxxxxxx>
Date: Wed, 8 Mar 2000 15:45:50 -0500
Hi,
 
Sample Xml file:

<?xml version="1.0"?>
<company>
<department id="1">
<item>book</item>
</department>
<department id="2">
<item>table</item>
</department>
<department id="3">
<item>book</item>
</department>
</company>

I'm trying to count the number of 'departments' that have value  'book' for
'item' element in the above Xml using XSLT(the latest version of Xalan) and
display it in html.

Can some one help me here.
Thanks,
Siva


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread