[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Translating XSD into an XSLT, experts approach needed


Subject: Re: [xsl] Translating XSD into an XSLT, experts approach needed
From: Robert Koberg <rob@xxxxxxxxxx>
Date: Wed, 25 Feb 2004 15:43:31 -0800

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



Current Thread
Keywords