Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

XSL-FO list-item-label object


May 28, 2021 XSL-FO


Table of contents


XSL-FO list-item-label object

XSL-FO list-item-label object XSL-FO reference manual

You can use the list-item-label object to label the list-item.


Definitions and usages

The object contains the list-item tag - typically, the number, character, and so on.

Here are four XSL-FO objects for creating lists:

  • fo:list-block (includes the entire list)
  • fo:list-item (contains each item in the list)
  • fo:list-item-label (includes list-item tag - normally, it contains numbers, characters, etc.)
  • fo:list-item-body (content/body containing list-item - usually one or more objects)

Grammar

<fo:list-item-label>
<!--
Contents:(block|block-container|
table-and-caption|table|list-block|
list-item)+
-->
</fo:list-item-label> 

Property

Attributes
id
keep-together
role
source-document

Instance 1

An example of an XSL-FO list:

<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 list-item-label object XSL-FO reference manual