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

Recursive?

Subject: Recursive?
From: Sven Waibel <sven.waibel@xxxxxxxx>
Date: Thu, 17 Mar 2005 09:56:03 +0100
recursive cdata
Hi everybody,

my xml:
<?xml version="1.0" encoding="ISO-8859-15"?>
<it>
	<tt id="20">
		<numbering>1</numbering>
		<name><![CDATA[test0]]></name>
		<tc id="4611686020000000015">
			<numbering>1.1</numbering>
			<name><![CDATA[test1]]></name>
		</tc>
	</tt>
	<tt id="21">
		<numbering>2</numbering>
		<name><![CDATA[test2]]></name>
		<tt id="22">
			<numbering>2.1</numbering>
			<name><![CDATA[test3]]></name>
			<tt id="23">
				<numbering>2.1.1</numbering>
				<name><![CDATA[tgf]]></name>
				<tc id="4611686020000000012">
					<numbering>2.1.1.1</numbering>
					<name><![CDATA[test4]]></name>
				</tc>
				<tc id="4611686020000000013">
					<numbering>2.1.1.2</numbering>
					<name><![CDATA[test5]]></name>
				</tc>
			</tt>
			<tc id="4611686020000000014">
				<numbering>2.1.2</numbering>
				<name><![CDATA[test6]]></name>
			</tc>
		</tt>
	</tt>
</it>

I want to get this:

number name

1 test0
  1.1 test1
2 test2
  2.1 test3
    2.1.1 test4
      2.1.1.1 test5
      2.1.1.2 test6
    2.1.2 test7


Should i do it recursively or is there a better way to achieve it?

Thanks and best regards.

Sven
  2.

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.