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

Ordering "roles"

Subject: Ordering "roles"
From: Phillip B Oldham <phillip.oldham@xxxxxxxxxx>
Date: Wed, 16 Aug 2006 16:06:55 +0100
role ordering
Hi guys

I've got some xml in the following structure:

<roles>
   <role>
      <name>Create</name>
      <hasroles />
   </role>
   <role>
      <name>Approve</name>
      <hasroles>
         <include>Create</include>
         <include>Edit</include>
      </hasroles>
   </role>
   <role>
      <name>Edit</name>
      <hasroles>
         <include>Create</include>
      </hasroles>
   </role>
</roles>

So from this we can see that if your role is Edit, you can also Create.

I need to produce an ordered list which takes into account the above statement, such as:

<ul>
   <li>Create</li>
   <li>Edit</li>
   <li>Approve</li>
</ul>

Approve coming last in the list because it "includes" the above two, Edit below that because it "includes" Create, and so on.

I'm using XSL1 with EXSLT.

Any ideas on how I can accomplish my goals?

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.