Altova Mailing List Archives>Archive Index >xml-dev Archive Home >Recent entries >Thread Prev - >Thread Next - RE: [xml-dev] xslt for hierarchical data xslt for hierarchical dataTo: <xml-dev@-----.---.---> Date: 1/9/2006 11:39:00 PM <span style='font-size:10.0pt;
font-family:Arial'>Given a data structure:<o:p></o:p>
<span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p>
<span style='font-size:10.0pt;
font-family:Arial'><record id=1 parent=”Jack”>Jack
Jr</record><o:p></o:p>
<span style='font-size:10.0pt;
font-family:Arial'><record id=4 parent=”Jack”>William</record><o:p></o:p>
<span style='font-size:10.0pt;
font-family:Arial'><record id=3 parent=”Jack Jr”>Jack III</record><o:p></o:p>
<span style='font-size:10.0pt;
font-family:Arial'><record id=7 parent=”William”>William Jr.</record><o:p></o:p>
<span style='font-size:10.0pt;
font-family:Arial'><record id=7 parent=”William Jr”>William III</record><o:p></o:p>
<span style='font-size:10.0pt;
font-family:Arial'><record id=7 parent=”William III”>William IV</record><o:p></o:p>
<span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p>
<span style='font-size:10.0pt;
font-family:Arial'>How do I get…<o:p></o:p>
<span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p>
<span style='font-size:10.0pt;
font-family:Arial'>Jack<o:p></o:p>
<span style='font-size:10.0pt;
font-family:Arial'> Jack Jr.<o:p></o:p>
<span style='font-size:10.0pt;
font-family:Arial'> Jack III<o:p></o:p>
<span style='font-size:10.0pt;
font-family:Arial'> William <o:p></o:p>
<span style='font-size:10.0pt;
font-family:Arial'> William Jr. <o:p></o:p>
<span style='font-size:10.0pt;
font-family:Arial'> William III<o:p></o:p>
<span style='font-size:10.0pt;
font-family:Arial'> William IV<o:p></o:p>
<span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p>
<span style='font-size:10.0pt;
font-family:Arial'>Special problems. <o:p></o:p>
The number of generations can
be infinite.<o:p></o:p>
Please note I don’t have
a Jack record, but I need to display Jack.<o:p></o:p>
<span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p>
<span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p>
<span style='font-size:10.0pt;
font-family:Arial'>Anyone got any ideas?<o:p></o:p>
<span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p>
<span style='font-size:10.0pt;
font-family:Arial'>Thanks,<o:p></o:p>
<span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p>
<span style='font-size:10.0pt;
font-family:Arial'>Jody<o:p></o:p>
<span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p>
<span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p>
<span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p> | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
