[xep-support] Re:Single FO render to html and pdf
Nikolai Grigoriev
grig at renderx.com
Wed Apr 17 09:55:12 PDT 2002
Jeffrey,
> i have an FO file that can be converted to pdf using FOP.
> Can my same FO without html tag be use to generate HTML
> tags ...
Yes. FO is just a dialect of XML: all techniques to produce HTML
out of it (XSLT, Omnimark, or just CSS styling) are applicable.
(Surely, the conversion cannot be 100% precise: XSL FO defines
too many properties that HTML cannot grasp, even with CSS).
> ... using XEP???...
No. XEP converts FO to page-description languages, i.e. to formats
that fix position of each element on page. PDF and PostScript are
supported now; PCL, AFP, Metadata, and even SVG _could_ be
added as output format to XEP if the market demands it; but formats
like RTF, HTML, MS Word are all outside our scope. Such conversions
should be done by other tools.
> i have seen the sample fo2html.xsl ... it has html embed in it.
Yes; and what else do you expect an XML->HTML stylesheet to have inside???
I just cannot grasp what you mean.
> i can't get it to convert to pdf guess its solely for fo to html.....
But you already have XEP, FOP, Antenna House etc. to get PDF out of FO!
I am definitely missing something...
> so ... is it possible for a single fo file to be rendered to both pdf and
html???
YES. Run XEP or other formatter on a FO file, and you get PDF. Then run
any XSLT processor with fo2html.xsl as stylesheet, and you het HTML
_from the same FO file_. What else do you need?
Regards,
Nikolai Grigoriev
RenderX
-------------------
By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html
More information about the Xep-support
mailing list