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

Count of unique elements [XSLT 1.0]

Subject: Count of unique elements [XSLT 1.0]
From: "Kirov Plamen" <pkirov@xxxxxxxxx>
Date: Fri, 24 Nov 2006 11:05:28 +0200
 Count of unique elements [XSLT 1.0]
Hi all,

The XML:

	<product>
		<prodid>V667320</prodid>
		<name>Battery Pack</name>
		<price>$20</price>
		<quantity>178</quantity>
		<region>SouthWest</region>
	</product>
	<product>
		<prodid>M382932</prodid>
		<name>CD Visor Organizer</name>
		<price>$19</price>
		<quantity>129</quantity>
		<region>NorthWest</region>
	</product>
	<product>
		<prodid>U3923839</prodid>
		<name>Rock n Roll Supercart</name>
		<price>$150</price>
		<quantity>200</quantity>
		<region>SouthWest</region>
	</product>
	<product>
		<prodid>Q3929302</prodid>
		<name>Digital Tire Guage</name>
		<price>$40</price>
		<quantity>623</quantity>
		<region>NorthWest</region>
	</product>

I want to count the unique elements 'region' into XML. In this example
the count result must be "2" - there's two unique 'region': NorthWest
and SouthWest.

Any help is appreciated.

BR
Plamen

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.