Hi...
Can anybody give me some idea about how to write a xsl to generate expand/collapsable html tree structure for a xml file?

Thanks

To expand/collapse you can inject some javascript or jquery. Do you already have your html file ? Do you want to collapse all nodes ?

Is it possible to do it without using javascript or jquery ..???

You could use a server side script, but that would mean reloading the page every time you click a node. Also, every node should be a link back to the server in that case. I doubt that that is what you want.

No it is not what i m trying to do... Is it not possible just by means of xsl ..?

No, you are using XSL to transform XML into HTML. You want the collapse to function in the resulting HTML, so you should look for the solution there. That would be a javascript solution AFAIK.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.