[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Count books in all book categories

Subject: Count books in all book categories
From: "Karl Koch" <TheRanger@xxxxxxx>
Date: Fri, 22 Jul 2005 17:37:42 +0200 (MEST)
book categories
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 fo?=r Mail, Message, More +++

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.