Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: How to print a whole XML-tree with XSLT? How to print a whole XML-tree with XSLT?To: NULL Date: 10/3/2005 5:58:00 AM Hi there! I'm a newbie in XSLT, so maybe this problem is easy to solve, but I just don't get it and hours of searching for an answer didn't help me either. Is there any possibility to print a whole XML-tree, including all (child)elements and attributes, from a XML to a (X)HTML-file using xsl(t)? I got a dynamic XML like this: -- xml -- <configSet> <xmlSet id="0"> <!-- Dynamic content --> </xmlSet> <xmlSet id="1"> <!-- Dynamic content --> </xmlSet> <xmlSet id="2"> <!-- Dynamic content --> </xmlSet> </configSet> -- end of xml -- The xmlSet-Elements can contain various elements, which names and attributes I don't know (since they're created dynamically). I even don't know how deep they're nested. What I'd like to get is a HTML like this: -- html -- <html> <body> <h1>Content of id 0</h1> <!-- The whole content of the xmlSet-element with the id "0" including all children and their attributes go here --> <h1>Content of id 1</h1> <!-- The whole content of the xmlSet-element with the id "1" including all children and their attributes go here --> ... </body> </html> -- end of html -- Can you guys help me? Thanks in advance! | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
