This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
conditional counting of elements
- To: "'XSL-List at mulberrytech dot com'" <XSL-List at mulberrytech dot com>
- Subject: conditional counting of elements
- From: PAPINENI Sivaprakash <SPapinen at CBSINC dot com>
- Date: Wed, 8 Mar 2000 15:45:50 -0500
- Reply-To: xsl-list at mulberrytech dot com
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