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

n-nodes recursive tree

Subject: n-nodes recursive tree
From: Jerónimo López Ledesma <jledesma@xxxxxxxxxx>
Date: Fri, 28 Nov 2003 14:43:59 +0100
recursive tree
Hi, I have an xml file which looks pretty much like this:
<tree>
	<node>
		<id>1</id>
		<parent>root</parent>
		<node>
			<id>4</id>
			<parent>1</parent>
		</node>
		<node>
			<id>5</id>
			<parent>1</parent>
			<node>
				<id>7</id>
				<parent>5</parent>
			</node>
		</node>
	</node>
	<node>
		<id>2</id>
		<parent>root</parent>
		<node>
			<id>6</id>
			<parent>2</parent>
		</node>
	</node>
	<node>
		<id>3</id>
		<parent>root</parent>
	</node>
</tree>

In effect, i will never know the max number of levels in tree node, and so i'd like to obtain an html file formated with xsl and wich looks like that:

Tree
    ---- 1
	    ---- 4
	    ---- 5
		    ---- 7
    ---- 2
	    ---- 6
    ---- 3
	
I don't know recursive tools that provides XSLT and if there is anyway to do that. Does anybody know what can i do about this? 

Thanks very much,

 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.