This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Tree from a flat list - beginner's question
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Subject: [xsl] Tree from a flat list - beginner's question
- From: "TRIFFONOV, Stillian" <Stillian dot Triffonov at qa dot com>
- Date: Fri, 5 Oct 2001 12:19:18 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
How can I build the corresponding XML tree from a flat
element-elementParent list if I do not know
how many levels will I have:
<root>
<row id=100 parentid=0 name=A/>
<row id=101 parentid=100 name=A1/>
<row id=102 parentid=100 name=A2/>
<row id=103 parentid=101 name=A11/>
<row id=110 parentid=103 name=A111/>
<row id=111 parentid=110 name=A1111/>
<row id=120 parentid=102 name=A21/>
<root/>
Stillian
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list