Hello experts,
I would like to count the number of books in each book category. I have an
data example here:
<bookshelf>
<book><cat>A</cat></book>
<book><cat>B</cat></book>
<book><cat>A</cat></book>
<book><cat>B</cat></book>
<book><cat>B</cat></book>
</bookself>
The result should be:
A 2
B 3
It would be nice if the script would recognise the different categories by
itself (e.g. starting a new one if it has not be seen before). But to make
things simple it would also be ok to have one line for each category (since
I know them and there are fix).
Can somebody help me?
Kind Regards,
Karl
--
5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail
+++ GMX - die erste Adresse f�r Mail, Message, More +++
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--