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

Re: Top 100 rows and sort them?

Subject: Re: Top 100 rows and sort them?
From: "Dimitre Novatchev" <dnovatchev@xxxxxxxxx>
Date: Mon, 5 Jun 2006 08:50:14 -0700
for 100 rows only
You do not specify what is to be done if more than one "row" elements
having the same value for "number"

For example, if there are 103 "row" elements having the maximum value
for "number", should all of them be output or should only 100 of them
be output (if so, exactly which)?


-- Cheers, Dimitre Novatchev --------------------------------------- Truly great madness cannot be achieved without significant intelligence.


On 6/5/06, Niklas Holmberg <Niklas.Holmberg@xxxxxxxxx> wrote:

hi!


This is my xml (contains about 400 row elements):
<root>
<row>
<word>Afrikanskt</word>
<number>21</number>
</row>
<row>
<word>Amerikanskt</word>
<number>23</number>
</row>
</root>

what i want to do is to pick the 100 elements that has the largest
"number" and then print them out sorted by "word". is this possible to
do at all with xsl?

thanks!
/niklas




Confidentiality Notice: This e-mail transmission may contain confidential or legally privileged information that is intended only for the individual or entity named in the e-mail address. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or reliance upon the contents of this e-mail is strictly prohibited and may be unlawful. If you have received this e-mail in error, please notify the sender immediately by return e-mail and delete all copies of this message.

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-2011 All Rights Reserved.