Tecnologías XML / XSL-FO / Referencia / Extensiones XSL de Antenna House Formatter / Propiedades / column-rule-color
(Extracto de «XSL-FO ― Die Referenz» de Manuel Montero Pineda & Steffen Herkert, 2016, dpunkt.verlag)
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z
Categoría Columnas >> Separador de columnas
La propiedad axf:column-rule-color define el color del separador de columnas. [CSS3-Multicol] ‘column-rule-color’
Valor: | <color> |
Valor inicial: | el valor de la propiedad 'color' |
Se aplica a: | fo:region-body, fo:block-container |
Heredado: | no |
Porcentajes: | N/A |
Ejemplo XSL-FO:
<fo:root xml:lang="ja" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:cpfo="http://www.compart.net/xmlns/cpfo" xmlns:svg="http://www.w3.org/2000/svg" xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions">
<axf:document-info name="document-title" value="keep-together.within-page="always" 指定で改ページされる fo:table-row、fo:list-item のオーバーフローを回避する例"/>
<axf:document-info name="author" value="Antenna House, Inc."/>
<fo:layout-master-set>
<fo:simple-page-master page-height="150mm" page-width="210mm" margin-top="10mm" margin-left="20mm" margin-right="20mm" margin-bottom="10mm" master-name="PageMaster">
<fo:region-before extent="15mm"/>
<fo:region-after extent="15mm"/>
<fo:region-body margin-top="0mm" margin-left="0mm" margin-right="0mm" margin-bottom="18mm" column-count="3" column-gap="3mm" axf:column-rule-style="solid" axf:column-rule-width="1pt" axf:column-rule-color="lightgray"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="PageMaster">
<fo:static-content flow-name="xsl-region-after">
<fo:block font-size="0.8em" text-align="right" color="green">
<fo:basic-link external-destination="http://www.antenna.co.jp/AHF/">
Antenna House, Inc.
</fo:basic-link>
</fo:block>
<fo:block text-align="center">
-
<fo:page-number/>
-
</fo:block>
</fo:static-content>
<fo:flow flow-name="xsl-region-body" font-family="serif" font-size="1em" line-height="1.6" axf:hyphenate-hyphenated-word="false" hyphenate="true">
<fo:block span="all" font-family="sans-serif" font-size="1.6em" font-weight="bold" line-height="2" space-before="1em" space-after="1em" space-before.conditionality="retain" space-after.conditionality="retain" background-color="#EEEEEE" text-align="justify">
<fo:block start-indent="1em" end-indent="1em">
keep-together.within-page="always" 指定で改ページされる fo:table-row、fo:list-item のオーバーフローを回避する例
</fo:block>
</fo:block>
<fo:block span="all" space-before="1em" space-after="1em" space-after.conditionality="retain" text-indent="0em" border="1pt solid #9999FF" start-indent="0.5em" end-indent="0.5em" padding="0.5em" text-align="justify">
表の fo:table-row などページで分割させず、ページに収まらなければ fo:table-row を改ページさせる指定として keep-together.within-page="always" があります。しかし、改ページされた fo:table-row が移動先のページに収まらない長さの場合、ページの下部からオーバーフローする現象が発生します。これは always がページで分割させるのを許さない値であるためです。このサンプルは keep-together によるオーバフローを回避する方法を紹介します。なお、1ページ内で keep-together 指定の表示のされ方を確認いただくため keep-together.within-page を、段組と keep-together.within-column へ置き換えて説明します。各段を1ページとしてご覧ください。
</fo:block>
<fo:block text-align="justify" span="all">
まず、
<fo:page-number-citation ref-id="KTO001"/>
ページ目の表は keep-together の指定がない例です。No.2 を含む fo:table-row が段で分割しますが、そのまま出力されます。次に
<fo:page-number-citation ref-id="KTO002"/>
ページ目は各 fo:table-row へ keep-together で always を指定した表です。No.2 を含む fo:table-row が段で分割せず改段しますが、fo:table-row が移動先の2段目に収まらないためページの下部からオーバーフローします。
</fo:block>
<fo:block break-after="page"/>
<fo:table-and-caption>
<fo:table-caption>
<fo:block font-size="1.2em" font-family="sans-serif" font-weight="bold" id="KTO001">
keep-together 指定なし
</fo:block>
</fo:table-caption>
<fo:table inline-progression-dimension="55mm">
<fo:table-column column-number="1" column-width="15mm"/>
<fo:table-column column-number="2" column-width="40mm"/>
<fo:table-header>
<fo:table-row background-color="#EEE">
<fo:table-cell border="solid 0.2pt black" text-align="center" padding="1mm">
<fo:block>
No.
</fo:block>
</fo:table-cell>
<fo:table-cell border="solid 0.2pt black" text-align="center" padding="1mm">
<fo:block>
Details
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-header>
<fo:table-body>
<fo:table-row>
<fo:table-cell border="solid 0.2pt black" text-align="center" padding="1mm">
<fo:block>
No.1
</fo:block>
</fo:table-cell>
<fo:table-cell border="solid 0.2pt black" text-align="center" padding="1mm">
<fo:block>
Item a Details sample
</fo:block>
<fo:block text-align="justify" xml:lang="en">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam bibendum tincidunt pharetra. Aenean ultricies molestie ante, sit amet ultricies nunc mollis id. Duis volutpat, quam quis aliquet tristique.
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell border="solid 0.2pt black" text-align="center" padding="1mm">
<fo:block>
No.2
</fo:block>
</fo:table-cell>
<fo:table-cell border="solid 0.2pt black" text-align="center" padding="1mm">
<fo:block>
Item b Details sample
</fo:block>
<fo:block text-align="justify" xml:lang="en" space-after="1em">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam bibendum tincidunt pharetra. Aenean ultricies molestie ante, sit amet ultricies nunc mollis id. Integer ut porttitor felis, vel tincidunt velit. Duis volutpat, quam quis aliquet tristique, nulla dui malesuada velit, et consectetur tellus ipsum et arcu.
</fo:block>
<fo:block text-align="justify" xml:lang="en" space-after="1em">
Sed viverra metus quis nibh pulvinar, at dignissim nibh adipiscing. Duis sit amet ipsum non elit tincidunt sagittis ac non tortor. Mauris commodo, elit a imperdiet interdum, nulla velit viverra elit, at scelerisque urna est eget lacus. Integer eu lobortis neque. Donec malesuada sed arcu vitae fringilla.
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row keep-together.within-column="always">
<fo:table-cell border="solid 0.2pt black" text-align="center" padding="1mm">
<fo:block>
No.3
</fo:block>
</fo:table-cell>
<fo:table-cell border="solid 0.2pt black" text-align="center" padding="1mm">
<fo:block>
Item b Details sample
</fo:block>
<fo:block text-align="justify" xml:lang="en" space-after="1em">
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:table-and-caption>
<fo:block break-after="page"/>
<fo:table-and-caption>
<fo:table-caption>
<fo:block font-size="1.1em" font-family="sans-serif" font-weight="bold" id="KTO002">
keep-together、always を指定
</fo:block>
<fo:block space-after="1em" text-align="justify">
fo:table-row へ keep-together.within-column="always" を指定しています。
</fo:block>
</fo:table-caption>
<fo:table inline-progression-dimension="55mm">
<fo:table-column column-number="1" column-width="15mm"/>
<fo:table-column column-number="2" column-width="40mm"/>
<fo:table-header>
<fo:table-row background-color="#EEE">
<fo:table-cell border="solid 0.2pt black" text-align="center" padding="1mm">
<fo:block>
No.
</fo:block>
</fo:table-cell>
<fo:table-cell border="solid 0.2pt black" text-align="center" padding="1mm">
<fo:block>
Details
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-header>
<fo:table-body>
<fo:table-row keep-together.within-column="always">
<fo:table-cell border="solid 0.2pt black" text-align="center" padding="1mm">
<fo:block>
No.1
</fo:block>
</fo:table-cell>
<fo:table-cell border="solid 0.2pt black" text-align="center" padding="1mm">
<fo:block>
Item a Details sample
</fo:block>
<fo:block text-align="justify" xml:lang="en">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam bibendum tincidunt pharetra. Aenean ultricies molestie ante, sit amet ultricies nunc mollis id. Duis volutpat, quam quis aliquet tristique.
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row keep-together.within-column="always">
<fo:table-cell border="solid 0.2pt black" text-align="center" padding="1mm">
<fo:block>
No.2
</fo:block>
</fo:table-cell>
<fo:table-cell border="solid 0.2pt black" text-align="center" padding="1mm">
<fo:block>
Item b Details sample
</fo:block>
<fo:block text-align="justify" xml:lang="en" space-after="1em">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam bibendum tincidunt pharetra. Aenean ultricies molestie ante, sit amet ultricies nunc mollis id. Integer ut porttitor felis, vel tincidunt velit. Duis volutpat, quam quis aliquet tristique, nulla dui malesuada velit, et consectetur tellus ipsum et arcu.
</fo:block>
<fo:block text-align="justify" xml:lang="en" space-after="1em">
Sed viverra metus quis nibh pulvinar, at dignissim nibh adipiscing. Duis sit amet ipsum non elit tincidunt sagittis ac non tortor. Mauris commodo, elit a imperdiet interdum, nulla velit viverra elit, at scelerisque urna est eget lacus. Integer eu lobortis neque. Donec malesuada sed arcu vitae fringilla.
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row keep-together.within-column="always">
<fo:table-cell border="solid 0.2pt black" text-align="center" padding="1mm">
<fo:block>
No.3
</fo:block>
</fo:table-cell>
<fo:table-cell border="solid 0.2pt black" text-align="center" padding="1mm">
<fo:block>
Item b Details sample
</fo:block>
<fo:block text-align="justify" xml:lang="en" space-after="1em">
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:table-and-caption>
<fo:block break-after="page"/>
<fo:block text-align="justify" span="all">
<fo:block space-before="1em" font-family="sans-serif" font-size="1.2em" font-weight="bold" text-indent="0em" line-height="2" keep-with-next.within-column="always">
keep-together 、integer(数値指定)について -1- (オーバフロー回避)
</fo:block>
<fo:block space-after="1em">
keep-together の always 指定では、
<fo:page-number-citation ref-id="KTO002"/>
ページ目のように改段後の fo:table-row がオーバーフローする場合があります。これを、XSL-FO の仕様
<fo:inline color="blue" text-decoration="underline">
<fo:basic-link external-destination="https://www.w3.org/TR/xsl11/#keep-together">
7.20.3 "keep-together"
</fo:basic-link>
</fo:inline>
の integer(数値指定)に基づいた AH Formatter の実装によりオーバーフローしないようにできます。
<fo:page-number-citation ref-id="KTO003"/>
ページでは次のコードのように fo:table-row へ keep-together.within-column="1" を指定しオーバーフローを回避しています。
</fo:block>
<fo:block linefeed-treatment="preserve" white-space-collapse="false" white-space-treatment="preserve" wrap-option="wrap" line-height="1.4" border="1pt solid gray" space-after="1em">
<fo:table-body> <fo:table-row keep-together.within-column="1"><fo:table-cell>...</fo:table-cell></fo:table-row> <fo:table-row keep-together.within-column="1"><fo:table-cell>...</fo:table-cell></fo:table-row> ... </fo:table-body>
</fo:block>
<fo:block>
keep-together へ指定する数値は強度を表し大きいほど強くなり、指定の判定は ページ、段、行のエリア中で行われます。なお、auto や指定なしでは keep-together の指定がないものとして扱われ、always は最強です。
</fo:block>
<fo:block>
AH Formatter による keep-together 数値指定の実装では、指定のある fo が生成するコンテンツが判定のエリア、例えばページに収まらない場合、keep-together 指定を効かせコンテンツを改ページします。そして、次の判定のエリアであるページにコンテンツが収まらない場合は、keep-together の指定に関わらずコンテンツをページで分割させます。よって、
<fo:page-number-citation ref-id="KTO003"/>
ページのサンプルでは keep-together.within-column="1" が指定されている No.2 を含む fo:table-row は1段目に収まらないため keep-together の指定により改段します。2段目に送られた fo:table-row はページに収まりませんがページで分割されるためオーバーフローしません。
</fo:block>
</fo:block>
<fo:block break-after="page"/>
<fo:table-and-caption>
<fo:table-caption>
<fo:block font-size="1.2em" font-family="sans-serif" font-weight="bold" id="KTO003">
keep-together、数値を指定
</fo:block>
<fo:block space-after="1em" text-align="justify">
keep-together.within-column="1" を fo:table-row へ指定しています。
</fo:block>
</fo:table-caption>
<fo:table inline-progression-dimension="55mm">
<fo:table-column column-number="1" column-width="15mm"/>
<fo:table-column column-number="2" column-width="40mm"/>
<fo:table-header>
<fo:table-row background-color="#EEE">
<fo:table-cell border="solid 0.2pt black" text-align="center" padding="1mm">
<fo:block>
No.
</fo:block>
</fo:table-cell>
<fo:table-cell border="solid 0.2pt black" text-align="center" padding="1mm">
<fo:block>
Details
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-header>
<fo:table-body>
<fo:table-row keep-together.within-column="1">
<fo:table-cell border="solid 0.2pt black" text-align="center" padding="1mm">
<fo:block>
No.1
</fo:block>
</fo:table-cell>
<fo:table-cell border="solid 0.2pt black" text-align="center" padding="1mm">
<fo:block>
Item a Details sample
</fo:block>
<fo:block text-align="justify" xml:lang="en">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam bibendum tincidunt pharetra. Aenean ultricies molestie ante, sit amet ultricies nunc mollis id. Duis volutpat, quam quis aliquet tristique.
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row keep-together.within-column="1">
<fo:table-cell border="solid 0.2pt black" text-align="center" padding="1mm">
<fo:block>
No.2
</fo:block>
</fo:table-cell>
<fo:table-cell border="solid 0.2pt black" text-align="center" padding="1mm">
<fo:block>
Item b Details sample
</fo:block>
<fo:block text-align="justify" xml:lang="en" space-after="1em">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam bibendum tincidunt pharetra. Aenean ultricies molestie ante, sit amet ultricies nunc mollis id. Integer ut porttitor felis, vel tincidunt velit. Duis volutpat, quam quis aliquet tristique, nulla dui malesuada velit, et consectetur tellus ipsum et arcu.
</fo:block>
<fo:block text-align="justify" xml:lang="en" space-after="1em">
Sed viverra metus quis nibh pulvinar, at dignissim nibh adipiscing. Duis sit amet ipsum non elit tincidunt sagittis ac non tortor. Mauris commodo, elit a imperdiet interdum, nulla velit viverra elit, at scelerisque urna est eget lacus. Integer eu lobortis neque. Donec malesuada sed arcu vitae fringilla.
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row keep-together.within-column="1">
<fo:table-cell border="solid 0.2pt black" text-align="center" padding="1mm">
<fo:block>
No.3
</fo:block>
</fo:table-cell>
<fo:table-cell border="solid 0.2pt black" text-align="center" padding="1mm">
<fo:block>
Item b Details sample
</fo:block>
<fo:block text-align="justify" xml:lang="en" space-after="1em">
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:table-and-caption>
<fo:block break-after="page"/>
<fo:block text-align="justify" span="all">
<fo:block space-before="1em" font-family="sans-serif" font-size="1.2em" font-weight="bold" text-indent="0em" line-height="2" keep-with-next.within-column="always">
keep-together 、integer(数値指定)について -2-
</fo:block>
<fo:block space-after="0.5em">
補足として keep-together の数値指定が次のコードのように複数指定されている場合を説明いたします。
</fo:block>
<fo:block linefeed-treatment="preserve" white-space-collapse="false" white-space-treatment="preserve" wrap-option="wrap" line-height="1.4" border="1pt solid gray" space-after="0.5em">
<fo:table-body keep-together.within-column="2"> <fo:table-row keep-together.within-column="1"><fo:table-cell>...</fo:table-cell></fo:table-row> <fo:table-row keep-together.within-column="2"><fo:table-cell>...</fo:table-cell></fo:table-row> <fo:table-row keep-together.within-column="3"><fo:table-cell>...</fo:table-cell></fo:table-row> </fo:table-body>
</fo:block>
<fo:block>
fo に keep-together、数値 "N" が指定されており、さらにその子供の fo に keep-together、数値 "M" が指定されているケースにおいて、二つ目(以後)の子供が、その前の子供と同じ判定エリアであるページに入りきらないケースを想定します。このとき、数値指定による結果は次のようになります。
</fo:block>
<fo:block>
・N≧M:数値 N が有効になり、二つ目の子供の fo は前の fo と同じページから始まりページで分割します。
</fo:block>
<fo:block>
・N<M:数値 N が無効になり、二つ目の子供の fo の前で改ページします。
</fo:block>
<fo:block>
<fo:page-number-citation ref-id="KTO007"/>
ページ目のサンプルは上記コードのように fo:table-body に keep-together.within-column="2" を指定、No.1、2、3 を含む fo:table-row へ順に keep-together.within-column="1"、"2"、"3" を指定しています。1段目では、二つ目の No.2 を含む fo:table-row が1段目に収まりませんが、fo:table 数値"2"、fo:table-row 数値"1"、"2" で、fo:table≧fo:table-row となります。fo:table の keep-together が有効、No.1、2 の fo:table-row は同じ段から始まり、No.2 の fo:table-row は段で分割します。3段目、No.3 を含む fo:table-row は fo:table 数値"2"、fo:table-row 数値"3" となり、fo:table<fo:table-row です。fo:table の keep-together は無効、No.3 の fo:table-row の前で改段されます。また、改段後のエリアに収まらないコンテンツは段で分割され、オーバーフローしません。
</fo:block>
</fo:block>
<fo:block break-after="page"/>
<fo:table-and-caption>
<fo:table-caption>
<fo:block font-size="1.2em" font-family="sans-serif" font-weight="bold" id="KTO007">
keep-together、数値を指定
</fo:block>
<fo:block space-after="1em" text-align="justify">
keep-together.within-column="数値" を fo:table、fo:table-row へ指定しています。
</fo:block>
</fo:table-caption>
<fo:table inline-progression-dimension="55mm">
<fo:table-column column-number="1" column-width="15mm"/>
<fo:table-column column-number="2" column-width="40mm"/>
<fo:table-header>
<fo:table-row background-color="#EEE">
<fo:table-cell border="solid 0.2pt black" text-align="center" padding="1mm">
<fo:block>
No.
</fo:block>
</fo:table-cell>
<fo:table-cell border="solid 0.2pt black" text-align="center" padding="1mm">
<fo:block>
Details
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-header>
<fo:table-body keep-together.within-column="2">
<fo:table-row keep-together.within-column="1">
<fo:table-cell border="solid 0.2pt black" text-align="center" padding="1mm">
<fo:block>
No.1
</fo:block>
</fo:table-cell>
<fo:table-cell border="solid 0.2pt black" text-align="center" padding="1mm">
<fo:block>
Item a Details sample
</fo:block>
<fo:block text-align="justify" xml:lang="en">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam bibendum tincidunt pharetra. Aenean ultricies molestie ante, sit amet ultricies nunc mollis id. Duis volutpat, quam quis aliquet tristique.
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row keep-together.within-column="2">
<fo:table-cell border="solid 0.2pt black" text-align="center" padding="1mm">
<fo:block>
No.2
</fo:block>
</fo:table-cell>
<fo:table-cell border="solid 0.2pt black" text-align="center" padding="1mm">
<fo:block>
Item b Details sample
</fo:block>
<fo:block text-align="justify" xml:lang="en" space-after="1em">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam bibendum tincidunt pharetra. Aenean ultricies molestie ante, sit amet ultricies nunc mollis id. Integer ut porttitor felis, vel tincidunt velit. Duis volutpat, quam quis aliquet tristique, nulla dui malesuada velit, et consectetur tellus ipsum et arcu.
</fo:block>
<fo:block text-align="justify" xml:lang="en" space-after="1em">
Sed viverra metus quis nibh pulvinar, at dignissim nibh adipiscing. Duis sit amet ipsum non elit tincidunt sagittis ac non tortor. Mauris commodo, elit a imperdiet interdum, nulla velit viverra elit, at scelerisque urna est eget lacus. Integer eu lobortis neque. Donec malesuada sed arcu vitae fringilla.
</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row keep-together.within-column="3">
<fo:table-cell border="solid 0.2pt black" text-align="center" padding="1mm">
<fo:block>
No.3
</fo:block>
</fo:table-cell>
<fo:table-cell border="solid 0.2pt black" text-align="center" padding="1mm">
<fo:block>
Item b Details sample
</fo:block>
<fo:block text-align="justify" xml:lang="en" space-after="1em">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:table-and-caption>
<fo:block break-after="page"/>
<fo:block text-align="justify" span="all">
<fo:block space-before="1em" font-family="sans-serif" font-size="1.2em" font-weight="bold" text-indent="0em" line-height="2" keep-with-next.within-column="always">
keep-together、integer(数値指定)を fo:list-item へ適用した例
</fo:block>
<fo:block space-after="0.5em">
keep-together へ数値を指定してオーバーフローを回避させる方法は、fo:table-row 以外に例えば fo:list-item の場合でも有効です。fo:list-item では、次のようなコード指定となります。
</fo:block>
<fo:block linefeed-treatment="preserve" white-space-collapse="false" white-space-treatment="preserve" wrap-option="wrap" line-height="1.4" border="1pt solid gray" space-after="1em">
<fo:list-block> <fo:list-item keep-together.within-page="1"> <fo:list-item-label>...</fo:list-item-label> <fo:list-item-body>...</fo:list-item-body> </fo:list-item> <fo:list-item keep-together.within-page="1"> <fo:list-item-label>...</fo:list-item-label> <fo:list-item-body>...</fo:list-item-body> </fo:list-item> </fo:list-block>
</fo:block>
<fo:block>
<fo:page-number-citation ref-id="KTO004"/>
ページ目は keep-together 指定なし、
<fo:page-number-citation ref-id="KTO005"/>
ページ目は keep-together と always 指定、そして、
<fo:page-number-citation ref-id="KTO006"/>
ページ目は keep-together へ数値指定した場合のサンプルです。
</fo:block>
</fo:block>
<fo:block break-after="page"/>
<fo:block font-size="1.2em" font-family="sans-serif" space-after="0.5em" font-weight="bold" id="KTO004" keep-with-next="always">
keep-together 指定なし
</fo:block>
<fo:list-block provisional-label-separation="1em" provisional-distance-between-starts="4em">
<fo:list-item>
<fo:list-item-label end-indent="label-end()">
<fo:block>
label-1
</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>
list-item-sample-1
</fo:block>
<fo:block>
list-item-sample-1
</fo:block>
<fo:block>
list-item-sample-1
</fo:block>
<fo:block>
list-item-sample-1
</fo:block>
<fo:block>
list-item-sample-1
</fo:block>
<fo:block>
list-item-sample-1
</fo:block>
<fo:block>
list-item-sample-1
</fo:block>
<fo:block>
list-item-sample-1
</fo:block>
<fo:block>
list-item-sample-1
</fo:block>
<fo:block>
list-item-sample-1
</fo:block>
<fo:block>
list-item-sample-1
</fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item>
<fo:list-item-label end-indent="label-end()">
<fo:block>
label-2
</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item>
<fo:list-item-label end-indent="label-end()">
<fo:block>
label-3
</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>
list-item-sample-3
</fo:block>
<fo:block>
list-item-sample-3
</fo:block>
<fo:block>
list-item-sample-3
</fo:block>
<fo:block>
list-item-sample-3
</fo:block>
<fo:block>
list-item-sample-3
</fo:block>
</fo:list-item-body>
</fo:list-item>
</fo:list-block>
<fo:block break-after="page"/>
<fo:block font-size="1.1em" font-family="sans-serif" font-weight="bold" id="KTO005">
keep-together、alwaysを指定
</fo:block>
<fo:block space-after="0.5em" text-align="justify" keep-with-next="always">
fo:list-item へ keep-together.within-column="always"を指定しています。
</fo:block>
<fo:list-block provisional-label-separation="1em" provisional-distance-between-starts="4em">
<fo:list-item keep-together.within-column="always">
<fo:list-item-label end-indent="label-end()">
<fo:block>
label-1
</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>
list-item-sample-1
</fo:block>
<fo:block>
list-item-sample-1
</fo:block>
<fo:block>
list-item-sample-1
</fo:block>
<fo:block>
list-item-sample-1
</fo:block>
<fo:block>
list-item-sample-1
</fo:block>
<fo:block>
list-item-sample-1
</fo:block>
<fo:block>
list-item-sample-1
</fo:block>
<fo:block>
list-item-sample-1
</fo:block>
<fo:block>
list-item-sample-1
</fo:block>
<fo:block>
list-item-sample-1
</fo:block>
<fo:block>
list-item-sample-1
</fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item keep-together.within-column="always">
<fo:list-item-label end-indent="label-end()">
<fo:block>
label-2
</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item keep-together.within-column="always">
<fo:list-item-label end-indent="label-end()">
<fo:block>
label-3
</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>
list-item-sample-3
</fo:block>
<fo:block>
list-item-sample-3
</fo:block>
<fo:block>
list-item-sample-3
</fo:block>
<fo:block>
list-item-sample-3
</fo:block>
<fo:block>
list-item-sample-3
</fo:block>
</fo:list-item-body>
</fo:list-item>
</fo:list-block>
<fo:block break-after="page"/>
<fo:block font-size="1.2em" font-family="sans-serif" font-weight="bold" id="KTO006" keep-with-next="always">
keep-together、数値を指定
</fo:block>
<fo:block space-after="0.5em" text-align="justify" keep-with-next="always">
keep-together.within-column="1" を fo:list-item へ指定しています。
</fo:block>
<fo:list-block provisional-label-separation="1em" provisional-distance-between-starts="4em">
<fo:list-item keep-together.within-column="1">
<fo:list-item-label end-indent="label-end()">
<fo:block>
label-1
</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>
list-item-sample-1
</fo:block>
<fo:block>
list-item-sample-1
</fo:block>
<fo:block>
list-item-sample-1
</fo:block>
<fo:block>
list-item-sample-1
</fo:block>
<fo:block>
list-item-sample-1
</fo:block>
<fo:block>
list-item-sample-1
</fo:block>
<fo:block>
list-item-sample-1
</fo:block>
<fo:block>
list-item-sample-1
</fo:block>
<fo:block>
list-item-sample-1
</fo:block>
<fo:block>
list-item-sample-1
</fo:block>
<fo:block>
list-item-sample-1
</fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item keep-together.within-column="1">
<fo:list-item-label end-indent="label-end()">
<fo:block>
label-2
</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
<fo:block>
list-item-sample-2
</fo:block>
</fo:list-item-body>
</fo:list-item>
<fo:list-item keep-together.within-column="2">
<fo:list-item-label end-indent="label-end()">
<fo:block>
label-3
</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>
list-item-sample-3
</fo:block>
<fo:block>
list-item-sample-3
</fo:block>
<fo:block>
list-item-sample-3
</fo:block>
<fo:block>
list-item-sample-3
</fo:block>
<fo:block>
list-item-sample-3
</fo:block>
</fo:list-item-body>
</fo:list-item>
</fo:list-block>
<fo:block break-after="page"/>
</fo:flow>
</fo:page-sequence>
</fo:root>Resultado:

página 2

página 3

página 4

página 5

página 6

página 7

página 8

página 9

página 10

página 11

página 12