xsl-list
[Top] [All Lists]

Re: Translating XSD into an XSLT, experts approach needed

2004-02-25 16:43:31
Daniel Bryant wrote:


- I am attempting to automatically generate an XSLT style sheet that will
render all the elements in an XML document as HTML (The XML instance
document has already been created and does not have to be generated by the
system). The visual display format is not pre-defined, and the output does
not have to look good, just display all the data in the XML document as
HTML.

:) forget the schema, just use:


<xsl:template match="/">
  <html>
    ...
    <body>
      <xsl:apply-templates/>
    </body>
  </html>
</xsl:template>

<xsl:template match="node()|@*">
  <div class="{local-name()}">
    <xsl:apply-templates/>
  </div>
</xsl:template>

you could use CSS to style it in a number of different ways.

best,
-Rob


Daniel Bryant


XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list