XSL-FO list-item-labelObjeto
Manual de referencia de XSL-FO
Definición y uso
El objeto <fo:list-item-label> contiene la etiqueta list-item; normalmente, <fo:block> contiene números, caracteres, etc.
A continuación se enumeran cuatro objetos XSL-FO para crear listas:
- fo:list-block (contiene toda la lista)
- fo:list-item (contiene cada elemento de la lista)
- fo:list-item-label (contiene la etiqueta list-item; normalmente, <fo:block> contiene números, caracteres, etc.)
- fo:list-item-body (contiene el contenido/cuerpo del list-item; normalmente uno o más objetos <fo:block>)
Sintaxis
<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>
Atributos
| Atributos |
|---|
| id |
| keep-together |
| role |
| source-document |
Ejemplo 1
Un ejemplo de lista 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>
El código anterior generará:
|
* Volvo * Saab |
Manual de referencia de XSL-FO Otras extensiones