<fo:block text-align="start">DESCRIPTION</fo:block>
</fo:table-cell>
<fo:table-cell border-width="1pt" border-color="blue" border-style="solid" padding="3pt">
- <fo:block text-align="centered">RATE</fo:block>
+ <fo:block text-align="center">RATE</fo:block>
</fo:table-cell>
<fo:table-cell border-width="1pt" border-color="orange" border-style="solid" padding="2pt">
- <fo:block text-align="centered">AMOUNT</fo:block>
+ <fo:block text-align="center">AMOUNT</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row line-height="12pt">
<fo:flow>
<fo:block>A Block</fo:block>
<fo:block text-align="end">An End Aligned Block</fo:block>
-<fo:block text-align="centered">A Centered Block</fo:block>
+<fo:block text-align="center">A Centered Block</fo:block>
<fo:block>This is a multiple line block that extends over more than one line. There should be appropriate line breaks. Alignment is default.</fo:block>
<fo:block text-align="end">This is a multiple line block that extends over more than one line. There should be appropriate line breaks. Alignment is end.</fo:block>
-<fo:block text-align="centered">This is a multiple line block that extends over more than one line. There should be appropriate line breaks. Alignment is centered.</fo:block>
-<fo:block text-align="justified">This is a multiple line block that extends over more than one line. There should be appropriate line breaks. I'm going to keep going so I can get three lines to check how all but the last justify. There, that should do it. Alignment is justified.</fo:block>
+<fo:block text-align="center">This is a multiple line block that extends over more than one line. There should be appropriate line breaks. Alignment is centered.</fo:block>
+<fo:block text-align="justify">This is a multiple line block that extends over more than one line. There should be appropriate line breaks. I'm going to keep going so I can get three lines to check how all but the last justify. There, that should do it. Alignment is justified.</fo:block>
<fo:block>A block for comparison</fo:block>
<fo:block space-before.optimum="12pt">A block with 12pt space-before</fo:block>
<fo:block>A block for comparison</fo:block>
<fo:block space-before.optimum="12pt" space-after.optimum="12pt" start-indent="50pt">And again for the page break, text before<fo:block space-before.optimum="12pt" space-after.optimum="12pt">A block within a block with 50pt start-intent</fo:block>Text after</fo:block>
<fo:block space-before.optimum="12pt" space-after.optimum="12pt" start-indent="50pt">Text before<fo:block space-before.optimum="12pt" space-after.optimum="12pt">A block with 50pt start-indent within a block with 50pt start-intent</fo:block>Text after</fo:block>
<fo:block space-before.optimum="12pt" space-after.optimum="12pt" start-indent="50pt">Text before<fo:block space-before.optimum="12pt" space-after.optimum="12pt" start-indent="100pt">A block with 100pt start-indent within a block with 50pt start-intent</fo:block>Text after</fo:block>
-<fo:list-block provisional-distance-between-starts="12pt" space-before.optimum="12pt" text-align="justified">
+<fo:list-block provisional-distance-between-starts="12pt" space-before.optimum="12pt" text-align="justify">
<fo:list-item>
<fo:list-item-label><fo:block>•</fo:block></fo:list-item-label>
<fo:list-item-body><fo:block>This is a multiple line block that extends over more than one line. There should be appropriate line breaks.</fo:block></fo:list-item-body>
<fo:list-item-body><fo:block>This is a multiple line block that extends over more than one line. There should be appropriate line breaks.</fo:block><fo:block>This is a multiple line block that extends over more than one line. There should be appropriate line breaks.</fo:block><fo:block>This is a multiple line block that extends over more than one line. There should be appropriate line breaks.</fo:block></fo:list-item-body>
</fo:list-item>
</fo:list-block>
-<fo:list-block start-indent="50pt" provisional-distance-between-starts="12pt" space-before.optimum="12pt" text-align="justified">
+<fo:list-block start-indent="50pt" provisional-distance-between-starts="12pt" space-before.optimum="12pt" text-align="justify">
<fo:list-item>
<fo:list-item-label><fo:block>•</fo:block></fo:list-item-label>
<fo:list-item-body><fo:block>This is a multiple line block that extends over more than one line. There should be appropriate line breaks. The list-block has a start-indent of 50pt and a text-align of justified.</fo:block></fo:list-item-body>
<fo:list-item-body><fo:block>This is a multiple line block that extends over more than one line. There should be appropriate line breaks.</fo:block><fo:block>This is a second multiple line block that extends over more than one line. There should be appropriate line breaks.</fo:block><fo:block>This is a third multiple line block that extends over more than one line. There should be appropriate line breaks.</fo:block></fo:list-item-body>
</fo:list-item>
</fo:list-block>
-<fo:list-block provisional-distance-between-starts="12pt" space-before.optimum="12pt" text-align="justified">
+<fo:list-block provisional-distance-between-starts="12pt" space-before.optimum="12pt" text-align="justify">
<fo:list-item>
<fo:list-item-label><fo:block>•</fo:block></fo:list-item-label>
<fo:list-item-body><fo:block>This is a multiple line block that extends over more than one line. There should be appropriate line breaks.</fo:block><fo:block start-indent="100pt">This is a multiple line block with start-indent 100pt that extends over more than one line. There should be appropriate line breaks.</fo:block><fo:block>This is a multiple line block that extends over more than one line. There should be appropriate line breaks.</fo:block></fo:list-item-body>
<?xml version="1.0" encoding="utf-8"?>
-<fo:root font-family="Times Roman" font-size="12pt" text-align="justified" xmlns:fo="http://www.w3.org/1999/XSL/Format">
+<fo:root font-family="Times Roman" font-size="12pt" text-align="justify" xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master master-name="right"
margin-top="75pt" margin-bottom="25pt" margin-left="100pt" margin-right="50pt">
<fo:page-sequence id="N2528" master-name="psmOddEven">
<fo:static-content flow-name="xsl-after">
- <fo:block text-align-last="centered" font-size="10pt">
+ <fo:block text-align-last="center" font-size="10pt">
<fo:page-number/>
</fo:block>
</fo:static-content>
<fo:page-sequence id="N2561" master-name="psmOddEven">
<fo:static-content flow-name="xsl-after">
-<fo:block text-align-last="centered" font-size="10pt"><fo:page-number/></fo:block></fo:static-content><fo:flow><fo:block font-size="18pt" font-weight="bold">A. Appendix</fo:block></fo:flow></fo:page-sequence></fo:root>
+<fo:block text-align-last="center" font-size="10pt"><fo:page-number/></fo:block></fo:static-content><fo:flow><fo:block font-size="18pt" font-weight="bold">A. Appendix</fo:block></fo:flow></fo:page-sequence></fo:root>
<fo:flow flow-name="xsl-body">
<!-- Normal text -->
- <fo:block text-align="centered">1. <fo:simple-link external-destination="normal.pdf">normal.pdf</fo:simple-link>
+ <fo:block text-align="center">0. Normal text without link
+ </fo:block>
+
+
+ <!-- Normal text -->
+ <fo:block text-align="center"
+ font-family="serif">1. <fo:simple-link external-destination="normal.pdf">normal.pdf</fo:simple-link>
</fo:block>
<!-- Normal text -->
- <fo:block text-align="centered">---</fo:block>
+ <fo:block text-align="center">---</fo:block>
<!-- Normal text -->
- <fo:block text-align="centered">
+ <fo:block text-align="center">
2. A one line example (text-align='start'): <fo:simple-link external-destination="normal.pdf">normal.pdf</fo:simple-link>
</fo:block>
<!-- Normal text -->
- <fo:block text-align="centered">---</fo:block>
+ <fo:block text-align="center">---</fo:block>
<!-- Normal text -->
- <fo:block text-align="start">
+ <fo:block text-align="start" hyphenate="true">
3. A multiline text (text-align='start'). The Extensible Markup Language (XML) is a subset of SGML that is completely described in this document. Its goal is to
enable generic SGML to be served, received, and processed on the Web in the way that is now possible with HTML. XML
has been designed for ease of implementation and for interoperability with both SGML and HTML. For further information
</fo:block>
<!-- Normal text -->
- <fo:block text-align="centered">---</fo:block>
+ <fo:block text-align="center">---</fo:block>
<!-- Normal text -->
- <fo:block text-align="centered">
+ <fo:block text-align="center">
4. A multiline text (text-align='centered'). The Extensible Markup Language (XML) is a subset of SGML that is completely described in this document. Its goal is to
enable generic SGML to be served, received, and processed on the Web in the way that is now possible with HTML. XML
has been designed for ease of implementation and for interoperability with both SGML and HTML. For further information
</fo:block>
<!-- Normal text -->
- <fo:block text-align="centered">---</fo:block>
+ <fo:block text-align="center">---</fo:block>
<!-- Normal text -->
<fo:block text-align="end">
</fo:block>
<!-- Normal text -->
- <fo:block text-align="centered">---</fo:block>
+ <fo:block text-align="center">---</fo:block>
<!-- Normal text -->
<fo:block text-align="start"
<?xml version="1.0" encoding="utf-8"?>
+<!-- example for a simple fo file. At the beginning the page layout is set.
+Below fo:root there is always
+- a single fo:layout-master-set which defines one or more page layouts
+- an optional fo:declarations,
+- and a sequence of one or more fo:page-sequences containing the text and formatting instructions -->
+
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <!-- defines page layout -->
<fo:layout-master-set>
+ <!-- fo:layout-master-set defines in its children the page layout:
+ the pagination and layout specifications
+ - page-masters: have the role of describing the intended subdivisions
+ of a page and the geometry of these subdivisions
+ - page-sequence-masters: have the role of describing the sequence
+ of page-masters that will be used to generate
+ pages during the formatting of an fo:page-sequence
+
+ -->
<!-- layout for the first page -->
<fo:simple-page-master master-name="first"
space-after.optimum="15pt"
background-color="blue"
color="white"
- text-align="centered"
+ text-align="center"
padding-top="3pt">
Extensible Markup Language (XML) 1.0
</fo:block>
<fo:flow flow-name="xsl-body">
-<fo:block font-size="18pt" font-family="sans-serif" line-height="24pt" space-after.optimum="15pt" background-color="blue" color="white" text-align="centered" padding-top="3pt">FOP: An Open-Source XSL Formatter and Renderer</fo:block>
+<fo:block font-size="18pt" font-family="sans-serif" line-height="24pt" space-after.optimum="15pt" background-color="blue" color="white" text-align="center" padding-top="3pt">FOP: An Open-Source XSL Formatter and Renderer</fo:block>
<fo:block id="sec1" font-size="18pt" font-family="serif" line-height="20pt" space-before.optimum="20pt" space-after.optimum="14pt" >A)
What is FOP?</fo:block>
<fo:block space-after.optimum="3pt" font-family="serif">FOP is the world's first print formatter driven by XSL formatting