G
Gilgamesh
Hi.
I'm looking for an easy way to generate, automatically, an XSLT from an
XSD, to be applied to a XML file (conforming the previous XSD) and
generate an HTML. Many of you will tell me that this is nonsense, but
I think it can be done, given the condition that the XML file (as
specified in the XSD) always has a root element (although it would be
nice if the root element name could be a parameter of the XSLT), and a
given hierarchy of sub-elements, until a level N where there is a list
of data elements, like this:
<root>
<a1>
<b1>
<c1>
<d>D Value</d>
<e>E Value</e>
</c1>
<c2>
<d>another D Value</d>
<e>another E Value</e>
</c2>
</b1>
<b2>
<c3>
<d>D Value</d>
<e>E Value</e>
</c3>
</b2>
</a1>
<a2>
<b3>
<c4>
<d>D Value</d>
<e>E Value</e>
</c4>
</b3>
</a2>
</root>
The problem would be similar to have the tree structure of a directory
and sub-directories until the level of files, where the names of
directories and files would be the XML tags, and then for each file a
set of attributes, like size, date of creation, read-write permissions,
etc. And given this information, stored in a XML, conforming a given
XSD (what I actually have is the XSD), I would like to generate an HTML
with different levels of indentation or lists, until the point where I
process the file attributes, which I would like to show, say, as a
table with only one row.
Is there any tool that generates such (or similar to that) XSLT from
the XSD?
Thanks,
J C
I'm looking for an easy way to generate, automatically, an XSLT from an
XSD, to be applied to a XML file (conforming the previous XSD) and
generate an HTML. Many of you will tell me that this is nonsense, but
I think it can be done, given the condition that the XML file (as
specified in the XSD) always has a root element (although it would be
nice if the root element name could be a parameter of the XSLT), and a
given hierarchy of sub-elements, until a level N where there is a list
of data elements, like this:
<root>
<a1>
<b1>
<c1>
<d>D Value</d>
<e>E Value</e>
</c1>
<c2>
<d>another D Value</d>
<e>another E Value</e>
</c2>
</b1>
<b2>
<c3>
<d>D Value</d>
<e>E Value</e>
</c3>
</b2>
</a1>
<a2>
<b3>
<c4>
<d>D Value</d>
<e>E Value</e>
</c4>
</b3>
</a2>
</root>
The problem would be similar to have the tree structure of a directory
and sub-directories until the level of files, where the names of
directories and files would be the XML tags, and then for each file a
set of attributes, like size, date of creation, read-write permissions,
etc. And given this information, stored in a XML, conforming a given
XSD (what I actually have is the XSD), I would like to generate an HTML
with different levels of indentation or lists, until the point where I
process the file attributes, which I would like to show, say, as a
table with only one row.
Is there any tool that generates such (or similar to that) XSLT from
the XSD?
Thanks,
J C