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

Dive routine

Subject: Dive routine
From: Erick Emde <emder@xxxxxxxxxxxxxxxxxx>
Date: Tue, 15 Feb 2005 18:44:33 -0500
erick emde
Hello All,
It's been a while since I've used XSL and now I've got to pull something together in short order.
I need to go from this:


   <model rootview="1721678891107373384457">
       <views>
           <view viewref="1721678891107373384457"
   noderef="1721678891107376948629"/>
           <view viewref="1721678891107373384457"
   noderef="1721679701107199037296"/>
           <view viewref="1721678891107373384457"
   noderef="1721679701107365990562"/>
           <view viewref="1721679701107365990562"
   noderef="1721679701107366055468"/>
           <view viewref="1721679701107365990562"
   noderef="1721679701107366004593"/>
       </views>
       <nodes>
           <node id="1721678891107373384457" type="2" label="Sales :
   New Hire Agenda" state="-1"/>
           <node id="1721678891107376948629" type="9"
   label="http://www.whatever.com/filename.pdf" state="-1"/>
           <node id="1721679701107199037296" type="10" label="No
   objectives" state="-1"/>
           <node id="1721679701107365990562" type="2" label="ITSEC"
   state="-1"/>
           <node id="1721679701107366055468" type="9"
   label="https://pivot.earthlink.net/DesktopDefault.aspx?tabid=1291"
   state="-1"/>
           <node id="1721679701107366004593" type="9"
   label="Information Technology Security Document. " state="-1"/>
       </nodes>
   </model>

to this:

   <node data="1721678891107373384457" label="Sales : New Hire Agenda">
       <node data="1721678891107376948629"
   label="http://www.whatever.com/filename.pdf"></node>
       <node data="1721679701107199037296" label="No objectives"></node>
       <node data="1721679701107365990562" label="ITSEC">
           <node data="1721679701107366055468"
   label="https://pivot.earthlink.net/DesktopDefault.aspx?tabid=1291"></node>
           <node data="1721679701107366004593" label="Information
   Technology Security Document.">
       </node>
   </node>

I know I need to do some sort of recursive dive to do the transform, but I can't figure out where to start. There can be an unlimited number of levels in the tree structure I am trying to transform to.
Any help would be greatly appreciated.
Thanks,
Erick


--
Erick Emde

Instructional Developer

Learning and Quality
EarthLink Inc.
x24535
(404) 815-0770 in Atlanta.
(800) 719-4664 everywhere else.


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.