P
poofpoof
Dear Experts,
I have some problems with XSLT recursivity...
here what I want to do
XML part :
----------
<struct>
<node current="1" parent="0" level="1">A</node>
<node current="2" parent="1" level="2">AB</node>
<node current="3" parent="2" level="3">ABC</node>
<node current="4" parent="3" level="4">ABCD/node>
<node current="5" parent="0" level="1">B</node>
</struct>
HTML result :
-------------
<div id="A">
<div id="AB">
<div id="ABC">
<div id="ABCD">
</div>
</div>
</div>
</div>
<div id="B"></div>
I just want to imbricate nodes with "level" attributes or "parent" attributes.
If anyone has samples of url or xsl code ...
thanks very much
I have some problems with XSLT recursivity...
here what I want to do
XML part :
----------
<struct>
<node current="1" parent="0" level="1">A</node>
<node current="2" parent="1" level="2">AB</node>
<node current="3" parent="2" level="3">ABC</node>
<node current="4" parent="3" level="4">ABCD/node>
<node current="5" parent="0" level="1">B</node>
</struct>
HTML result :
-------------
<div id="A">
<div id="AB">
<div id="ABC">
<div id="ABCD">
</div>
</div>
</div>
</div>
<div id="B"></div>
I just want to imbricate nodes with "level" attributes or "parent" attributes.
If anyone has samples of url or xsl code ...
thanks very much