One reason to want to use .fo files and generate html is for documentation.
Then you could write you documentation in .fo files and generate from that
the documentation in different formats like html, pdf, etc.

2006/12/7, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:


Debasish:

Just use a parser (Xerces) and transformer (Xalan) to convert your XML to
HTML.  The stylesheet is actually quite simple once you get the layout
straight.  For example, here is the main template for the stylesheet we use
to convert our reports to HTML format:

<xsl:template match="report">
        <html>
                        <head>
                                <title>
                                        LOG-NET Report - <xsl:value-of
select="reportsubtitle"/>
                                </title>
                        </head>
                        <style>
                                TD.header {font-weight: bold; color:
black}
                                TD.normal {}
                        </style>
                <body>
                        <font face="Tahoma,Courier,Verdana,Arial"
size="3">
                                <div align="left" style="float:left;">
                                <xsl:apply-templates select="logoURL"/>
                                <br clear="left"/>
                                <xsl:apply-templates
select="reportheader"/>
                                <br clear="left"/>
                                <xsl:apply-templates
select="versionInfo"/>
                                <br clear="left"/>
                                </div>
                                <div align="center">
                                <br  clear="left"/>
                                <xsl:apply-templates
select="reporttitle"/>
                                <br  clear="left"/>
                                <xsl:apply-templates
select="reportcustomer"/>
                                <br  clear="left"/>
                                <xsl:apply-templates
select="reportsubtitle"/>
                                <br  clear="left"/>
                                <xsl:apply-templates
select="reportparms"/>
                                </div>
                                <br />
                                <br />
                                <xsl:apply-templates select="details"/>
                                <br />
                                <br />
                                <div align="center" style="float:center;">
                                <xsl:apply-templates
select="logoCopyURL"/>
                                </div>
                        </font>
                </body>
        </html>
</xsl:template>

Primitive, but it works great.  The only issue we are haiving it with SVG
support, but that is currently a browser issue (at least in IE6 without a
plugin).  To get around it, we either leave out the images or convert the
SVG to a raster format on the fly and embed the link.

-Lou


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
LOG-NET, Inc.
The Logistics Network Management System
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
230 Half Mile Road
Third Floor
Red Bank, NJ 07701
PH: 732-758-6800
FAX: 732-747-7497
http://www.LOG-NET.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CONFIDENTIAL & PRIVILEGED
Unless otherwise indicated or if obvious from the nature of the content,
the information contained herein is privileged and confidential
information/work product. The communication is intended for the use of the
individual or entity named above.  If the reader of this transmission is not
the intended recipient, you are  hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited.  If
you have received this communication in error, please notify the sender
immediately by telephone (732-758-6800) or by electronic mail (
[EMAIL PROTECTED]), and destroy any copies, electronic, paper or
otherwise, which you may have of this communication.  Thank you.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

"Debasish Jana" <[EMAIL PROTECTED]> wrote on 12/07/2006 12:33:50
AM:

> Hi:
>
> Is it possible to render to HTML from XSL:fo documents? I guess, the
current
> supported rendering formats are PDF, RTF, TXT, and several image
variants.
>
> Please throw some light.
>
> Regards,
>
> Debasish Jana
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

Reply via email to