[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Translating XSD into an XSLT, experts approach nee

Subject: Re: Translating XSD into an XSLT, experts approach needed
From: Robert Koberg <rob@xxxxxxxxxx>
Date: Wed, 25 Feb 2004 15:43:31 -0800
daniel koberg
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.