aboutsummaryrefslogtreecommitdiffstats
path: root/examples/fo
diff options
context:
space:
mode:
authorGlen Mazza <gmazza@apache.org>2005-01-06 00:56:26 +0000
committerGlen Mazza <gmazza@apache.org>2005-01-06 00:56:26 +0000
commit32781f1091b3227044dd80b43743999c81157ac5 (patch)
treeb4cdb696ced423b07f9bcda27bdef2004ab12043 /examples/fo
parentc5f1859de3bc9f0b06322e63caed66b498d2bfe5 (diff)
downloadxmlgraphics-fop-32781f1091b3227044dd80b43743999c81157ac5.tar.gz
xmlgraphics-fop-32781f1091b3227044dd80b43743999c81157ac5.zip
1.) fox:label converted to 1.1 fo:bookmark-title.
2.) FObj, FObjMixed, InlineLevel made abstract. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198227 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'examples/fo')
-rw-r--r--examples/fo/advanced/cid-fonts.fo33
-rw-r--r--examples/fo/basic/pdfoutline.fo232
2 files changed, 122 insertions, 143 deletions
diff --git a/examples/fo/advanced/cid-fonts.fo b/examples/fo/advanced/cid-fonts.fo
index 556aa8a2d..526ebea06 100644
--- a/examples/fo/advanced/cid-fonts.fo
+++ b/examples/fo/advanced/cid-fonts.fo
@@ -2,8 +2,7 @@
<!DOCTYPE fo:root [
<!ENTITY nbsp "&#160;">
]>
-<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
- xmlns:fox="http://xml.apache.org/fop/extensions">
+<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master master-name="A4"
page-width="21cm"
@@ -18,61 +17,61 @@
<fo:bookmark-tree>
<fo:bookmark internal-destination="sec0">
- <fox:label>Adding Fonts to FOP</fox:label>
+ <fo:bookmark-title>Adding Fonts to FOP</fo:bookmark-title>
</fo:bookmark>
<fo:bookmark internal-destination="sec1">
- <fox:label>Adding additional Type 1 fonts</fox:label>
+ <fo:bookmark-title>Adding additional Type 1 fonts</fo:bookmark-title>
<fo:bookmark internal-destination="sec1-1">
- <fox:label>Generating a font metrics file</fox:label>
+ <fo:bookmark-title>Generating a font metrics file</fo:bookmark-title>
</fo:bookmark>
<fo:bookmark internal-destination="sec1-2">
- <fox:label>Register the fonts within FOP</fox:label>
+ <fo:bookmark-title>Register the fonts within FOP</fo:bookmark-title>
</fo:bookmark>
</fo:bookmark>
<fo:bookmark internal-destination="sec2">
- <fox:label>Adding additional TrueType fonts</fox:label>
+ <fo:bookmark-title>Adding additional TrueType fonts</fo:bookmark-title>
<fo:bookmark internal-destination="sec2-1">
- <fox:label>Generating a font metrics file</fox:label>
+ <fo:bookmark-title>Generating a font metrics file</fo:bookmark-title>
</fo:bookmark>
<fo:bookmark internal-destination="sec2-2">
- <fox:label>TrueType collections</fox:label>
+ <fo:bookmark-title>TrueType collections</fo:bookmark-title>
</fo:bookmark>
<fo:bookmark internal-destination="sec2-3">
- <fox:label>Register the fonts within FOP</fox:label>
+ <fo:bookmark-title>Register the fonts within FOP</fo:bookmark-title>
</fo:bookmark>
</fo:bookmark>
<fo:bookmark internal-destination="sec3">
- <fox:label>Embedding fonts in the PDF</fox:label>
+ <fo:bookmark-title>Embedding fonts in the PDF</fo:bookmark-title>
</fo:bookmark>
<fo:bookmark internal-destination="sec4">
- <fox:label>Example embedding MSGothic</fox:label>
+ <fo:bookmark-title>Example embedding MSGothic</fo:bookmark-title>
<fo:bookmark internal-destination="sec4-1">
- <fox:label>Setup CLASSPATH</fox:label>
+ <fo:bookmark-title>Setup CLASSPATH</fo:bookmark-title>
</fo:bookmark>
<fo:bookmark internal-destination="sec4-2">
- <fox:label>Create the metrics file</fox:label>
+ <fo:bookmark-title>Create the metrics file</fo:bookmark-title>
</fo:bookmark>
<fo:bookmark internal-destination="sec4-3">
- <fox:label>Edit msgothic.xml</fox:label>
+ <fo:bookmark-title>Edit msgothic.xml</fo:bookmark-title>
</fo:bookmark>
<fo:bookmark internal-destination="sec4-4">
- <fox:label>Register the font with FOP</fox:label>
+ <fo:bookmark-title>Register the font with FOP</fo:bookmark-title>
</fo:bookmark>
</fo:bookmark>
<fo:bookmark internal-destination="sec5">
- <fox:label>Japanese Examples</fox:label>
+ <fo:bookmark-title>Japanese Examples</fo:bookmark-title>
</fo:bookmark>
</fo:bookmark-tree>
diff --git a/examples/fo/basic/pdfoutline.fo b/examples/fo/basic/pdfoutline.fo
index ce1aa3597..e09020b2f 100644
--- a/examples/fo/basic/pdfoutline.fo
+++ b/examples/fo/basic/pdfoutline.fo
@@ -11,141 +11,121 @@ This files shows next to the trivial usage of fo:block and fo:inline examples of
- fo:page-number-citation (computes dynamically the page number in section 'content')
-->
-<!-- note the extensions namespace (fox) -->
-
-<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
- xmlns:fox="http://xml.apache.org/fop/extensions">
- <fo:layout-master-set>
-
- <!-- layout for the first page -->
- <fo:simple-page-master master-name="first"
- page-height="29.7cm"
- page-width="21cm"
- margin-top="1cm"
- margin-bottom="2cm"
- margin-left="2.5cm"
- margin-right="2.5cm">
- <fo:region-body margin-top="3cm"/>
- <fo:region-before extent="3cm"/>
- <fo:region-after extent="1.5cm"/>
- </fo:simple-page-master>
-
- <!-- layout for the other pages -->
- <fo:simple-page-master master-name="rest"
- page-height="29.7cm"
- page-width="21cm"
- margin-top="1cm"
- margin-bottom="2cm"
- margin-left="2.5cm"
- margin-right="2.5cm">
- <fo:region-body margin-top="2.5cm"/>
- <fo:region-before extent="2.5cm"/>
- <fo:region-after extent="1.5cm"/>
- </fo:simple-page-master>
-
- <fo:page-sequence-master master-name="basicPSM" >
- <fo:repeatable-page-master-alternatives>
- <fo:conditional-page-master-reference master-reference="first"
- page-position="first" />
- <fo:conditional-page-master-reference master-reference="rest"
- page-position="rest" />
- <!-- recommended fallback procedure -->
- <fo:conditional-page-master-reference master-reference="rest" />
- </fo:repeatable-page-master-alternatives>
- </fo:page-sequence-master>
-
- </fo:layout-master-set>
- <!-- end: defines page layout -->
-
-
-<!-- bookmark section -->
- <fo:bookmark-tree>
- <fo:bookmark internal-destination="sec1">
- <fox:label>What is FOP?</fox:label>
- </fo:bookmark>
+<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
+
+ <fo:layout-master-set>
+ <!-- layout for the first page -->
+ <fo:simple-page-master master-name="first"
+ page-height="29.7cm"
+ page-width="21cm"
+ margin-top="1cm"
+ margin-bottom="2cm"
+ margin-left="2.5cm"
+ margin-right="2.5cm">
+ <fo:region-body margin-top="3cm"/>
+ <fo:region-before extent="3cm"/>
+ <fo:region-after extent="1.5cm"/>
+ </fo:simple-page-master>
- <fo:bookmark internal-destination="sec2">
- <fox:label>Downloading FOP</fox:label>
- </fo:bookmark>
+ <!-- layout for the other pages -->
+ <fo:simple-page-master master-name="rest"
+ page-height="29.7cm"
+ page-width="21cm"
+ margin-top="1cm"
+ margin-bottom="2cm"
+ margin-left="2.5cm"
+ margin-right="2.5cm">
+ <fo:region-body margin-top="2.5cm"/>
+ <fo:region-before extent="2.5cm"/>
+ <fo:region-after extent="1.5cm"/>
+ </fo:simple-page-master>
- <fo:bookmark internal-destination="sec3">
- <fox:label>Running FOP</fox:label>
+ <fo:page-sequence-master master-name="basicPSM" >
+ <fo:repeatable-page-master-alternatives>
+ <fo:conditional-page-master-reference master-reference="first"
+ page-position="first" />
+ <fo:conditional-page-master-reference master-reference="rest"
+ page-position="rest" />
+ <!-- recommended fallback procedure -->
+ <fo:conditional-page-master-reference master-reference="rest" />
+ </fo:repeatable-page-master-alternatives>
+ </fo:page-sequence-master>
+ </fo:layout-master-set>
- <fo:bookmark internal-destination="sec3-1">
- <fox:label>Prerequisites</fox:label>
-
- <fo:bookmark internal-destination="sec3-1-1">
- <fox:label>Java 1.1</fox:label>
- </fo:bookmark>
-
- <fo:bookmark internal-destination="sec3-1-2">
- <fox:label>XML Parser</fox:label>
- </fo:bookmark>
-
- <fo:bookmark internal-destination="sec3-1-3">
- <fox:label>XSLT Processor</fox:label>
- </fo:bookmark>
+ <!-- bookmark section -->
+ <fo:bookmark-tree>
+ <fo:bookmark internal-destination="sec1">
+ <fo:bookmark-title>What is FOP?</fo:bookmark-title>
</fo:bookmark>
-
- <fo:bookmark internal-destination="sec3-2">
- <fox:label>Starting FOP</fox:label>
+ <fo:bookmark internal-destination="sec2">
+ <fo:bookmark-title>Downloading FOP</fo:bookmark-title>
</fo:bookmark>
-
- </fo:bookmark>
-
- <fo:bookmark internal-destination="sec4">
- <fox:label>Embedding FOP</fox:label>
- </fo:bookmark>
-
- <fo:bookmark internal-destination="sec5">
- <fox:label>What's Implemented?</fox:label>
- </fo:bookmark>
- <fo:bookmark internal-destination="sec6">
- <fox:label>Limitations</fox:label>
- </fo:bookmark>
- <fo:bookmark internal-destination="sec7">
- <fox:label>Bugs</fox:label>
- </fo:bookmark>
- <fo:bookmark internal-destination="sec8">
- <fox:label>Compiling FOP</fox:label>
- </fo:bookmark>
- <fo:bookmark internal-destination="sec9">
- <fox:label>Getting Involved</fox:label>
- </fo:bookmark>
- <fo:bookmark internal-destination="sec10">
- <fox:label>FOP Relevant Specifications</fox:label>
- </fo:bookmark>
- <fo:bookmark internal-destination="sec11">
- <fox:label>License</fox:label>
- </fo:bookmark>
- </fo:bookmark-tree>
-
- <!-- actual layout -->
- <fo:page-sequence master-reference="basicPSM">
-
-
-<fo:static-content flow-name="xsl-region-before">
-<fo:block text-align="end" font-size="10pt" font-family="serif" line-height="14pt" color="red" >
-This is not the latest Fop documentation, but just an fo example. FOP - p. <fo:page-number/>
-</fo:block>
-</fo:static-content>
-
-
-<fo:flow flow-name="xsl-region-body">
-
-<fo:block id="secA" 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:bookmark internal-destination="sec3">
+ <fo:bookmark-title>Running FOP</fo:bookmark-title>
+ <fo:bookmark internal-destination="sec3-1">
+ <fo:bookmark-title>Prerequisites</fo:bookmark-title>
+ <fo:bookmark internal-destination="sec3-1-1">
+ <fo:bookmark-title>Java 1.1</fo:bookmark-title>
+ </fo:bookmark>
+ <fo:bookmark internal-destination="sec3-1-2">
+ <fo:bookmark-title>XML Parser</fo:bookmark-title>
+ </fo:bookmark>
+ <fo:bookmark internal-destination="sec3-1-3">
+ <fo:bookmark-title>XSLT Processor</fo:bookmark-title>
+ </fo:bookmark>
+ </fo:bookmark>
+ <fo:bookmark internal-destination="sec3-2">
+ <fo:bookmark-title>Starting FOP</fo:bookmark-title>
+ </fo:bookmark>
+ </fo:bookmark>
+ <fo:bookmark internal-destination="sec4">
+ <fo:bookmark-title>Embedding FOP</fo:bookmark-title>
+ </fo:bookmark>
+ <fo:bookmark internal-destination="sec5">
+ <fo:bookmark-title>What's Implemented?</fo:bookmark-title>
+ </fo:bookmark>
+ <fo:bookmark internal-destination="sec6">
+ <fo:bookmark-title>Limitations</fo:bookmark-title>
+ </fo:bookmark>
+ <fo:bookmark internal-destination="sec7">
+ <fo:bookmark-title>Bugs</fo:bookmark-title>
+ </fo:bookmark>
+ <fo:bookmark internal-destination="sec8">
+ <fo:bookmark-title>Compiling FOP</fo:bookmark-title>
+ </fo:bookmark>
+ <fo:bookmark internal-destination="sec9">
+ <fo:bookmark-title>Getting Involved</fo:bookmark-title>
+ </fo:bookmark>
+ <fo:bookmark internal-destination="sec10">
+ <fo:bookmark-title>FOP Relevant Specifications</fo:bookmark-title>
+ </fo:bookmark>
+ <fo:bookmark internal-destination="sec11">
+ <fo:bookmark-title>License</fo:bookmark-title>
+ </fo:bookmark>
+ </fo:bookmark-tree>
+ <!-- actual layout -->
+ <fo:page-sequence master-reference="basicPSM">
+ <fo:static-content flow-name="xsl-region-before">
+ <fo:block text-align="end" font-size="10pt" font-family="serif" line-height="14pt" color="red" >
+ This is not the latest Fop documentation, but just an fo example. FOP - p. <fo:page-number/>
+ </fo:block>
+ </fo:static-content>
-<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
- objects. It is a Java 1.1 application that reads a formatting object
- tree and then turns it into a PDF document. The formatting object
- tree, can be in the form of an XML document (output by an XSLT engine
- like XT or Xalan) or can be passed in memory as a DOM Document or (in
- the case of XT) SAX events.
+ <fo:flow flow-name="xsl-region-body">
+
+ <fo:block id="secA" 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
+ objects. It is a Java 1.1 application that reads a formatting object
+ tree and then turns it into a PDF document. The formatting object
+ tree, can be in the form of an XML document (output by an XSLT engine
+ like XT or Xalan) or can be passed in memory as a DOM Document or (in
+ the case of XT) SAX events.
</fo:block>
<fo:block space-after.optimum="3pt" font-family="serif">FOP is part of Apache's XML project. The homepage of FOP is