tags:

views:

151

answers:

2

Hi,

I'm trying to transform some XML-data to HTML with XSLT for my bachelor thesis.

My professor wants me to consider XSL-FO too, or at least to write some word about it. But I'm very noob to this.

So my questions are:

Can I combine FO with HTML? Can I use FO istead of HTML and CSS? If yes, how will my browser render this? Are there any examples/tutorials on how to transform xml into web pages with FO?

Thank you very much.

+3  A: 

XSL-FO is for PDF display only (this is not strictly true, but you can take it as a guideline). So HTML output and FO output are not related. From your XML source, you can use XSLT to generate XHTML or XSL-FO, but not both at the same time.

See for example DocBook. It comes with several XSLT stylesheets ready to use, one is for HTML output and one for PDF (via Apache Fop). If you are satisfied with the result could be a different question.

Patrick
+1  A: 
Mads Hansen