XSL-FO 列表
XSL-FO は <fo:list-block> 要素を使用してリストを定義します。
XSL-FO 列表块(List Blocks)
リストの作成に使用できる XSL-FO オブジェクトには、次の4つのタイプがあります:
- fo:list-block(包含整个列表) (contains the whole list)
- fo:list-item(リスト内の各項目を含む) (contains each item in the list)
- fo:list-item-label(list-item のラベルを含む - 典型的には、数字または文字を含む <fo:block>)
- fo:list-item-body(list-item の内容/本文を含む - 典型的には、1つ以上の <fo:block> オブジェクト)
XSL-FO リストの例:
<fo:list-block>
<fo:list-item>
<fo:list-item-label>
<fo:block>*</fo:block>
</fo:list-item-label>
<fo:list-item-body>
<fo:block>Volvo</fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item>
<fo:list-item-label>
<fo:block>*</fo:block>
</fo:list-item-label>
<fo:list-item-body>
<fo:block>Saab</fo:block>
</fo:list-item-body>
</fo:list-item>
</fo:list-block>
<fo:list-item>
<fo:list-item-label>
<fo:block>*</fo:block>
</fo:list-item-label>
<fo:list-item-body>
<fo:block>Volvo</fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item>
<fo:list-item-label>
<fo:block>*</fo:block>
</fo:list-item-label>
<fo:list-item-body>
<fo:block>Saab</fo:block>
</fo:list-item-body>
</fo:list-item>
</fo:list-block>
上記のコードの出力は以下のようになります:
|
* Volvo * Saab |
其他扩展