fo:root要素
fo:root要素の内容モデルは
(layout-master-set,declarations?,bookmark-tree?,(page-sequence|page-sequence-wrapper)+)
こんな感じか。
<?xml version="1.0" encoding="UTF-8"?> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> <!-- ひとつ --> <fo:layout-master-set> : : </fo:layout-master-set> <!-- オプション --> <fo:declarations> : : </fo:declarations> <!-- オプション --> <fo:bookmark-tree> : : </fo:bookmark-tree> <!-- ひとつ以上の page-sequence または page-sequence-wrapper --> <fo:page-sequence> : : </fo:page-sequence> </fo:root>
オプショナルなやつを除いたら、
<?xml version="1.0" encoding="UTF-8"?> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> <!-- 各ページのレイアウトの定義 --> <fo:layout-master-set> : : </fo:layout-master-set> <!-- そこに入れていくデータ --> <fo:page-sequence> : : </fo:page-sequence> </fo:root>
※普通はFOに変換するXSLTを書くので、FOのお勉強やFOの処理系を作る以外で、FOインスタンスを手書きしたりしないはず。