<xsl:template match='DISTANCE'>
</xsl:template>
</xsl:stylesheet>
Вот результирующий документ XSL-FO, lists.fo (листинг 12.2).
<?xml version='1.0' encoding='UTF-8'?>
<fo:root xmlns:fo='http://www.w3.org/1999/XSL/Format'>
<fo:layout-master-set>
<fo:simple-page-master margin-right='20mm' margin-left='20mm'
margin-bottom='10mm' margin-top='10mm' page-width='300mm'
page-height='400mm' master-name='page'>
<fo:region-body margin-right='0mm' margin-left='0mm'
margin-bottom='10mm' margin-top='0mm'/>
<fo:region-after extent='10mm'/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-name='page'>
<fo:flow flow-name='xsl-region-body'>
<fo:block font-size='24pt'>The Planets Table</fo:block>
<fo:list-block provisional-label-separation='5mm'
provisional-distance-between-starts='15mm'>
<fo:list-item line-height='20mm'>
<fo:list-item-label>
<fo:block font-size='36pt' font-family='sans-serif'>
1.
</fo:block>
</fo:list-item-label>
<fo:list-item-body>
<fo:block font-size='36pt' font-family='sans-serif'>
Mercury
</fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item line-height='20mm'>
<fo:list-item-label>
<fo:block font-size='36pt' font-family='sans-serif'>
2.
</fo:block>
</fo:list-item-label>
<fo:list-item-body>
<fo:block font-size='36pt' font-family='sans-serif'>
Venus
</fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item line-height='20mm'>
<fo:list-item-label>
<fo:block font-size='36pt' font-family='sans-serif'>
3.
</fo:block>
</fo:list-item-label>
<fo:list-item-body>
<fo:block font-size='36pt' font-family='sans-serif'>
Earth
</fo:block>
</fo:list-item-body>
</fo:list-item>
</fo:list-block>
</fo:flow>
</fo:page-sequence>
</fo:root>
Результирующий файл PDF со списком в Adobe Acrobat Reader показан на рис. 12.1.
Рис. 12.1. Список, отформатированный при помощи XSL-FO, в Adobe Acrobat Reader
Давайте теперь подробнее рассмотрим, как работает lists.fo, и изучим форматирующие объекты для списка.
Создание списка: <fo:list-block>
Для начала воспользуйтесь элементом <fo:list-block>, чтобы создать список XSL-FO; этот объект содержит элементы <fo:list-item>, содержащие данные списка.
С элементом <fo:list-block> можно применять следующие свойства:
• общие свойства доступа: source-document, role;
• общие звуковые свойства: azimuth, cue-after, cue- before, elevation, pause-after, pause-before, pitch, pitch-range, play-during, richness, speak, speak-header, speak-numeral, speak- punctuation, speech-rate, stress, voice-family, volume;
• общие свойства границ, заполнения и заднего фона: background-attachment, background-color, background-image, background-repeat, background-position-horizontal, background-position-vertical, border- before-color, border-before-style, border-before-width, border- after-color, border-after-style, border-after-width, border-start- color, border-start-style, border-start-width, border-end- color, border-end-style, border-end-width, border-top- color, border-top-style, border-top-width, border-bottom- color, border-bottom-style, border-bottom-width, border-left- color, border-left-style, border-left-width, border-right- color, border-right-style, border-right-width, padding- before, padding-after, padding-start, padding-end, padding-top, padding-bottom, padding-left, padding- right;
• общие свойства полей: margin-top, margin-bottom, margin-
