XSL-FO rootオブジェクト

XSL-FO 参考手册

定義と用法

<fo:root> オブジェクトは XSL-FO ドキュメントのルート(最上位)ノードです。

<fo:root> オブジェクトの子要素は、単一の <fo:layout-master-set> オブジェクト(ドキュメント内で使用されるすべてのページマスター [master] を保持する)、オプションの <fo:declarations> オブジェクト、および1つ以上の <fo:page-sequence> オブジェクトです。

注意:XSL-FO ドキュメントには、複数の <fo:page-sequences> オブジェクトを含めることができます(例:ドキュメントの各章は独立した <fo:page-sequence> オブジェクトとして扱うことができ、chapter-specific [章固有] コンテンツ(例:章のタイトル)をページヘッダーやフッター内に配置することができます)。


语法

<fo:root>
<!--
Children:layout-master-set,declarations?,
page-sequence+
-->
</fo:root>

属性

属性
media-usage

实例 1

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">
<!-- Page template goes here -->
</fo:simple-page-master>
</fo:layout-master-set>

<fo:page-sequence master-reference="A4">
<!-- Page content goes here -->
</fo:page-sequence>

</fo:root>


XSL-FO 参考手册 其他扩展