XSL-FO list-item-label objects
Definition and Usage
<Fo: list-item-label> object contains a list-item labels - Normally, <fo: block> contain numbers, characters, and so on.
Here are four XSL-FO objects used to create a list:
- fo: list-block (contains the entire list)
- fo: list-item (contains a list of each item)
- fo: list-item-label (label contains the list-item - Under normal circumstances, <fo: block> contain numbers, characters, etc.)
- fo: list-item-body (contains the contents of the list-item / body - usually one or more <fo: block> Object)
grammar
<fo:list-item-label>
<!--
Contents:(block|block-container|
table-and-caption|table|list-block|
list-item)+
-->
</fo:list-item-label>
<!--
Contents:(block|block-container|
table-and-caption|table|list-block|
list-item)+
-->
</fo:list-item-label>
Attributes
属性 |
---|
id |
keep-together |
role |
source-document |
Example 1
XSL-FO a list of examples:
<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>
The above code will output:
* Volvo * Saab |
XSL-FO Reference Manual