Can I convert XSL Formatting Objects (XSL-FO) to HTML?
I have an XSL-FO file that renders a PDF using FOP. Can I use the same XSL-FO file to render to XHTML? If yes, what is the tool to use? A: Let’s tackle the second question first: one good place to start is the fo2html XSLT stylesheet developed by RenderX. Using an XSL-FO file, the stylesheet converts XSL formatting objects to more or less equivalent XHTML, using CSS1 for formatting. Pay particular attention on that page to the limitations of this approach. RenderX is the developer of the XEP XSL-FO engine, nominally a competitor to Apache’s FOP, and this stylesheet is “an add-on” to that product. But the stylesheet should work equally well with XSL-FO input from any source. Also, although the RenderX page above focuses on using the stylesheet directly within an XSLT-aware Web browser, I can’t think of any reason why it shouldn’t be easily adaptable to use by any XSLT engine, including Saxon, Cocoon, or what-have-you. Now let’s linger over the longer answer to the question of what’s inv
Related Questions
- When I generate my business objects, I get a lot of compiler errors about "cannot convert from System.Data.SqlDbType to System.Data.DbType." What is wrong?
- How can we save various objects into the disk? How can we convert different types of data into bytes?
- In XSL, How Can I Correctly Convert an XML Document Tag to a Link in HTML?