Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Can I convert XSL Formatting Objects (XSL-FO) to HTML?

convert html objects XSL xsl-fo
0
Posted

Can I convert XSL Formatting Objects (XSL-FO) to HTML?

0

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

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123