[xsl] fold elements in xml tree

Subject: [xsl] fold elements in xml tree
From: Thomas Rasmussen <tbr77@xxxxxxxxxxxx>
Date: Sun, 30 Oct 2005 15:41:32 +0100
Hi

Is there a way to fold/unfold a xml tree when displayed in a browser (Firefox, Internet Explorer)?

I have this xml structure:
<pages>
 <page>
  ........
 </page>
 <page>
 ........
 </page>
</pages>

It would be nice if I could add a stylesheet that folded all the <page> elements, so i don't have to manually press the -/+ for each element. I have not been able to find any documentation explaining how this can be done...

I could filter the <page> sub elements out and then pass a parameter with the page i want to "unfold", but the other solution would be nicer.

/Thomas

Current Thread