|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207 |
- <?xml version="1.0" standalone="no"?>
- <!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- -->
- <!-- $Id$ -->
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
- xmlns:fox="http://xmlgraphics.apache.org/fop/extensions" language="en" country="GB">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="page"
- page-height="220pt" page-width="320pt" margin="10pt">
- <fo:region-body column-count="2" margin-top="15pt"/>
- <fo:region-before extent="12pt"/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="page">
- <fo:static-content flow-name="xsl-region-before">
- <fo:block font-size="8pt" text-align-last="justify">This is the page header<fo:leader/>Page
- <fo:page-number/></fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-footnote-separator">
- <fo:block><fo:leader leader-length="100pt" leader-pattern="rule"/></fo:block>
- </fo:static-content>
- <fo:flow flow-name="xsl-region-body" hyphenate="true" text-align="justify">
- <fo:block>(There’s another page sequence <fo:wrapper color="blue"><fo:basic-link
- internal-destination="second">below</fo:basic-link></fo:wrapper>.)</fo:block>
- <fo:block font-family="sans-serif" font-weight="bold" space-before="1em" space-after="0.2em"
- role="H1"><fo:block>About Apache FOP</fo:block></fo:block>
- <fo:block>It is a print formatter driven by XSL formatting objects (XSL-FO) and an output
- independent formatter<fo:footnote><fo:inline baseline-shift="super"
- font-size="70%">1</fo:inline><fo:footnote-body><fo:block>See the <fo:wrapper
- color="blue"><fo:basic-link
- external-destination="http://xmlgraphics.apache.org/fop/">FOP
- website</fo:basic-link></fo:wrapper> for more
- information</fo:block></fo:footnote-body></fo:footnote>. FOP has a nice logo:
- <fo:external-graphic src="../../resources/images/fop-logo-color-24bit.png"
- inline-progression-dimension.maximum="100%" content-width="scale-to-fit"
- fox:alt-text="FOP Logo"/></fo:block>
- <fo:table space-before="10pt" space-after="10pt" width="100%" table-layout="fixed">
- <fo:table-header>
- <fo:table-row>
- <fo:table-cell border="2pt solid black" padding="2pt 2pt 0">
- <fo:block>Header 1.1</fo:block>
- </fo:table-cell>
- <fo:table-cell border="2pt solid black" padding="2pt 2pt 0">
- <fo:block>Header 1.2</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-header>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell border="1pt solid black" padding="2pt 2pt 0">
- <fo:block>Cell 1.1</fo:block>
- </fo:table-cell>
- <fo:table-cell border="1pt solid black" padding="2pt 2pt 0">
- <fo:block>Cell 1.2</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell border="1pt solid black" padding="2pt 2pt 0">
- <fo:block>Cell 2.1</fo:block>
- </fo:table-cell>
- <fo:table-cell border="1pt solid black" padding="2pt 2pt 0">
- <fo:block>Cell 2.2</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- <fo:block>Apache FOP (Formatting Objects Processor) is a print formatter driven by XSL
- formatting objects (XSL-FO) and an output independent formatter. It is a Java application
- that reads a formatting object (FO) tree and renders the resulting pages to a specified
- output.</fo:block>
- <fo:block span="all" border-top="1pt solid black" border-bottom="1pt solid black"
- padding-before="2pt" padding-after="2pt">This fo:block element spans all the columns of the
- document. This is intended to test the abilities of the text-to-speech program.</fo:block>
- <fo:block>And now we are back to normal content flowing in two columns. Let’s start a numbered
- list:</fo:block>
- <fo:list-block provisional-distance-between-starts="15pt" provisional-label-separation="0mm"
- keep-with-previous="auto">
- <fo:list-item keep-with-previous="always">
- <fo:list-item-label end-indent="label-end()">
- <fo:block>1.</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block>
- <fo:block>Line 1 of item 1</fo:block>
- <fo:block>Line 2 of item 1</fo:block>
- <fo:block>Line 3 of item 1</fo:block>
- </fo:block>
- </fo:list-item-body>
- </fo:list-item>
- <fo:list-item keep-with-previous="always">
- <fo:list-item-label end-indent="label-end()">
- <fo:block>2.</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block>
- <fo:block>Line 1 of item 2</fo:block>
- <fo:block>Line 2 of item 2</fo:block>
- <fo:block>Line 3 of item 2</fo:block>
- </fo:block>
- </fo:list-item-body>
- </fo:list-item>
- </fo:list-block>
- <fo:block>And now we are going to see how a second page sequence is handled.</fo:block>
- </fo:flow>
- </fo:page-sequence>
- <fo:page-sequence master-reference="page">
- <fo:static-content flow-name="xsl-region-before">
- <fo:block font-size="8pt" text-align-last="justify">This is the page header<fo:leader/>Page
- <fo:page-number/></fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-footnote-separator">
- <fo:block><fo:leader leader-length="100pt" leader-pattern="rule"/></fo:block>
- </fo:static-content>
- <fo:flow flow-name="xsl-region-body" hyphenate="true" text-align="justify">
- <fo:block id="second">Apache FOP (Formatting Objects Processor) is a print formatter driven by
- XSL formatting objects (XSL-FO) and an output independent formatter<fo:footnote><fo:inline
- baseline-shift="super" font-size="70%">1</fo:inline><fo:footnote-body><fo:block>See the
- <fo:wrapper color="blue"><fo:basic-link
- external-destination="http://xmlgraphics.apache.org/fop/">FOP
- website</fo:basic-link></fo:wrapper> for more
- information</fo:block></fo:footnote-body></fo:footnote>. It is a Java application that
- reads a formatting object (FO) tree and renders the resulting pages to a specified
- output.</fo:block>
- <fo:table space-before="10pt" space-after="10pt" width="100%" table-layout="fixed">
- <fo:table-header>
- <fo:table-row>
- <fo:table-cell border="2pt solid black" padding="2pt 2pt 0">
- <fo:block>Header 1.1</fo:block>
- </fo:table-cell>
- <fo:table-cell border="2pt solid black" padding="2pt 2pt 0">
- <fo:block>Header 1.2</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-header>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell border="1pt solid black" padding="2pt 2pt 0">
- <fo:block>Cell 1.1</fo:block>
- </fo:table-cell>
- <fo:table-cell border="1pt solid black" padding="2pt 2pt 0">
- <fo:block>Cell 1.2</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell border="1pt solid black" padding="2pt 2pt 0">
- <fo:block>Cell 2.1</fo:block>
- </fo:table-cell>
- <fo:table-cell border="1pt solid black" padding="2pt 2pt 0">
- <fo:block>Cell 2.2</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- <fo:block language="fr" country="FR">Apache FOP (Formatting Objects Processor) est une
- application de mise en page de documents respectant le standard XSL-FO. À partir d’un
- document au format XSL-FO, cette application écrite en Java effectue une mise en page et
- renvoie un document prêt pour impression.</fo:block>
- <fo:block span="all" border-top="1pt solid black" border-bottom="1pt solid black"
- padding-before="2pt" padding-after="2pt">This fo:block element spans all the columns of the
- document. This is intended to test the abilities of the text-to-speech program.</fo:block>
- <fo:block>And now we are back to normal content flowing in two columns. Let’s start a numbered
- list:</fo:block>
- <fo:list-block provisional-distance-between-starts="15pt" provisional-label-separation="0mm"
- keep-with-previous="auto">
- <fo:list-item keep-with-previous="always">
- <fo:list-item-label end-indent="label-end()">
- <fo:block>1.</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block>
- <fo:block>Line 1 of item 1</fo:block>
- <fo:block>Line 2 of item 1</fo:block>
- <fo:block>Line 3 of item 1</fo:block>
- </fo:block>
- </fo:list-item-body>
- </fo:list-item>
- <fo:list-item keep-with-previous="always">
- <fo:list-item-label end-indent="label-end()">
- <fo:block>2.</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block>
- <fo:block>Line 1 of item 2</fo:block>
- <fo:block>Line 2 of item 2</fo:block>
- <fo:block>Line 3 of item 2</fo:block>
- </fo:block>
- </fo:list-item-body>
- </fo:list-item>
- </fo:list-block>
- <fo:block>The end of the document has now been reached.</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
|