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

Dependency Sorting, first of kind

Subject: Dependency Sorting, first of kind
From: Paul Prescod <paul@xxxxxxxxxxx>
Date: Tue, 02 Nov 1999 01:16:35 -0600
dependency sort
Let's say that we have a document type like this:

<a name="foo"/>
<a name="bar" depends-on="foo"/>
<a name="baz" depends-on="foo"/>
<a name="jaz" depends-on="foo bar"/>
<a name="spaz"/>
<a name="maz" depends-on="spaz bar"/>

You can see that some elements depen on other elements as functions
might depend on other functions in a programming language or classes
upon superclasses in an object oriented language. I've listed them in
dependence order above (all dependents are listed after their dependees)
but the goal is actually to be able to do that sort. I want to take
randomly sorted elements and print them in their sorted order.

I cannot think of a reasonably easy way to do that. Is there one?

 Paul Prescod


 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.