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

sorting & counting

Subject: sorting & counting
From: "Igor Semenko" <isemenko@xxxxxxxxxxxxxxxxxx>
Date: Wed, 28 Jun 2000 00:35:20 +0300
sorting by counting
Hi all,

Can someone suggest a solution for the following:

I have a tree like:
	<node priority="2">
		<name>Node1</name>
		<node priority="1">
			<name>Node2</name>
		</node>
		<node priority="2">
			<name>Node3</name>
			<node priority="3">
				<name>Node4</name>
				...
			</node>
			...
		</node>
		...
	</node>

and need to:
1. sort them by 'priority'
2. leave, say, only 3 nodes in the result

applying to the example it should be:
	Node4
	Node3
	Node1

(Node2 skipped)

Please help or answer whether it can be done at all by XSLT processor (I use
Xalan).

Thank you in advance,
	Igor


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.