This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

conditional counting of elements



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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]