[exslt] recursive loop in XSL
by Niket Anand other posts by this author
Apr 6 2002 6:49PM messages near this date
[exslt] xsl help
|
[exslt] [Fwd: help]
Hi All,
I have an XML file that would be created dynamically.
children of parents would be coming dynamically.It means that the number =
of childens to a parent is not fixed. and the number of parents is not =
fixed.
I would like to show these in tree like structure in HTML form.
How can I apply XSLT to get the result.?How to use functions in this =
case?
Please suggest me how to deal with this?
Thanks,
Niket
Here <tag index=3D"x.y"> means that this tag is having its ID=3Dx and it =
is child of parent tag whose ID=3Dy.
<message>
<child index=3D"1.0">
<text> parent1</text>
<child index=3D"2.1">
<text> child1 of parent1</text>
<child index=3D"3.2">
<text> child2 of child1</text>
</child>
</child>
<child index=3D"4.1">
<text> child3 of child1</text>
<child index=3D"5.4">
<text> child4 of child3</text>
<child index=3D"6.5">
<text> child5 of child4</text>
<child index=3D"7.6">
<text> child6 of child5</text>
</child>
</child>
</child> =20
</child>
<child index=3D"8.1">
<text> child7 of parent1</text>
</child>
</child> =20
<child index=3D"9.0">
<text> parent2</text>
</child>
<child index=3D"10.0">
<text> parent3</text>
<child index=3D"11.10">
<text> child10 of parent3</text>
</child>
</child>
</message>
Attachments:
unknown1
|