OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   xslt for hierarchical data

[ Lists Home | Date Index | Thread Index ]
  • 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==

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

 

 

 





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS