]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Spec update
authorarved <arved@unknown>
Wed, 12 Jul 2000 16:07:53 +0000 (16:07 +0000)
committerarved <arved@unknown>
Wed, 12 Jul 2000 16:07:53 +0000 (16:07 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193493 13f79535-47bb-0310-9956-ffa450edef68

docs/examples/fo/border.fo
docs/examples/fo/extensive.fo
docs/examples/fo/fonts.fo
docs/examples/fo/images.fo
docs/examples/fo/link.fo
docs/examples/fo/list.fo
docs/examples/fo/normal.fo
docs/examples/fo/readme.fo
docs/examples/fo/table.fo

index ac1b3415d20496c16cb378f81e4f21ddc4ee9b3a..c1e7aa56d41eb3ca61b5e28fa0f3a3035579fa2c 100644 (file)
@@ -1,19 +1,30 @@
 <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
     <fo:layout-master-set>
-        <fo:simple-page-master margin-right="0.5cm" margin-left="0.5cm" margin-bottom="0.5cm" margin-top="0.75cm" page-width="21cm" page-height="29.7cm" page-master-name="first">
+        <fo:simple-page-master
+               margin-right="0.5cm" margin-left="0.5cm" margin-bottom="0.5cm" margin-top="0.75cm"
+               page-width="21cm" page-height="29.7cm" master-name="first">
             <fo:region-body>
             </fo:region-body>
         </fo:simple-page-master>
-        <fo:simple-page-master margin-right="2.5cm" margin-left="2.5cm" margin-bottom="2cm" margin-top="1cm" page-width="21cm" page-height="29.7cm" page-master-name="rest">
+        <fo:simple-page-master
+               margin-right="2.5cm" margin-left="2.5cm" margin-bottom="2cm" margin-top="1cm"
+               page-width="21cm" page-height="29.7cm" master-name="rest">
             <fo:region-body>
             </fo:region-body>
         </fo:simple-page-master>
+               
+               <fo:page-sequence-master master-name="psmA">
+                       <fo:repeatable-page-master-alternatives>
+                               <fo:conditional-page-master-reference master-name="first"
+                                       page-position="first" />
+                               <fo:conditional-page-master-reference master-name="rest"
+                                       page-position="rest" />
+                               <!-- recommended fallback procedure -->
+                               <fo:conditional-page-master-reference master-name="rest" />
+                       </fo:repeatable-page-master-alternatives>
+               </fo:page-sequence-master>
     </fo:layout-master-set>
-    <fo:page-sequence>
-        <fo:sequence-specification>
-            <fo:sequence-specifier-repeating page-master-repeating="rest" page-master-first="first">
-            </fo:sequence-specifier-repeating>
-        </fo:sequence-specification>
+    <fo:page-sequence master-name="psmA">
         <fo:flow flow-name="xsl-body">
             <fo:block-container height="4cm" width="12cm" top="0cm" left="0cm" position="absolute">
                 <fo:block text-align="start" line-height="18pt" font-family="sans-serif" font-weight="bold" font-size="14pt">
index 5647fe79aad3b752c85d3c5d701ad656a184279e..40b50e9ce37b2082c3de6de8d33663bceae55903 100644 (file)
@@ -1,13 +1,10 @@
 <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/Graphics/SVG/SVG-19990812.dtd">
 <fo:layout-master-set>
-<fo:simple-page-master page-master-name="one">
+<fo:simple-page-master master-name="one">
 <fo:region-body margin-top="50pt" margin-bottom="50pt" margin-left="100pt" margin-right="100pt"/>
 </fo:simple-page-master>
 </fo:layout-master-set>
-<fo:page-sequence>
-<fo:sequence-specification>
-<fo:sequence-specifier-repeating page-master-first="one" page-master-repeating="one"/>
-</fo:sequence-specification>
+<fo:page-sequence master-name="one">
 <fo:flow>
 <fo:block>A Block</fo:block>
 <fo:block text-align="end">An End Aligned Block</fo:block>
index 32e4c5fccac7ce779b2076ba9ced3f414c2a344a..fbdf78ee6dd2412910fcd41ad45d0c1537ecf651 100644 (file)
@@ -1,21 +1,29 @@
 <?xml version="1.0" encoding="utf-8"?>
 <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
 <fo:layout-master-set>
-<fo:simple-page-master page-master-name="first" height="29.7cm" width="21cm" margin-top="1cm" margin-bottom="2cm" margin-left="2.5cm" margin-right="2.5cm">
+<fo:simple-page-master master-name="first" height="29.7cm" width="21cm" margin-top="1cm" margin-bottom="2cm" margin-left="2.5cm" margin-right="2.5cm">
 <fo:region-before extent="3cm"/>
 <fo:region-body margin-top="3cm"/>
 <fo:region-after extent="1.5cm"/>
 </fo:simple-page-master>
-<fo:simple-page-master page-master-name="rest" height="29.7cm" width="21cm" margin-top="1cm" margin-bottom="2cm" margin-left="2.5cm" margin-right="2.5cm">
+<fo:simple-page-master master-name="rest" height="29.7cm" width="21cm" margin-top="1cm" margin-bottom="2cm" margin-left="2.5cm" margin-right="2.5cm">
 <fo:region-before extent="2.5cm"/>
 <fo:region-body margin-top="2.5cm"/>
 <fo:region-after extent="1.5cm"/>
 </fo:simple-page-master>
+
+               <fo:page-sequence-master master-name="firstAndRest">
+                       <fo:repeatable-page-master-alternatives>
+                               <fo:conditional-page-master-reference master-name="first"
+                                       page-position="first" />
+                               <fo:conditional-page-master-reference master-name="rest"
+                                       page-position="rest" />
+                               <!-- recommended fallback procedure -->
+                               <fo:conditional-page-master-reference master-name="rest" />
+                       </fo:repeatable-page-master-alternatives>
+               </fo:page-sequence-master>
 </fo:layout-master-set>
-<fo:page-sequence>
-<fo:sequence-specification>
-<fo:sequence-specifier-repeating page-master-first="first" page-master-repeating="rest"/>
-</fo:sequence-specification>
+<fo:page-sequence master-name="firstAndRest">
 <fo:flow flow-name="xsl-body">
 
   <fo:block font-family="Helvetica" font-size="14pt">
index a0a6e464c7c2811b231d611e2e304a9ca970f5b0..c2f678e0e9c68044a339457995dd7e692d11f587 100644 (file)
@@ -1,4 +1,51 @@
 <?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:layout-master-set><fo:simple-page-master page-master-name="right" margin-top="75pt" margin-bottom="25pt" margin-left="100pt" margin-right="50pt"><fo:region-body margin-bottom="50pt"/><fo:region-after extent="25pt"/></fo:simple-page-master><fo:simple-page-master page-master-name="left" margin-top="75pt" margin-bottom="25pt" margin-left="50pt" margin-right="100pt"><fo:region-body margin-bottom="50pt"/><fo:region-after extent="25pt"/></fo:simple-page-master></fo:layout-master-set><fo:page-sequence id="N2528"><fo:sequence-specification><fo:sequence-specifier-alternating page-master-first="right" page-master-odd="right" page-master-even="left"/></fo:sequence-specification><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">1. FOP test for images</fo:block><fo:block id="N2531"><fo:block font-size="16pt" font-weight="bold" space-before.minimum="1em" space-before.optimum="1.5em" space-before.maximum="2em">A GIF image in FOP</fo:block><fo:block><fo:inline-graphic href="file:../graphics/xml_feather.gif"/></fo:block></fo:block><fo:block id="N2545"><fo:block font-size="16pt" font-weight="bold" space-before.minimum="1em" space-before.optimum="1.5em" space-before.maximum="2em">A JPEG image in FOP</fo:block><fo:block><fo:inline-graphic href="file:../graphics/fop.jpg"/></fo:block></fo:block><fo:block id="N2559"><fo:block font-size="16pt" font-weight="bold" space-before.minimum="1em" space-before.optimum="1.5em" space-before.maximum="2em"/>
+<fo:root font-family="Times Roman" font-size="12pt" text-align="justified" 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:region-body margin-bottom="50pt"/>
+       <fo:region-after extent="25pt"/>
+</fo:simple-page-master>
+
+<fo:simple-page-master master-name="left"
+       margin-top="75pt" margin-bottom="25pt" margin-left="50pt" margin-right="100pt">
+       <fo:region-body margin-bottom="50pt"/>
+       <fo:region-after extent="25pt"/>
+</fo:simple-page-master>
+
+<fo:page-sequence-master master-name="psmOddEven" >
+       <fo:repeatable-page-master-alternatives>
+               <fo:conditional-page-master-reference master-name="right"
+                       page-position="first" />
+               <fo:conditional-page-master-reference master-name="left"
+                       odd-or-even="even" />
+               <fo:conditional-page-master-reference master-name="right"
+                       odd-or-even="odd" />
+               <!-- recommended fallback procedure -->
+               <fo:conditional-page-master-reference master-name="rest" />
+       </fo:repeatable-page-master-alternatives>
+</fo:page-sequence-master>
+
+</fo:layout-master-set>
+
+<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:page-number/>
+       </fo:block>
+</fo:static-content>
+
+<fo:flow>
+<fo:block font-size="18pt" font-weight="bold">1. FOP test for images</fo:block><fo:block id="N2531">
+<fo:block font-size="16pt" font-weight="bold" space-before.minimum="1em" space-before.optimum="1.5em" space-before.maximum="2em">A GIF image in FOP</fo:block><fo:block><fo:inline-graphic href="file:../../graphics/xml_feather.gif"/>
+</fo:block></fo:block><fo:block id="N2545"><fo:block font-size="16pt" font-weight="bold" space-before.minimum="1em" space-before.optimum="1.5em" space-before.maximum="2em">A JPEG image in FOP</fo:block><fo:block><fo:inline-graphic href="file:../../graphics/fop.jpg"/></fo:block></fo:block><fo:block id="N2559"><fo:block font-size="16pt" font-weight="bold" space-before.minimum="1em" space-before.optimum="1.5em" space-before.maximum="2em"/>
           This section is only required to show that the layout still works.
-      </fo:block></fo:flow></fo:page-sequence><fo:page-sequence id="N2561"><fo:sequence-specification><fo:sequence-specifier-alternating page-master-first="right" page-master-odd="right" page-master-even="left"/></fo:sequence-specification><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>
+         </fo:flow>
+</fo:page-sequence>
+
+<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>
+         
index 5a15050d5ecbd398877a49a8e924ba60a28b21db..46315d8cb310b889021f5fe8c506d07c1ffe8ea7 100644 (file)
@@ -4,7 +4,7 @@
 
   <!-- defines page layout -->
   <fo:layout-master-set>
-    <fo:simple-page-master page-master-name="first" 
+    <fo:simple-page-master master-name="first" 
                            page-height="29.7cm" page-width="21cm" 
                            margin-top="1cm" 
                            margin-bottom="2cm" 
   <!-- end: defines page layout -->
 
   <!-- actual layout -->
-  <fo:page-sequence>
-
-    <!-- applies layout master -->
-    <fo:sequence-specification>
-      <fo:sequence-specifier-single page-master-name="first"/>
-    </fo:sequence-specification>
+  <fo:page-sequence master-name="first">
 
     <!-- text body -->
     <fo:flow flow-name="xsl-body">
index 56d1e22a9a05f956c4b561950473c092ac755624..774695c1ed0e7581143c5884c39a384132877239 100644 (file)
@@ -3,7 +3,7 @@
 
   <!-- defines the layout master -->
   <fo:layout-master-set>
-    <fo:simple-page-master page-master-name="first" 
+    <fo:simple-page-master master-name="first" 
                            page-height="29.7cm" page-width="21cm" 
                            margin-top="1cm" 
                            margin-bottom="2cm" 
   </fo:layout-master-set>
 
   <!-- starts actual layout -->
-  <fo:page-sequence>
-
-    <!-- applies layout master -->
-    <fo:sequence-specification>
-      <fo:sequence-specifier-single page-master-name="first"/>
-    </fo:sequence-specification>
+  <fo:page-sequence master-name="first">
 
   <!-- Inserts a header with the page number -->
   <fo:static-content flow-name="xsl-before">
index 4a078ec58757397ce6821e38016ff6f7826e945d..7e78dafc4b91e0ff0db308c0220bf917f468f39f 100644 (file)
@@ -6,7 +6,7 @@
   <fo:layout-master-set>
 
     <!-- layout for the first page -->
-    <fo:simple-page-master page-master-name="first"
+    <fo:simple-page-master master-name="first"
                   page-height="29.7cm" 
                   page-width="21cm"
                   margin-top="1cm" 
@@ -19,7 +19,7 @@
     </fo:simple-page-master>
 
     <!-- layout for the other pages -->
-    <fo:simple-page-master page-master-name="rest"
+    <fo:simple-page-master master-name="rest"
                   height="29.7cm" 
                   width="21cm"
                   margin-top="1cm" 
       <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-name="first"
+                       page-position="first" />
+               <fo:conditional-page-master-reference master-name="rest"
+                       page-position="rest" />
+               <!-- recommended fallback procedure -->
+               <fo:conditional-page-master-reference master-name="rest" />
+       </fo:repeatable-page-master-alternatives>
+</fo:page-sequence-master>
+
   </fo:layout-master-set>
   <!-- end: defines page layout -->
 
   <!-- actual layout -->
-  <fo:page-sequence>
-
-    <!-- usage of page layout -->
-    <fo:sequence-specification>
-      <fo:sequence-specifier-repeating page-master-first="first" 
-                                       page-master-repeating="rest"/>
-    </fo:sequence-specification>
+  <fo:page-sequence master-name="basicPSM">
 
     <!-- header -->
     <fo:static-content flow-name="xsl-before">
index f82281df0ddd6e6143e5aec6947370a63d5adfad..d8bfd9494606fb2416bb0010702c7c768628edfb 100644 (file)
@@ -12,22 +12,51 @@ This files shows next to the trivial usage of fo:block and fo:inline-sequence ex
 
 
 <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
-<fo:layout-master-set>
-<fo:simple-page-master page-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-before extent="6cm"/>
-<fo:region-body margin-top="3cm"/>
-<fo:region-after extent="1.5cm"/>
-</fo:simple-page-master>
-<fo:simple-page-master page-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-before extent="6cm"/>
-<fo:region-body margin-top="2.5cm"/>
-<fo:region-after extent="1.5cm"/>
-</fo:simple-page-master>
-</fo:layout-master-set>
-<fo:page-sequence>
-<fo:sequence-specification>
-<fo:sequence-specifier-repeating page-master-first="first" page-master-repeating="rest"/>
-</fo:sequence-specification>
+  <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-before extent="3cm"/>
+      <fo:region-body margin-top="3cm"/>
+      <fo:region-after extent="1.5cm"/>
+    </fo:simple-page-master>
+
+    <!-- layout for the other pages -->
+    <fo:simple-page-master master-name="rest"
+                  height="29.7cm" 
+                  width="21cm"
+                  margin-top="1cm" 
+                  margin-bottom="2cm" 
+                  margin-left="2.5cm" 
+                  margin-right="2.5cm">
+      <fo:region-before extent="2.5cm"/>
+      <fo:region-body margin-top="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-name="first"
+                       page-position="first" />
+               <fo:conditional-page-master-reference master-name="rest"
+                       page-position="rest" />
+               <!-- recommended fallback procedure -->
+               <fo:conditional-page-master-reference master-name="rest" />
+       </fo:repeatable-page-master-alternatives>
+</fo:page-sequence-master>
+
+  </fo:layout-master-set>
+  <!-- end: defines page layout -->
+
+  <!-- actual layout -->
+  <fo:page-sequence master-name="basicPSM">
+
 
 <fo:static-content flow-name="xsl-before">
 <fo:block text-align="end" font-size="10pt" font-family="serif" line-height="14pt" color="red" >
index 73d6ca16f4967e6c7582bf80b2f6b12f79794bb1..338c220e46d3c1d8739a0ed9c2de61a069d90733 100644 (file)
@@ -4,7 +4,7 @@
 
   <!-- defines the layout master -->
   <fo:layout-master-set>
-    <fo:simple-page-master page-master-name="first" 
+    <fo:simple-page-master master-name="first" 
                            page-height="29.7cm" 
                            page-width="21cm" 
                            margin-top="1cm" 
   </fo:layout-master-set>
 
   <!-- starts actual layout -->
-  <fo:page-sequence>
-
-    <!-- applies layout master -->
-    <fo:sequence-specification>
-      <fo:sequence-specifier-single page-master-name="first"/>
-    </fo:sequence-specification>
+  <fo:page-sequence master-name="first">
 
   <!-- Inserts a header with the page number -->
   <fo:static-content flow-name="xsl-before">