aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--docs/examples/footnotes/columns.fo144
-rw-r--r--docs/examples/footnotes/simple.fo82
-rw-r--r--docs/examples/keeps_and_breaks/columnlevel1.fo176
-rw-r--r--docs/examples/keeps_and_breaks/pagelevel1.fo78
-rw-r--r--docs/examples/keeps_and_breaks/pagelevel2.fo174
-rw-r--r--docs/examples/keeps_and_breaks/pagelevel3.fo174
-rw-r--r--docs/examples/keeps_and_breaks/pagelevel4.fo176
7 files changed, 502 insertions, 502 deletions
diff --git a/docs/examples/footnotes/columns.fo b/docs/examples/footnotes/columns.fo
index feed886b5..3a0ee029a 100644
--- a/docs/examples/footnotes/columns.fo
+++ b/docs/examples/footnotes/columns.fo
@@ -7,29 +7,29 @@
<!-- layout for the first page -->
<fo:simple-page-master master-name="first"
- page-height="11in"
+ page-height="11in"
page-width="8.5in"
- margin-top="1in"
- margin-bottom="1in"
- margin-left="0.75in"
+ margin-top="1in"
+ margin-bottom="1in"
+ margin-left="0.75in"
margin-right="0.75in">
<fo:region-body
- margin-top="1in" margin-bottom="1in"
- column-count="2" column-gap="0.25in"/>
+ margin-top="1in" margin-bottom="1in"
+ column-count="2" column-gap="0.25in"/>
<fo:region-before extent="1in"/>
<fo:region-after extent="1in"/>
</fo:simple-page-master>
<fo:simple-page-master master-name="next"
- page-height="11in"
+ page-height="11in"
page-width="8.5in"
- margin-top="1in"
- margin-bottom="1in"
- margin-left="0.75in"
+ margin-top="1in"
+ margin-bottom="1in"
+ margin-left="0.75in"
margin-right="0.75in">
<fo:region-body
- margin-top="1in" margin-bottom="1in"
- column-count="4" column-gap="0.25in"/>
+ margin-top="1in" margin-bottom="1in"
+ column-count="4" column-gap="0.25in"/>
<fo:region-before extent="1in"/>
<fo:region-after extent="1in"/>
</fo:simple-page-master>
@@ -39,22 +39,22 @@
<!-- actual layout -->
<fo:page-sequence master-reference="first">
<fo:static-content flow-name="xsl-region-before">
- <fo:block font-size="16pt"
- font-family="sans-serif"
+ <fo:block font-size="16pt"
+ font-family="sans-serif"
line-height="normal"
text-align="start"
- color="blue">Footnotes in Columns</fo:block>
- </fo:static-content>
-
+ color="blue">Footnotes in Columns</fo:block>
+ </fo:static-content>
+
<fo:static-content flow-name="xsl-region-after">
- <fo:block font-size="10pt"
- font-family="sans-serif"
+ <fo:block font-size="10pt"
+ font-family="sans-serif"
line-height="12pt"
- space-before.optimum="6pt"
+ space-before.optimum="6pt"
text-align="end"
- color="blue">Page #</fo:block>
- </fo:static-content>
-
+ color="blue">Page #</fo:block>
+ </fo:static-content>
+
<fo:flow flow-name="xsl-region-body">
<fo:block color="grey">
What shall we use to fill the empty spaces,
@@ -87,15 +87,15 @@ How shall I fill the final places?
How shall I complete the wall?
</fo:block>
<fo:block color="red">
- The <fo:footnote>
- <fo:inline font-weight="bold">footnote<fo:inline font-size="6pt" vertical-align="super">1</fo:inline></fo:inline>
- <fo:footnote-body>
- <fo:block color="maroon">
- 1. A footnote is text placed at the bottom of the current page.
- </fo:block>
- </fo:footnote-body>
- </fo:footnote>
- at the bottom of the page.
+ The <fo:footnote>
+ <fo:inline font-weight="bold">footnote<fo:inline font-size="6pt" vertical-align="super">1</fo:inline></fo:inline>
+ <fo:footnote-body>
+ <fo:block color="maroon">
+ 1. A footnote is text placed at the bottom of the current page.
+ </fo:block>
+ </fo:footnote-body>
+ </fo:footnote>
+ at the bottom of the page.
</fo:block>
<fo:block color="grey">
What shall we use to fill the empty spaces,
@@ -128,38 +128,38 @@ How shall I fill the final places?
How shall I complete the wall?
</fo:block>
<fo:block color="green">
- The <fo:footnote>
- <fo:inline font-weight="bold">second footnote<fo:inline font-size="6pt" vertical-align="super">2</fo:inline></fo:inline>
- <fo:footnote-body>
- <fo:block color="darkgreen">
- 2. Another footnote with a bit more text.
- </fo:block>
- </fo:footnote-body>
- </fo:footnote>
- at the bottom of the page after the other footnote.
+ The <fo:footnote>
+ <fo:inline font-weight="bold">second footnote<fo:inline font-size="6pt" vertical-align="super">2</fo:inline></fo:inline>
+ <fo:footnote-body>
+ <fo:block color="darkgreen">
+ 2. Another footnote with a bit more text.
+ </fo:block>
+ </fo:footnote-body>
+ </fo:footnote>
+ at the bottom of the page after the other footnote.
</fo:block>
- </fo:flow>
+ </fo:flow>
</fo:page-sequence>
<fo:page-sequence master-reference="next">
<fo:static-content flow-name="xsl-region-before">
- <fo:block font-size="16pt"
- font-family="sans-serif"
+ <fo:block font-size="16pt"
+ font-family="sans-serif"
line-height="normal"
text-align="start"
- color="blue">Footnotes in Columns</fo:block>
- </fo:static-content>
-
+ color="blue">Footnotes in Columns</fo:block>
+ </fo:static-content>
+
<fo:static-content flow-name="xsl-region-after">
- <fo:block font-size="10pt"
- font-family="sans-serif"
+ <fo:block font-size="10pt"
+ font-family="sans-serif"
line-height="12pt"
- space-before.optimum="6pt"
+ space-before.optimum="6pt"
text-align="end"
- color="blue">Page #</fo:block>
- </fo:static-content>
-
+ color="blue">Page #</fo:block>
+ </fo:static-content>
+
<fo:flow flow-name="xsl-region-body">
<fo:block color="grey">
What shall we use to fill the empty spaces,
@@ -192,15 +192,15 @@ How shall I fill the final places?
How shall I complete the wall?
</fo:block>
<fo:block color="red">
- The <fo:footnote>
- <fo:inline font-weight="bold">footnote<fo:inline font-size="6pt" vertical-align="super">1</fo:inline></fo:inline>
- <fo:footnote-body>
- <fo:block color="maroon">
- 1. A footnote is text placed at the bottom of the current page.
- </fo:block>
- </fo:footnote-body>
- </fo:footnote>
- at the bottom of the page.
+ The <fo:footnote>
+ <fo:inline font-weight="bold">footnote<fo:inline font-size="6pt" vertical-align="super">1</fo:inline></fo:inline>
+ <fo:footnote-body>
+ <fo:block color="maroon">
+ 1. A footnote is text placed at the bottom of the current page.
+ </fo:block>
+ </fo:footnote-body>
+ </fo:footnote>
+ at the bottom of the page.
</fo:block>
<fo:block color="grey">
What shall we use to fill the empty spaces,
@@ -233,17 +233,17 @@ How shall I fill the final places?
How shall I complete the wall?
</fo:block>
<fo:block color="green">
- The <fo:footnote>
- <fo:inline font-weight="bold">second footnote<fo:inline font-size="6pt" vertical-align="super">2</fo:inline></fo:inline>
- <fo:footnote-body>
- <fo:block color="darkgreen">
- 2. Another footnote with a bit more text.
- </fo:block>
- </fo:footnote-body>
- </fo:footnote>
- at the bottom of the page after the other footnote.
+ The <fo:footnote>
+ <fo:inline font-weight="bold">second footnote<fo:inline font-size="6pt" vertical-align="super">2</fo:inline></fo:inline>
+ <fo:footnote-body>
+ <fo:block color="darkgreen">
+ 2. Another footnote with a bit more text.
+ </fo:block>
+ </fo:footnote-body>
+ </fo:footnote>
+ at the bottom of the page after the other footnote.
</fo:block>
- </fo:flow>
+ </fo:flow>
</fo:page-sequence>
</fo:root>
diff --git a/docs/examples/footnotes/simple.fo b/docs/examples/footnotes/simple.fo
index 0245a2cbe..a1abc046a 100644
--- a/docs/examples/footnotes/simple.fo
+++ b/docs/examples/footnotes/simple.fo
@@ -11,30 +11,30 @@
<fo:flow flow-name="xsl-region-body">
<fo:block space-after.optimum="10pt" font-weight="bold" font-size="16pt" text-align="center">
- Footnotes
+ Footnotes
</fo:block>
<fo:block color="red">
- The <fo:footnote>
- <fo:inline font-weight="bold">footnote<fo:inline font-size="6pt" vertical-align="super">1</fo:inline></fo:inline>
- <fo:footnote-body>
- <fo:block color="maroon">
- 1. A footnote is text placed at the bottom of the current or the next page.
- </fo:block>
- </fo:footnote-body>
- </fo:footnote>
- at the bottom of the page.
+ The <fo:footnote>
+ <fo:inline font-weight="bold">footnote<fo:inline font-size="6pt" vertical-align="super">1</fo:inline></fo:inline>
+ <fo:footnote-body>
+ <fo:block color="maroon">
+ 1. A footnote is text placed at the bottom of the current or the next page.
+ </fo:block>
+ </fo:footnote-body>
+ </fo:footnote>
+ at the bottom of the page.
</fo:block>
<fo:block color="green">
- The <fo:footnote>
- <fo:inline font-weight="bold">second footnote<fo:inline font-size="6pt" vertical-align="super">2</fo:inline></fo:inline>
- <fo:footnote-body>
- <fo:block color="darkgreen">
- 2. Another footnote with a bit more text.
- </fo:block>
- </fo:footnote-body>
- </fo:footnote>
- at the bottom of the page after the other footnote.
+ The <fo:footnote>
+ <fo:inline font-weight="bold">second footnote<fo:inline font-size="6pt" vertical-align="super">2</fo:inline></fo:inline>
+ <fo:footnote-body>
+ <fo:block color="darkgreen">
+ 2. Another footnote with a bit more text.
+ </fo:block>
+ </fo:footnote-body>
+ </fo:footnote>
+ at the bottom of the page after the other footnote.
</fo:block>
<fo:block space-before.optimum="200pt" color="grey">
This text is used to show the body region area.
@@ -61,8 +61,8 @@ This text is used to show the body region area.
</fo:block>
<fo:block break-before="page">
- This is for testing if a footnote cannot fit with the footnote
- reference text.
+ This is for testing if a footnote cannot fit with the footnote
+ reference text.
</fo:block>
<fo:block color="grey" space-before.optimum="300pt">
Some filler text with no other purpose.
@@ -75,21 +75,21 @@ Some filler text with no other purpose.
Some filler text with no other purpose.
</fo:block>
<fo:block color="blue">
- This <fo:footnote>
- <fo:inline font-weight="bold">footnote</fo:inline>
- <fo:footnote-body>
- <fo:block color="darkblue">
- A footnote with too much text to fit on the same page as the reference. Also the
- reference is in the same place as the conditional footnote reference text.
- </fo:block>
- </fo:footnote-body>
- </fo:footnote>
- is at the bottom of the page where the conditional footnote reference area is.
+ This <fo:footnote>
+ <fo:inline font-weight="bold">footnote</fo:inline>
+ <fo:footnote-body>
+ <fo:block color="darkblue">
+ A footnote with too much text to fit on the same page as the reference. Also the
+ reference is in the same place as the conditional footnote reference text.
+ </fo:block>
+ </fo:footnote-body>
+ </fo:footnote>
+ is at the bottom of the page where the conditional footnote reference area is.
</fo:block>
<fo:block break-before="page">
- This page also has a footnote and should have the footnote from the last page.
+ This page also has a footnote and should have the footnote from the last page.
</fo:block>
<fo:block color="grey" space-before.optimum="150pt">
More boring filler text.
@@ -97,15 +97,15 @@ More boring filler text.
More boring filler text.
</fo:block>
<fo:block color="fuchsia">
- This <fo:footnote>
- <fo:inline font-weight="bold">footnote</fo:inline>
- <fo:footnote-body>
- <fo:block color="purple">
- Another footnote.
- </fo:block>
- </fo:footnote-body>
- </fo:footnote>
- is at the bottom of the page after the footnote from the previous page.
+ This <fo:footnote>
+ <fo:inline font-weight="bold">footnote</fo:inline>
+ <fo:footnote-body>
+ <fo:block color="purple">
+ Another footnote.
+ </fo:block>
+ </fo:footnote-body>
+ </fo:footnote>
+ is at the bottom of the page after the footnote from the previous page.
</fo:block>
diff --git a/docs/examples/keeps_and_breaks/columnlevel1.fo b/docs/examples/keeps_and_breaks/columnlevel1.fo
index bda51efe2..2a286f342 100644
--- a/docs/examples/keeps_and_breaks/columnlevel1.fo
+++ b/docs/examples/keeps_and_breaks/columnlevel1.fo
@@ -8,15 +8,15 @@ This file addresses breaks in column context.
<fo:layout-master-set>
<!-- layout for all pages -->
<fo:simple-page-master master-name="all"
- page-height="29.7cm"
+ page-height="29.7cm"
page-width="21cm"
- margin-top="1cm"
- margin-bottom="2cm"
- margin-left="2.5cm"
+ margin-top="1cm"
+ margin-bottom="2cm"
+ margin-left="2.5cm"
margin-right="2.5cm">
<fo:region-body
- margin-top="3cm" margin-bottom="2cm"
- column-count="2" column-gap="0.25in"/>
+ margin-top="3cm" margin-bottom="2cm"
+ column-count="2" column-gap="0.25in"/>
<fo:region-before extent="3cm"/>
<fo:region-after extent="2cm"/>
</fo:simple-page-master>
@@ -24,17 +24,17 @@ This file addresses breaks in column context.
<fo:page-sequence master-reference="all">
<fo:static-content flow-name="xsl-region-after">
- <fo:block font-size="10pt" text-align="start"
- border-style="solid" border-color="blue" border-width="0.5pt"
- space-before.optimum="6pt">
- Text excerpt from XSL Candidate Recommendation, 21 Nov 2000.
- </fo:block>
- </fo:static-content>
-
+ <fo:block font-size="10pt" text-align="start"
+ border-style="solid" border-color="blue" border-width="0.5pt"
+ space-before.optimum="6pt">
+ Text excerpt from XSL Candidate Recommendation, 21 Nov 2000.
+ </fo:block>
+ </fo:static-content>
+
<fo:flow flow-name="xsl-region-body">
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt">
Keep and break conditions apply to a class of areas, which are typically
page-reference-areas, column-areas, and line-areas. The appropriate class
for a given condition is referred to as a context and an area in this
@@ -46,8 +46,8 @@ of region-master.
</fo:block>
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt">
A keep or break condition is an open statement about a formatting object
and the tree relationships of the areas it generates with the relevant
context-areas. These tree relationships are defined mainly in terms of
@@ -59,33 +59,33 @@ a normal area, nor does any of its ancestor areas up to but not including P.
For any given formatting object, the next formatting object in the flow is
the first formatting object following (in the pre-order traversal order)
which generates and returns normal areas.
- </fo:block>
-
+ </fo:block>
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt">
Break conditions are either break-before or break-before conditions.
A break-before condition is satisfied if the first area generated and
returned by the formatting object is leading within a context-area. A
break-before condition depends on the next formatting object in the flow;
it is satisfied if either there is no such next formatting object, or
if the first normal area generated and returned by that formatting
-object is leading in a context-area.
+object is leading in a context-area.
</fo:block>
-
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt"
- color="blue"
- break-before="column">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt"
+ color="blue"
+ break-before="column">
This is a block with a <fo:inline font-style="italic">break-before="column"
</fo:inline> break condition. This condition is satisfied if the
first normal area generated by this FO is leading in a column context.
</fo:block>
-
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt">
Break conditions are imposed by the break-before and break-before
properties. A refined value of page for these traits imposes a break
condition with a context consisting of the page-reference-areas; a
@@ -93,12 +93,12 @@ value of even-page or odd-page imposes a break condition with a
context of even-numbered page-reference-areas or odd-numbered page
reference-areas, respectively; a value of column imposes a break
condition with a context of column-areas. A value of auto in a
-break-before or break-before trait imposes no break condition.
+break-before or break-before trait imposes no break condition.
</fo:block>
-
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt">
Keep conditions are either keep-with-previous, keep-with-next, or
keep-together conditions. A keep-with-previous condition on an
object is satisfied if the first area generated and returned by
@@ -109,22 +109,22 @@ area generated and returned by the formatting object is not
trailing within a context-area, or if there are no following
areas in a pre-order traversal of the area tree. A keep-together
condition is satisfied if all areas generated and returned by
-the formatting object are descendants of a single context-area.
+the formatting object are descendants of a single context-area.
</fo:block>
-
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt"
- color="blue"
- break-before="column">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt"
+ color="blue"
+ break-before="column">
This is a block with a <fo:inline font-style="italic">break-before="column"
</fo:inline> break condition. This condition is satisfied if the
first normal area generated by this FO is leading in a column context.
</fo:block>
-
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt">
Keep conditions are imposed by the "within-page", "within-column",
and "within-line" components of the "keep-with-previous",
"keep-with-next", and "keep-together" properties. The refined value
@@ -135,23 +135,23 @@ with value auto does not impose a keep condition. A "within-page"
component imposes a keep-condition with context consisting of the
page-reference-areas; "within-column", with context consisting of
the column-areas; and "within-line" with context consisting of the
-line-areas.
+line-areas.
</fo:block>
-
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt">
The area tree is constrained to satisfy all break conditions imposed.
Each keep condition must also be satisfied, except when this would
cause a break condition or a stronger keep condition to fail to be
satisfied. If not all of a set of keep conditions of equal strength
can be satisfied, then some maximal satisfiable subset of conditions
of that strength must be satisfied (together with all break conditions
-and maximal subsets of stronger keep conditions, if any).
+and maximal subsets of stronger keep conditions, if any).
</fo:block>
-
+
<fo:block span="all">
- <fo:leader leader-pattern="rule"
+ <fo:leader leader-pattern="rule"
rule-thickness="2.0pt"
leader-length="14cm"
space-before.optimum="0pt"
@@ -160,11 +160,11 @@ and maximal subsets of stronger keep conditions, if any).
end-indent="1cm"
background-color="blue"
color="yellow"/>
- </fo:block>
-
+ </fo:block>
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt">
Keep and break conditions apply to a class of areas, which are typically
page-reference-areas, column-areas, and line-areas. The appropriate class
for a given condition is referred to as a context and an area in this
@@ -176,8 +176,8 @@ of region-master.
</fo:block>
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt">
A keep or break condition is an open statement about a formatting object
and the tree relationships of the areas it generates with the relevant
context-areas. These tree relationships are defined mainly in terms of
@@ -189,35 +189,35 @@ a normal area, nor does any of its ancestor areas up to but not including P.
For any given formatting object, the next formatting object in the flow is
the first formatting object following (in the pre-order traversal order)
which generates and returns normal areas.
- </fo:block>
-
+ </fo:block>
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt"
- color="blue"
- break-after="column">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt"
+ color="blue"
+ break-after="column">
This is a block with a <fo:inline font-style="italic">break-after="column"
</fo:inline> break condition. This condition is satisfied if there is
no next formatting object, <fo:inline font-weight="bold">or</fo:inline> the
first normal area generated by the next FO is leading in a column
context.
</fo:block>
-
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt">
Break conditions are either break-before or break-before conditions.
A break-before condition is satisfied if the first area generated and
returned by the formatting object is leading within a context-area. A
break-before condition depends on the next formatting object in the flow;
it is satisfied if either there is no such next formatting object, or
if the first normal area generated and returned by that formatting
-object is leading in a context-area.
+object is leading in a context-area.
</fo:block>
-
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt">
Break conditions are imposed by the break-before and break-before
properties. A refined value of page for these traits imposes a break
condition with a context consisting of the page-reference-areas; a
@@ -225,12 +225,12 @@ value of even-page or odd-page imposes a break condition with a
context of even-numbered page-reference-areas or odd-numbered page
reference-areas, respectively; a value of column imposes a break
condition with a context of column-areas. A value of auto in a
-break-before or break-before trait imposes no break condition.
+break-before or break-before trait imposes no break condition.
</fo:block>
-
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt">
Keep conditions are either keep-with-previous, keep-with-next, or
keep-together conditions. A keep-with-previous condition on an
object is satisfied if the first area generated and returned by
@@ -241,12 +241,12 @@ area generated and returned by the formatting object is not
trailing within a context-area, or if there are no following
areas in a pre-order traversal of the area tree. A keep-together
condition is satisfied if all areas generated and returned by
-the formatting object are descendants of a single context-area.
+the formatting object are descendants of a single context-area.
</fo:block>
-
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt">
Keep conditions are imposed by the "within-page", "within-column",
and "within-line" components of the "keep-with-previous",
"keep-with-next", and "keep-together" properties. The refined value
@@ -257,33 +257,33 @@ with value auto does not impose a keep condition. A "within-page"
component imposes a keep-condition with context consisting of the
page-reference-areas; "within-column", with context consisting of
the column-areas; and "within-line" with context consisting of the
-line-areas.
+line-areas.
</fo:block>
-
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt"
- color="blue"
- break-after="column">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt"
+ color="blue"
+ break-after="column">
This is a block with a <fo:inline font-style="italic">break-after="column"
</fo:inline> break condition. This condition is satisfied if there is
no next formatting object, <fo:inline font-weight="bold">or</fo:inline> the
first normal area generated by the next FO is leading in a column context.
</fo:block>
-
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt">
The area tree is constrained to satisfy all break conditions imposed.
Each keep condition must also be satisfied, except when this would
cause a break condition or a stronger keep condition to fail to be
satisfied. If not all of a set of keep conditions of equal strength
can be satisfied, then some maximal satisfiable subset of conditions
of that strength must be satisfied (together with all break conditions
-and maximal subsets of stronger keep conditions, if any).
+and maximal subsets of stronger keep conditions, if any).
</fo:block>
- </fo:flow>
+ </fo:flow>
</fo:page-sequence>
</fo:root>
diff --git a/docs/examples/keeps_and_breaks/pagelevel1.fo b/docs/examples/keeps_and_breaks/pagelevel1.fo
index c5ebfa177..3b674ee0f 100644
--- a/docs/examples/keeps_and_breaks/pagelevel1.fo
+++ b/docs/examples/keeps_and_breaks/pagelevel1.fo
@@ -8,14 +8,14 @@ This file addresses breaks in page context.
<fo:layout-master-set>
<!-- layout for all pages -->
<fo:simple-page-master master-name="all"
- page-height="29.7cm"
+ page-height="29.7cm"
page-width="21cm"
- margin-top="1cm"
- margin-bottom="2cm"
- margin-left="2.5cm"
+ margin-top="1cm"
+ margin-bottom="2cm"
+ margin-left="2.5cm"
margin-right="2.5cm">
<fo:region-body
- margin-top="3cm" margin-bottom="2cm"/>
+ margin-top="3cm" margin-bottom="2cm"/>
<fo:region-before extent="3cm"/>
<fo:region-after extent="2cm"/>
</fo:simple-page-master>
@@ -23,16 +23,16 @@ This file addresses breaks in page context.
<fo:page-sequence master-reference="all">
<fo:static-content flow-name="xsl-region-after">
- <fo:block font-size="10pt" text-align="start"
- border-style="solid" border-color="blue" border-width="0.5pt">
- Text excerpt from XSL Candidate Recommendation, 21 Nov 2000.
- </fo:block>
- </fo:static-content>
-
+ <fo:block font-size="10pt" text-align="start"
+ border-style="solid" border-color="blue" border-width="0.5pt">
+ Text excerpt from XSL Candidate Recommendation, 21 Nov 2000.
+ </fo:block>
+ </fo:static-content>
+
<fo:flow flow-name="xsl-region-body">
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt">
Keep and break conditions apply to a class of areas, which are typically
page-reference-areas, column-areas, and line-areas. The appropriate class
for a given condition is referred to as a context and an area in this
@@ -44,8 +44,8 @@ of region-master.
</fo:block>
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt">
A keep or break condition is an open statement about a formatting object
and the tree relationships of the areas it generates with the relevant
context-areas. These tree relationships are defined mainly in terms of
@@ -57,12 +57,12 @@ a normal area, nor does any of its ancestor areas up to but not including P.
For any given formatting object, the next formatting object in the flow is
the first formatting object following (in the pre-order traversal order)
which generates and returns normal areas.
- </fo:block>
-
+ </fo:block>
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt"
- break-after="page">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt"
+ break-after="page">
<fo:inline color="red">break-after="page"</fo:inline>
Break conditions are either break-before or break-after conditions.
A break-before condition is satisfied if the first area generated and
@@ -70,12 +70,12 @@ returned by the formatting object is leading within a context-area. A
break-after condition depends on the next formatting object in the flow;
it is satisfied if either there is no such next formatting object, or
if the first normal area generated and returned by that formatting
-object is leading in a context-area.
+object is leading in a context-area.
</fo:block>
-
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt">
Break conditions are imposed by the break-before and break-after
properties. A refined value of page for these traits imposes a break
condition with a context consisting of the page-reference-areas; a
@@ -83,12 +83,12 @@ value of even-page or odd-page imposes a break condition with a
context of even-numbered page-reference-areas or odd-numbered page
reference-areas, respectively; a value of column imposes a break
condition with a context of column-areas. A value of auto in a
-break-before or break-after trait imposes no break condition.
+break-before or break-after trait imposes no break condition.
</fo:block>
-
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt">
Keep conditions are either keep-with-previous, keep-with-next, or
keep-together conditions. A keep-with-previous condition on an
object is satisfied if the first area generated and returned by
@@ -99,12 +99,12 @@ area generated and returned by the formatting object is not
trailing within a context-area, or if there are no following
areas in a pre-order traversal of the area tree. A keep-together
condition is satisfied if all areas generated and returned by
-the formatting object are descendants of a single context-area.
+the formatting object are descendants of a single context-area.
</fo:block>
-
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt">
Keep conditions are imposed by the "within-page", "within-column",
and "within-line" components of the "keep-with-previous",
"keep-with-next", and "keep-together" properties. The refined value
@@ -115,13 +115,13 @@ with value auto does not impose a keep condition. A "within-page"
component imposes a keep-condition with context consisting of the
page-reference-areas; "within-column", with context consisting of
the column-areas; and "within-line" with context consisting of the
-line-areas.
+line-areas.
</fo:block>
-
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt"
- break-before="page">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt"
+ break-before="page">
<fo:inline color="red">break-before="page"</fo:inline>
The area tree is constrained to satisfy all break conditions imposed.
Each keep condition must also be satisfied, except when this would
@@ -129,9 +129,9 @@ cause a break condition or a stronger keep condition to fail to be
satisfied. If not all of a set of keep conditions of equal strength
can be satisfied, then some maximal satisfiable subset of conditions
of that strength must be satisfied (together with all break conditions
-and maximal subsets of stronger keep conditions, if any).
+and maximal subsets of stronger keep conditions, if any).
</fo:block>
-
+
</fo:flow>
</fo:page-sequence>
</fo:root>
diff --git a/docs/examples/keeps_and_breaks/pagelevel2.fo b/docs/examples/keeps_and_breaks/pagelevel2.fo
index a5069b6c2..9018a3d25 100644
--- a/docs/examples/keeps_and_breaks/pagelevel2.fo
+++ b/docs/examples/keeps_and_breaks/pagelevel2.fo
@@ -8,14 +8,14 @@ This file addresses break-after's in page context.
<fo:layout-master-set>
<!-- layout for all pages -->
<fo:simple-page-master master-name="all"
- page-height="29.7cm"
+ page-height="29.7cm"
page-width="21cm"
- margin-top="1cm"
- margin-bottom="2cm"
- margin-left="2.5cm"
+ margin-top="1cm"
+ margin-bottom="2cm"
+ margin-left="2.5cm"
margin-right="2.5cm">
<fo:region-body
- margin-top="3cm" margin-bottom="2cm"/>
+ margin-top="3cm" margin-bottom="2cm"/>
<fo:region-before extent="3cm"/>
<fo:region-after extent="2cm"/>
</fo:simple-page-master>
@@ -23,17 +23,17 @@ This file addresses break-after's in page context.
<fo:page-sequence master-reference="all">
<fo:static-content flow-name="xsl-region-after">
- <fo:block font-size="10pt" text-align="start"
- border-style="solid" border-color="blue" border-width="0.5pt"
- space-before.optimum="6pt">
- Text excerpt from XSL Candidate Recommendation, 21 Nov 2000.
- </fo:block>
- </fo:static-content>
-
+ <fo:block font-size="10pt" text-align="start"
+ border-style="solid" border-color="blue" border-width="0.5pt"
+ space-before.optimum="6pt">
+ Text excerpt from XSL Candidate Recommendation, 21 Nov 2000.
+ </fo:block>
+ </fo:static-content>
+
<fo:flow flow-name="xsl-region-body">
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt">
Keep and break conditions apply to a class of areas, which are typically
page-reference-areas, column-areas, and line-areas. The appropriate class
for a given condition is referred to as a context and an area in this
@@ -45,8 +45,8 @@ of region-master.
</fo:block>
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt">
A keep or break condition is an open statement about a formatting object
and the tree relationships of the areas it generates with the relevant
context-areas. These tree relationships are defined mainly in terms of
@@ -58,35 +58,35 @@ a normal area, nor does any of its ancestor areas up to but not including P.
For any given formatting object, the next formatting object in the flow is
the first formatting object following (in the pre-order traversal order)
which generates and returns normal areas.
- </fo:block>
-
+ </fo:block>
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt">
Break conditions are either break-before or break-after conditions.
A break-before condition is satisfied if the first area generated and
returned by the formatting object is leading within a context-area. A
break-after condition depends on the next formatting object in the flow;
it is satisfied if either there is no such next formatting object, or
if the first normal area generated and returned by that formatting
-object is leading in a context-area.
+object is leading in a context-area.
</fo:block>
-
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt"
- color="blue"
- break-after="even-page">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt"
+ color="blue"
+ break-after="even-page">
This is a block with a <fo:inline font-style="italic">break-after="even-page"
</fo:inline> break condition. This condition is satisfied if there is
no next formatting object, <fo:inline font-weight="bold">or</fo:inline> the
first normal area generated by the next FO is leading in an even-page
context.
</fo:block>
-
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt">
Break conditions are imposed by the break-before and break-after
properties. A refined value of page for these traits imposes a break
condition with a context consisting of the page-reference-areas; a
@@ -94,12 +94,12 @@ value of even-page or odd-page imposes a break condition with a
context of even-numbered page-reference-areas or odd-numbered page
reference-areas, respectively; a value of column imposes a break
condition with a context of column-areas. A value of auto in a
-break-before or break-after trait imposes no break condition.
+break-before or break-after trait imposes no break condition.
</fo:block>
-
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt">
Keep conditions are either keep-with-previous, keep-with-next, or
keep-together conditions. A keep-with-previous condition on an
object is satisfied if the first area generated and returned by
@@ -110,24 +110,24 @@ area generated and returned by the formatting object is not
trailing within a context-area, or if there are no following
areas in a pre-order traversal of the area tree. A keep-together
condition is satisfied if all areas generated and returned by
-the formatting object are descendants of a single context-area.
+the formatting object are descendants of a single context-area.
</fo:block>
-
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt"
- color="blue"
- break-after="even-page">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt"
+ color="blue"
+ break-after="even-page">
This is a block with a <fo:inline font-style="italic">break-after="even-page"
</fo:inline> break condition. This condition is satisfied if there is
no next formatting object, <fo:inline font-weight="bold">or</fo:inline> the
first normal area generated by the next FO is leading in an even-page
context.
</fo:block>
-
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt">
Keep conditions are imposed by the "within-page", "within-column",
and "within-line" components of the "keep-with-previous",
"keep-with-next", and "keep-together" properties. The refined value
@@ -138,23 +138,23 @@ with value auto does not impose a keep condition. A "within-page"
component imposes a keep-condition with context consisting of the
page-reference-areas; "within-column", with context consisting of
the column-areas; and "within-line" with context consisting of the
-line-areas.
+line-areas.
</fo:block>
-
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt">
The area tree is constrained to satisfy all break conditions imposed.
Each keep condition must also be satisfied, except when this would
cause a break condition or a stronger keep condition to fail to be
satisfied. If not all of a set of keep conditions of equal strength
can be satisfied, then some maximal satisfiable subset of conditions
of that strength must be satisfied (together with all break conditions
-and maximal subsets of stronger keep conditions, if any).
+and maximal subsets of stronger keep conditions, if any).
</fo:block>
-
+
<fo:block>
- <fo:leader leader-pattern="rule"
+ <fo:leader leader-pattern="rule"
rule-thickness="2.0pt"
leader-length="14cm"
space-before.optimum="0pt"
@@ -163,11 +163,11 @@ and maximal subsets of stronger keep conditions, if any).
end-indent="1cm"
background-color="blue"
color="yellow"/>
- </fo:block>
-
+ </fo:block>
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt">
Keep and break conditions apply to a class of areas, which are typically
page-reference-areas, column-areas, and line-areas. The appropriate class
for a given condition is referred to as a context and an area in this
@@ -179,8 +179,8 @@ of region-master.
</fo:block>
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt">
A keep or break condition is an open statement about a formatting object
and the tree relationships of the areas it generates with the relevant
context-areas. These tree relationships are defined mainly in terms of
@@ -192,35 +192,35 @@ a normal area, nor does any of its ancestor areas up to but not including P.
For any given formatting object, the next formatting object in the flow is
the first formatting object following (in the pre-order traversal order)
which generates and returns normal areas.
- </fo:block>
-
+ </fo:block>
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt"
- color="blue"
- break-after="odd-page">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt"
+ color="blue"
+ break-after="odd-page">
This is a block with a <fo:inline font-style="italic">break-after="odd-page"
</fo:inline> break condition. This condition is satisfied if there is
no next formatting object, <fo:inline font-weight="bold">or</fo:inline> the
first normal area generated by the next FO is leading in an odd-page
context.
</fo:block>
-
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt">
Break conditions are either break-before or break-after conditions.
A break-before condition is satisfied if the first area generated and
returned by the formatting object is leading within a context-area. A
break-after condition depends on the next formatting object in the flow;
it is satisfied if either there is no such next formatting object, or
if the first normal area generated and returned by that formatting
-object is leading in a context-area.
+object is leading in a context-area.
</fo:block>
-
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt">
Break conditions are imposed by the break-before and break-after
properties. A refined value of page for these traits imposes a break
condition with a context consisting of the page-reference-areas; a
@@ -228,12 +228,12 @@ value of even-page or odd-page imposes a break condition with a
context of even-numbered page-reference-areas or odd-numbered page
reference-areas, respectively; a value of column imposes a break
condition with a context of column-areas. A value of auto in a
-break-before or break-after trait imposes no break condition.
+break-before or break-after trait imposes no break condition.
</fo:block>
-
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt">
Keep conditions are either keep-with-previous, keep-with-next, or
keep-together conditions. A keep-with-previous condition on an
object is satisfied if the first area generated and returned by
@@ -244,12 +244,12 @@ area generated and returned by the formatting object is not
trailing within a context-area, or if there are no following
areas in a pre-order traversal of the area tree. A keep-together
condition is satisfied if all areas generated and returned by
-the formatting object are descendants of a single context-area.
+the formatting object are descendants of a single context-area.
</fo:block>
-
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt">
Keep conditions are imposed by the "within-page", "within-column",
and "within-line" components of the "keep-with-previous",
"keep-with-next", and "keep-together" properties. The refined value
@@ -260,34 +260,34 @@ with value auto does not impose a keep condition. A "within-page"
component imposes a keep-condition with context consisting of the
page-reference-areas; "within-column", with context consisting of
the column-areas; and "within-line" with context consisting of the
-line-areas.
+line-areas.
</fo:block>
-
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt"
- color="blue"
- break-after="odd-page">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt"
+ color="blue"
+ break-after="odd-page">
This is a block with a <fo:inline font-style="italic">break-after="odd-page"
</fo:inline> break condition. This condition is satisfied if there is
no next formatting object, <fo:inline font-weight="bold">or</fo:inline> the
first normal area generated by the next FO is leading in an odd-page
context.
</fo:block>
-
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt">
The area tree is constrained to satisfy all break conditions imposed.
Each keep condition must also be satisfied, except when this would
cause a break condition or a stronger keep condition to fail to be
satisfied. If not all of a set of keep conditions of equal strength
can be satisfied, then some maximal satisfiable subset of conditions
of that strength must be satisfied (together with all break conditions
-and maximal subsets of stronger keep conditions, if any).
+and maximal subsets of stronger keep conditions, if any).
</fo:block>
- </fo:flow>
+ </fo:flow>
</fo:page-sequence>
</fo:root>
diff --git a/docs/examples/keeps_and_breaks/pagelevel3.fo b/docs/examples/keeps_and_breaks/pagelevel3.fo
index 2cc73bab5..b329a4519 100644
--- a/docs/examples/keeps_and_breaks/pagelevel3.fo
+++ b/docs/examples/keeps_and_breaks/pagelevel3.fo
@@ -8,14 +8,14 @@ This file addresses break-before's in page context.
<fo:layout-master-set>
<!-- layout for all pages -->
<fo:simple-page-master master-name="all"
- page-height="29.7cm"
+ page-height="29.7cm"
page-width="21cm"
- margin-top="1cm"
- margin-bottom="2cm"
- margin-left="2.5cm"
+ margin-top="1cm"
+ margin-bottom="2cm"
+ margin-left="2.5cm"
margin-right="2.5cm">
<fo:region-body
- margin-top="3cm" margin-bottom="2cm"/>
+ margin-top="3cm" margin-bottom="2cm"/>
<fo:region-before extent="3cm"/>
<fo:region-after extent="2cm"/>
</fo:simple-page-master>
@@ -23,17 +23,17 @@ This file addresses break-before's in page context.
<fo:page-sequence master-reference="all">
<fo:static-content flow-name="xsl-region-after">
- <fo:block font-size="10pt" text-align="start"
- border-style="solid" border-color="blue" border-width="0.5pt"
- space-before.optimum="6pt">
- Text excerpt from XSL Candidate Recommendation, 21 Nov 2000.
- </fo:block>
- </fo:static-content>
-
+ <fo:block font-size="10pt" text-align="start"
+ border-style="solid" border-color="blue" border-width="0.5pt"
+ space-before.optimum="6pt">
+ Text excerpt from XSL Candidate Recommendation, 21 Nov 2000.
+ </fo:block>
+ </fo:static-content>
+
<fo:flow flow-name="xsl-region-body">
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt">
Keep and break conditions apply to a class of areas, which are typically
page-reference-areas, column-areas, and line-areas. The appropriate class
for a given condition is referred to as a context and an area in this
@@ -45,8 +45,8 @@ of region-master.
</fo:block>
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt">
A keep or break condition is an open statement about a formatting object
and the tree relationships of the areas it generates with the relevant
context-areas. These tree relationships are defined mainly in terms of
@@ -58,34 +58,34 @@ a normal area, nor does any of its ancestor areas up to but not including P.
For any given formatting object, the next formatting object in the flow is
the first formatting object following (in the pre-order traversal order)
which generates and returns normal areas.
- </fo:block>
-
+ </fo:block>
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt">
Break conditions are either break-before or break-before conditions.
A break-before condition is satisfied if the first area generated and
returned by the formatting object is leading within a context-area. A
break-before condition depends on the next formatting object in the flow;
it is satisfied if either there is no such next formatting object, or
if the first normal area generated and returned by that formatting
-object is leading in a context-area.
+object is leading in a context-area.
</fo:block>
-
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt"
- color="blue"
- break-before="even-page">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt"
+ color="blue"
+ break-before="even-page">
This is a block with a <fo:inline font-style="italic">break-before="even-page"
</fo:inline> break condition. This condition is satisfied if the
first normal area generated by this FO is leading in an even-page
context.
</fo:block>
-
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt">
Break conditions are imposed by the break-before and break-before
properties. A refined value of page for these traits imposes a break
condition with a context consisting of the page-reference-areas; a
@@ -93,12 +93,12 @@ value of even-page or odd-page imposes a break condition with a
context of even-numbered page-reference-areas or odd-numbered page
reference-areas, respectively; a value of column imposes a break
condition with a context of column-areas. A value of auto in a
-break-before or break-before trait imposes no break condition.
+break-before or break-before trait imposes no break condition.
</fo:block>
-
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt">
Keep conditions are either keep-with-previous, keep-with-next, or
keep-together conditions. A keep-with-previous condition on an
object is satisfied if the first area generated and returned by
@@ -109,23 +109,23 @@ area generated and returned by the formatting object is not
trailing within a context-area, or if there are no following
areas in a pre-order traversal of the area tree. A keep-together
condition is satisfied if all areas generated and returned by
-the formatting object are descendants of a single context-area.
+the formatting object are descendants of a single context-area.
</fo:block>
-
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt"
- color="blue"
- break-before="even-page">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt"
+ color="blue"
+ break-before="even-page">
This is a block with a <fo:inline font-style="italic">break-before="even-page"
</fo:inline> break condition. This condition is satisfied if the
first normal area generated by this FO is leading in an even-page
context.
</fo:block>
-
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt">
Keep conditions are imposed by the "within-page", "within-column",
and "within-line" components of the "keep-with-previous",
"keep-with-next", and "keep-together" properties. The refined value
@@ -136,23 +136,23 @@ with value auto does not impose a keep condition. A "within-page"
component imposes a keep-condition with context consisting of the
page-reference-areas; "within-column", with context consisting of
the column-areas; and "within-line" with context consisting of the
-line-areas.
+line-areas.
</fo:block>
-
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt">
The area tree is constrained to satisfy all break conditions imposed.
Each keep condition must also be satisfied, except when this would
cause a break condition or a stronger keep condition to fail to be
satisfied. If not all of a set of keep conditions of equal strength
can be satisfied, then some maximal satisfiable subset of conditions
of that strength must be satisfied (together with all break conditions
-and maximal subsets of stronger keep conditions, if any).
+and maximal subsets of stronger keep conditions, if any).
</fo:block>
-
+
<fo:block>
- <fo:leader leader-pattern="rule"
+ <fo:leader leader-pattern="rule"
rule-thickness="2.0pt"
leader-length="14cm"
space-before.optimum="0pt"
@@ -161,11 +161,11 @@ and maximal subsets of stronger keep conditions, if any).
end-indent="1cm"
background-color="blue"
color="yellow"/>
- </fo:block>
-
+ </fo:block>
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt">
Keep and break conditions apply to a class of areas, which are typically
page-reference-areas, column-areas, and line-areas. The appropriate class
for a given condition is referred to as a context and an area in this
@@ -177,8 +177,8 @@ of region-master.
</fo:block>
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt">
A keep or break condition is an open statement about a formatting object
and the tree relationships of the areas it generates with the relevant
context-areas. These tree relationships are defined mainly in terms of
@@ -190,34 +190,34 @@ a normal area, nor does any of its ancestor areas up to but not including P.
For any given formatting object, the next formatting object in the flow is
the first formatting object following (in the pre-order traversal order)
which generates and returns normal areas.
- </fo:block>
-
+ </fo:block>
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt"
- color="blue"
- break-before="odd-page">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt"
+ color="blue"
+ break-before="odd-page">
This is a block with a <fo:inline font-style="italic">break-before="odd-page"
</fo:inline> break condition. This condition is satisfied if the
first normal area generated by this FO is leading in an odd-page
context.
</fo:block>
-
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt">
Break conditions are either break-before or break-before conditions.
A break-before condition is satisfied if the first area generated and
returned by the formatting object is leading within a context-area. A
break-before condition depends on the next formatting object in the flow;
it is satisfied if either there is no such next formatting object, or
if the first normal area generated and returned by that formatting
-object is leading in a context-area.
+object is leading in a context-area.
</fo:block>
-
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt">
Break conditions are imposed by the break-before and break-before
properties. A refined value of page for these traits imposes a break
condition with a context consisting of the page-reference-areas; a
@@ -225,12 +225,12 @@ value of even-page or odd-page imposes a break condition with a
context of even-numbered page-reference-areas or odd-numbered page
reference-areas, respectively; a value of column imposes a break
condition with a context of column-areas. A value of auto in a
-break-before or break-before trait imposes no break condition.
+break-before or break-before trait imposes no break condition.
</fo:block>
-
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt">
Keep conditions are either keep-with-previous, keep-with-next, or
keep-together conditions. A keep-with-previous condition on an
object is satisfied if the first area generated and returned by
@@ -241,12 +241,12 @@ area generated and returned by the formatting object is not
trailing within a context-area, or if there are no following
areas in a pre-order traversal of the area tree. A keep-together
condition is satisfied if all areas generated and returned by
-the formatting object are descendants of a single context-area.
+the formatting object are descendants of a single context-area.
</fo:block>
-
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt">
Keep conditions are imposed by the "within-page", "within-column",
and "within-line" components of the "keep-with-previous",
"keep-with-next", and "keep-together" properties. The refined value
@@ -257,33 +257,33 @@ with value auto does not impose a keep condition. A "within-page"
component imposes a keep-condition with context consisting of the
page-reference-areas; "within-column", with context consisting of
the column-areas; and "within-line" with context consisting of the
-line-areas.
+line-areas.
</fo:block>
-
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt"
- color="blue"
- break-before="odd-page">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt"
+ color="blue"
+ break-before="odd-page">
This is a block with a <fo:inline font-style="italic">break-before="odd-page"
</fo:inline> break condition. This condition is satisfied if the
first normal area generated by this FO is leading in an odd-page
context.
</fo:block>
-
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt">
The area tree is constrained to satisfy all break conditions imposed.
Each keep condition must also be satisfied, except when this would
cause a break condition or a stronger keep condition to fail to be
satisfied. If not all of a set of keep conditions of equal strength
can be satisfied, then some maximal satisfiable subset of conditions
of that strength must be satisfied (together with all break conditions
-and maximal subsets of stronger keep conditions, if any).
+and maximal subsets of stronger keep conditions, if any).
</fo:block>
- </fo:flow>
+ </fo:flow>
</fo:page-sequence>
</fo:root>
diff --git a/docs/examples/keeps_and_breaks/pagelevel4.fo b/docs/examples/keeps_and_breaks/pagelevel4.fo
index 22fd1c0eb..cd7f454a9 100644
--- a/docs/examples/keeps_and_breaks/pagelevel4.fo
+++ b/docs/examples/keeps_and_breaks/pagelevel4.fo
@@ -9,15 +9,15 @@ This file addresses breaks in page context, with a
<fo:layout-master-set>
<!-- layout for all pages -->
<fo:simple-page-master master-name="all"
- page-height="29.7cm"
+ page-height="29.7cm"
page-width="21cm"
- margin-top="1cm"
- margin-bottom="2cm"
- margin-left="2.5cm"
+ margin-top="1cm"
+ margin-bottom="2cm"
+ margin-left="2.5cm"
margin-right="2.5cm">
<fo:region-body
- margin-top="3cm" margin-bottom="2cm"
- column-count="2" column-gap="0.25in"/>
+ margin-top="3cm" margin-bottom="2cm"
+ column-count="2" column-gap="0.25in"/>
<fo:region-before extent="3cm"/>
<fo:region-after extent="2cm"/>
</fo:simple-page-master>
@@ -25,17 +25,17 @@ This file addresses breaks in page context, with a
<fo:page-sequence master-reference="all">
<fo:static-content flow-name="xsl-region-after">
- <fo:block font-size="10pt" text-align="start"
- border-style="solid" border-color="blue" border-width="0.5pt"
- space-before.optimum="6pt">
- Text excerpt from XSL Candidate Recommendation, 21 Nov 2000.
- </fo:block>
- </fo:static-content>
-
+ <fo:block font-size="10pt" text-align="start"
+ border-style="solid" border-color="blue" border-width="0.5pt"
+ space-before.optimum="6pt">
+ Text excerpt from XSL Candidate Recommendation, 21 Nov 2000.
+ </fo:block>
+ </fo:static-content>
+
<fo:flow flow-name="xsl-region-body">
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt">
Keep and break conditions apply to a class of areas, which are typically
page-reference-areas, column-areas, and line-areas. The appropriate class
for a given condition is referred to as a context and an area in this
@@ -47,8 +47,8 @@ of region-master.
</fo:block>
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt">
A keep or break condition is an open statement about a formatting object
and the tree relationships of the areas it generates with the relevant
context-areas. These tree relationships are defined mainly in terms of
@@ -60,34 +60,34 @@ a normal area, nor does any of its ancestor areas up to but not including P.
For any given formatting object, the next formatting object in the flow is
the first formatting object following (in the pre-order traversal order)
which generates and returns normal areas.
- </fo:block>
-
+ </fo:block>
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt">
Break conditions are either break-before or break-before conditions.
A break-before condition is satisfied if the first area generated and
returned by the formatting object is leading within a context-area. A
break-before condition depends on the next formatting object in the flow;
it is satisfied if either there is no such next formatting object, or
if the first normal area generated and returned by that formatting
-object is leading in a context-area.
+object is leading in a context-area.
</fo:block>
-
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt"
- color="blue"
- break-before="even-page">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt"
+ color="blue"
+ break-before="even-page">
This is a block with a <fo:inline font-style="italic">break-before="even-page"
</fo:inline> break condition. This condition is satisfied if the
first normal area generated by this FO is leading in an even-page
context.
</fo:block>
-
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt">
Break conditions are imposed by the break-before and break-before
properties. A refined value of page for these traits imposes a break
condition with a context consisting of the page-reference-areas; a
@@ -95,12 +95,12 @@ value of even-page or odd-page imposes a break condition with a
context of even-numbered page-reference-areas or odd-numbered page
reference-areas, respectively; a value of column imposes a break
condition with a context of column-areas. A value of auto in a
-break-before or break-before trait imposes no break condition.
+break-before or break-before trait imposes no break condition.
</fo:block>
-
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt">
Keep conditions are either keep-with-previous, keep-with-next, or
keep-together conditions. A keep-with-previous condition on an
object is satisfied if the first area generated and returned by
@@ -111,23 +111,23 @@ area generated and returned by the formatting object is not
trailing within a context-area, or if there are no following
areas in a pre-order traversal of the area tree. A keep-together
condition is satisfied if all areas generated and returned by
-the formatting object are descendants of a single context-area.
+the formatting object are descendants of a single context-area.
</fo:block>
-
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt"
- color="blue"
- break-before="even-page">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt"
+ color="blue"
+ break-before="even-page">
This is a block with a <fo:inline font-style="italic">break-before="even-page"
</fo:inline> break condition. This condition is satisfied if the
first normal area generated by this FO is leading in an even-page
context.
</fo:block>
-
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt">
Keep conditions are imposed by the "within-page", "within-column",
and "within-line" components of the "keep-with-previous",
"keep-with-next", and "keep-together" properties. The refined value
@@ -138,23 +138,23 @@ with value auto does not impose a keep condition. A "within-page"
component imposes a keep-condition with context consisting of the
page-reference-areas; "within-column", with context consisting of
the column-areas; and "within-line" with context consisting of the
-line-areas.
+line-areas.
</fo:block>
-
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt">
The area tree is constrained to satisfy all break conditions imposed.
Each keep condition must also be satisfied, except when this would
cause a break condition or a stronger keep condition to fail to be
satisfied. If not all of a set of keep conditions of equal strength
can be satisfied, then some maximal satisfiable subset of conditions
of that strength must be satisfied (together with all break conditions
-and maximal subsets of stronger keep conditions, if any).
+and maximal subsets of stronger keep conditions, if any).
</fo:block>
-
+
<fo:block span="all">
- <fo:leader leader-pattern="rule"
+ <fo:leader leader-pattern="rule"
rule-thickness="2.0pt"
leader-length="14cm"
space-before.optimum="0pt"
@@ -163,11 +163,11 @@ and maximal subsets of stronger keep conditions, if any).
end-indent="1cm"
background-color="blue"
color="yellow"/>
- </fo:block>
-
+ </fo:block>
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt">
Keep and break conditions apply to a class of areas, which are typically
page-reference-areas, column-areas, and line-areas. The appropriate class
for a given condition is referred to as a context and an area in this
@@ -179,8 +179,8 @@ of region-master.
</fo:block>
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt">
A keep or break condition is an open statement about a formatting object
and the tree relationships of the areas it generates with the relevant
context-areas. These tree relationships are defined mainly in terms of
@@ -192,34 +192,34 @@ a normal area, nor does any of its ancestor areas up to but not including P.
For any given formatting object, the next formatting object in the flow is
the first formatting object following (in the pre-order traversal order)
which generates and returns normal areas.
- </fo:block>
-
+ </fo:block>
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt"
- color="blue"
- break-before="odd-page">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt"
+ color="blue"
+ break-before="odd-page">
This is a block with a <fo:inline font-style="italic">break-before="odd-page"
</fo:inline> break condition. This condition is satisfied if the
first normal area generated by this FO is leading in an odd-page
context.
</fo:block>
-
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt">
Break conditions are either break-before or break-before conditions.
A break-before condition is satisfied if the first area generated and
returned by the formatting object is leading within a context-area. A
break-before condition depends on the next formatting object in the flow;
it is satisfied if either there is no such next formatting object, or
if the first normal area generated and returned by that formatting
-object is leading in a context-area.
+object is leading in a context-area.
</fo:block>
-
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt">
Break conditions are imposed by the break-before and break-before
properties. A refined value of page for these traits imposes a break
condition with a context consisting of the page-reference-areas; a
@@ -227,12 +227,12 @@ value of even-page or odd-page imposes a break condition with a
context of even-numbered page-reference-areas or odd-numbered page
reference-areas, respectively; a value of column imposes a break
condition with a context of column-areas. A value of auto in a
-break-before or break-before trait imposes no break condition.
+break-before or break-before trait imposes no break condition.
</fo:block>
-
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt">
Keep conditions are either keep-with-previous, keep-with-next, or
keep-together conditions. A keep-with-previous condition on an
object is satisfied if the first area generated and returned by
@@ -243,12 +243,12 @@ area generated and returned by the formatting object is not
trailing within a context-area, or if there are no following
areas in a pre-order traversal of the area tree. A keep-together
condition is satisfied if all areas generated and returned by
-the formatting object are descendants of a single context-area.
+the formatting object are descendants of a single context-area.
</fo:block>
-
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt">
Keep conditions are imposed by the "within-page", "within-column",
and "within-line" components of the "keep-with-previous",
"keep-with-next", and "keep-together" properties. The refined value
@@ -259,33 +259,33 @@ with value auto does not impose a keep condition. A "within-page"
component imposes a keep-condition with context consisting of the
page-reference-areas; "within-column", with context consisting of
the column-areas; and "within-line" with context consisting of the
-line-areas.
+line-areas.
</fo:block>
-
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt"
- color="blue"
- break-before="odd-page">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt"
+ color="blue"
+ break-before="odd-page">
This is a block with a <fo:inline font-style="italic">break-before="odd-page"
</fo:inline> break condition. This condition is satisfied if the
first normal area generated by this FO is leading in an odd-page
context.
</fo:block>
-
+
<fo:block
- font-size="14pt" font-family="sans-serif"
- line-height="18pt" space-after.optimum="15pt">
+ font-size="14pt" font-family="sans-serif"
+ line-height="18pt" space-after.optimum="15pt">
The area tree is constrained to satisfy all break conditions imposed.
Each keep condition must also be satisfied, except when this would
cause a break condition or a stronger keep condition to fail to be
satisfied. If not all of a set of keep conditions of equal strength
can be satisfied, then some maximal satisfiable subset of conditions
of that strength must be satisfied (together with all break conditions
-and maximal subsets of stronger keep conditions, if any).
+and maximal subsets of stronger keep conditions, if any).
</fo:block>
- </fo:flow>
+ </fo:flow>
</fo:page-sequence>
</fo:root>