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

Re: Ranking Random Nodes from Top to Bottom

Subject: Re: Ranking Random Nodes from Top to Bottom
From: "J. Zhang" <j.zhang@xxxxxx>
Date: Fri, 17 Aug 2007 15:19:31 +0200
Re:  Ranking Random Nodes from Top to Bottom
Michael Kay wrote:
It is better to log the string length from root to the beginning of each particular node, and then use that number to rank the elements from Top to Bottom. In fact, that is what I want to do. What be your recommendation to do that?

I'm sorry, I really have very little idea what you are trying to achieve.

If you want to sort the paths such that the nodes they reference are in
document order, then I don't think you have enough information. You need to
retrieve the actual nodes and sort them into document order

I was thinking of the determining the string length from root to a particular node, and store that as output in the output file using XSLT. Then post-process it in Python to rank the paths into document order, where the lowest number appears on top and the highest number at the bottom. Does that make any sense?


Michael Kay

Current Thread


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.
First Name
Last Name
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.