当前位置: 首页 > 网络学院 > XML相关教程 > XSL-FO > XSL-FO 输出

XSL-FO
XSL-FO 介绍
XSL-FO 文档
XSL-FO 区域
XSL-FO 输出
XSL-FO 流程
XSL-FO 页面
XSL-FO 块状区域
XSL-FO 列表
XSL-FO 表格
XSL-FO 和 XSLT
XSL-FO 软件
XSL-FO 参考资料

XSL-FO 输出


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-01   浏览: 597 ::
收藏到网摘: n/a

XSL-FO defines output inside <fo:flow> elements.
XSL-FO 在<fo:flow> 元素中定义输出结果。


XSL-FO Page, Flow, and Block
XSL-FO 页面、流程和区域

"Blocks" of content "Flows" into "Pages" and then to the output media.
“块状区域”的内容首先进入“页面”,然后再由指定的媒体输出。

XSL-FO output is normally nested inside <fo:block> elements, nested inside <fo:flow> elements, nested inside <fo:page-sequence> elements:
XSL-FO 的输出结果通常被嵌套在<fo:block>元素、<fo:flow>元素、以及<fo:page-sequence>元素中,具体如下:

<fo:page-sequence>
<fo:flow flow-name="xsl-region-body">
<fo:block>
<!-- Output goes here -->
</fo:block>
</fo:flow>

</fo:page-sequence>

 


XSL-FO Example
XSL-FO 案例

It is time to look at a real XSL-FO example:
下面列举一个关于XSL-FO的实际案例:

<?xml version="1.0" encoding="ISO-8859-1"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">

<fo:layout-master-set>

<fo:simple-page-master master-name="A4">
</fo:simple-page-master>
</fo:layout-master-set>

<fo:page-sequence master-reference="A4">
<fo:flow flow-name="xsl-region-body">

<fo:block>Hello ruanchen.com</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>

The output from this code would be something like this:
上述代码应该输出下述结果:

Hello ruanchen.com

 

 

 

 

 

 

 

 

 

评论 (0) All

登陆 | 还没注册?