xml – 为什么XSL-FO很受欢迎?

前端之家收集整理的这篇文章主要介绍了xml – 为什么XSL-FO很受欢迎?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我将创建一个从html转换为某种格式的转换器.
我正在考虑使用中间格式 XML(XSL-FO).

我的问题:如果没有那么多应用程序呈现它,为什么FO格式很受欢迎?

解决方法

我很清楚CSS和XSL-FO支持者之间正在进行一场激烈的辩论,双方都有有效和优点.

这是迄今为止我见过的XSL-FO的最佳简要论点:

XSL-FO provides a more sophisticated
visual layout model than HTML+CSS.
Formatting supported by XSL-FO,but
not supported by HTML+CSS,includes
right-to-left and top-to-bottom text,
footnotes,margin notes,page numbers
in cross-references,and more. In
particular,while CSS (Cascading Style
Sheets) is primarily intended for use
on the Web,XSL-FO is designed for
broader use. You should,for instance,
be able to write an XSL style sheet
that uses formatting objects to lay
out an entire printed book. A
different style sheet should be able
to transform the same XML document
into a Web site.

(来源:http://www.cafeconleche.org/books/bible2/chapters/ch18.html)

以下是一些争论XSL-FO是优越的:

> Norman Walsh’s blog post

虽然这里有人说CSS更好:

> RealObjects: CSS vs. XSL
> Printing XML: why CSS is better than XSL-FO

猜你在找的XML相关文章