M
meyer.dominik
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!
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!