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

xslt for hierarchical data

  • To: <xml-dev@lists.xml.org>
  • Subject: xslt for hierarchical data
  • From: Jody Robert Ford <jody.r.ford@gmail.com>
  • Date: Mon, 9 Jan 2006 18:38:43 -0500
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:to:subject:date:mime-version:content-type:x-mailer:x-mimeole:thread-index:from:message-id; b=l0ZYcu/EiZQIAA3o4XSfdvHlqiNGPvUJpSHtUfL+XrIQGHs4UFhIJcDyR0w/FyJrMNOiWeQKyeudPY0+G27yhzJX3EHDwLVg6NuQD6uT5ZX+ED60T/3jpIVYCGsQGEFzuNUsYeQurmh7LAOJ0TEP0mdbcLj1EYtppkqTWjVN9NA=
  • Thread-index: AcYVddPe+0Xoz98nSzG1h8U93YilYw==

hierarchical xslt

Given a data structure:

 

<record id=1 parent=”Jack”>Jack Jr</record>

<record id=4 parent=”Jack”>William</record>

<record id=3 parent=”Jack Jr”>Jack III</record>

<record id=7 parent=”William”>William Jr.</record>

<record id=7 parent=”William Jr”>William III</record>

<record id=7 parent=”William III”>William IV</record>

 

How do I get…

 

Jack

            Jack Jr.

                        Jack III

            William            

                        William Jr.        

                                    William III

                                                William IV

 

Special problems.

  1. The number of generations can be infinite.
  2. Please note I don’t have a Jack record, but I need to display Jack.

 

 

Anyone got any ideas?

 

Thanks,

 

Jody

 

 

 


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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.