Last post Sep 22, 2010 06:24 AM by Martin_Honnen
Sep 22, 2010 02:14 AM|mahioak|LINK
I have created an xslt file to format xml file. My ewquirement is to show that xml in a tree format. That I have achieved. But, when I click on the root node, it will show all subnodes(which are by default expanded). I want all subnodes need to be collapsed
by default on clicking of root node. Similarly, on clicking of subnode, it should be expanded with contents and subnodes of this node to be collapsed by default and so on.
How can I achieve this?
Sep 22, 2010 06:24 AM|Martin_Honnen|LINK
Assuming your XSLT creates HTML and you want to collapse those HTML elements then you need to use script in your HTML to manipulate the CSS display property. An example is here:
http://home.arcor.de/martin.honnen/xslt/test2010031301.xml, the stylesheet is here: