Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


How to print a whole XML-tree with XSLT?

From: meyer.dominik@----------.---
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!



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent