Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


XSLT from a XSD spec.

From: "Gilgamesh" <josecarlos_gonzalez@-----.-->
To: NULL
Date: 10/4/2006 6:24:00 AM

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



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