Using XSL-FO and HTML?

后端 未结 2 1828
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-13 22:31

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 i

2条回答
  •  梦谈多话
    2021-01-13 22:49

    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.

提交回复
热议问题