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

Re: how to ..

Subject: Re: how to ..
From: Mike Brown <mike@xxxxxxxx>
Date: Tue, 28 Nov 2000 16:28:27 -0700 (MST)
html to xslfo
Martin Giroux wrote:
> starting to understand the xslt and I wonder how the result would be looking
> like html formating.
> I am confuse between XSLT and XSL some how I believe you guys can help me
> out with some of your references

XSLFO defines a CSS-like vocabulary for formatting. It is not very useful
for creating HTML; rather, you might use XSLT to transform your XML into
XSLFO, and then run your XSLFO document through a rendering engine that is
intended to work with XSLFO. There are engines that convert XSLFO
documents to PDF documents, for example. There are no XSLFO engines for
web browsers, and I don't think anyone is seriously doing XSLFO-to-HTML
transformations, though to some extent it may be possible.

http://www.w3.org/TR/2000/CR-xsl-20001121/slice1.html explains XSLFO
concepts in general, and the difference between XSLFO and XSLT.

If you just want to create HTML, you only need to use XSLT. Here is a
simple stylesheet for an XSLT engine to process:

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
   <xsl:output method="html" indent="yes"/>
   <xsl:template match="/">
     <html>
       <head>
          <title>hello world</title>
       </head>
       <body>
         <h1>hello world</h1>
         <p>there are <xsl:value-of select="count(//*)"/> elements in the source tree</p>
       </body>
     </html>
   </xsl:template>
</xsl:stylesheet>       

Also, before you decide to use IE5 as your testbed, read 
http://www.netcrucible.com/xslt/msxml-faq.htm and update your MSXML.

Or go get a command-line XSLT processor like Instant Saxon at
http://users.iclway.co.uk/mhkay/saxon/

   - Mike
____________________________________________________________________
Mike J. Brown, software engineer at            My XML/XSL resources: 
webb.net in Denver, Colorado, USA              http://skew.org/xml/


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


Current Thread
  • how to ..
    • Martin Giroux - Tue, 28 Nov 2000 13:19:11 -0500
      • Mike Brown - Tue, 28 Nov 2000 16:28:27 -0700 (MST) <=

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.