加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

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

发布时间:2020-12-16 23:01:53 所属栏目:百科 来源:网络整理
导读:我将创建一个从html转换为某种格式的转换器. 我正在考虑使用中间格式 XML(XSL-FO). 我的问题:如果没有那么多应用程序呈现它,为什么FO格式很受欢迎? 解决方法 我很清楚CSS和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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读