You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by ma...@apache.org on 2005/10/07 10:57:05 UTC

svn commit: r307055 [9/9] - in /xmlgraphics/fop/trunk: src/java/org/apache/fop/area/ src/java/org/apache/fop/area/inline/ src/java/org/apache/fop/datatypes/ src/java/org/apache/fop/fo/ src/java/org/apache/fop/fo/flow/ src/java/org/apache/fop/fo/propert...

Modified: xmlgraphics/fop/trunk/test/layoutengine/testcases/leader_leader-pattern_rule.xml
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/test/layoutengine/testcases/leader_leader-pattern_rule.xml?rev=307055&r1=307054&r2=307055&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/test/layoutengine/testcases/leader_leader-pattern_rule.xml (original)
+++ xmlgraphics/fop/trunk/test/layoutengine/testcases/leader_leader-pattern_rule.xml Fri Oct  7 01:55:22 2005
@@ -31,169 +31,146 @@
       <fo:page-sequence master-reference="normal" white-space-collapse="true">
         <fo:flow flow-name="xsl-region-body">
           <fo:block>
-            <fo:leader leader-pattern="rule"/>
+            <fo:leader leader-length="36pt" leader-pattern="rule" background-color="yellow"/>
                No rule-style given
           </fo:block>
           <fo:block>
-            <fo:leader leader-pattern="rule" rule-style="none"/>
+            <fo:leader leader-length="36pt" leader-pattern="rule" rule-style="none" background-color="yellow"/>
                rule-style="none"
           </fo:block>
           <fo:block>
-            <fo:leader leader-pattern="rule" rule-style="dotted"/>
+            <fo:leader leader-length="36pt" leader-pattern="rule" rule-style="dotted" background-color="yellow"/>
                rule-style="dotted"
           </fo:block>
           <fo:block>
-            <fo:leader leader-pattern="rule" rule-style="dashed"/>
+            <fo:leader leader-length="36pt" leader-pattern="rule" rule-style="dashed" background-color="yellow"/>
                rule-style="dashed"
           </fo:block>
           <fo:block>
-            <fo:leader leader-pattern="rule" rule-style="solid"/>
+            <fo:leader leader-length="36pt" leader-pattern="rule" rule-style="solid" background-color="yellow"/>
                rule-style="solid"
           </fo:block>
           <fo:block>
-            <fo:leader leader-pattern="rule" rule-style="double"/>
+            <fo:leader leader-length="36pt" leader-pattern="rule" rule-style="double" background-color="yellow"/>
                rule-style="double"
           </fo:block>
           <fo:block>
-            <fo:leader leader-pattern="rule" rule-style="groove"/>
+            <fo:leader leader-length="36pt" leader-pattern="rule" rule-style="groove" background-color="yellow"/>
                rule-style="groove"
           </fo:block>
           <fo:block>
-            <fo:leader leader-pattern="rule" rule-style="ridge"/>
+            <fo:leader leader-length="36pt" leader-pattern="rule" rule-style="ridge" background-color="yellow"/>
                rule-style="ridge"
           </fo:block>
           <fo:block>
-            <fo:leader leader-pattern="rule" rule-style="dotted" rule-thickness="3pt"/>
+            <fo:leader leader-length="36pt" leader-pattern="rule" rule-style="dotted" rule-thickness="3pt" background-color="yellow"/>
                rule-style="dotted" rule-thickness="3pt"
           </fo:block>
           <fo:block>
-            <fo:leader leader-pattern="rule" rule-style="dashed" rule-thickness="3pt"/>
+            <fo:leader leader-length="36pt" leader-pattern="rule" rule-style="dashed" rule-thickness="3pt" background-color="yellow"/>
                rule-style="dashed" rule-thickness="3pt"
           </fo:block>
           <fo:block>
-            <fo:leader leader-pattern="rule" rule-style="solid" rule-thickness="3pt"/>
+            <fo:leader leader-length="36pt" leader-pattern="rule" rule-style="solid" rule-thickness="3pt" background-color="yellow"/>
                rule-style="solid" rule-thickness="3pt"
           </fo:block>
           <fo:block>
-            <fo:leader leader-pattern="rule" rule-style="double" rule-thickness="3pt"/>
+            <fo:leader leader-length="36pt" leader-pattern="rule" rule-style="double" rule-thickness="3pt" background-color="yellow"/>
                rule-style="double" rule-thickness="3pt"
           </fo:block>
           <fo:block>
-            <fo:leader leader-pattern="rule" rule-style="groove" rule-thickness="3pt"/>
+            <fo:leader leader-length="36pt" leader-pattern="rule" rule-style="groove" rule-thickness="3pt" background-color="yellow"/>
                rule-style="groove" rule-thickness="3pt"
           </fo:block>
           <fo:block>
-            <fo:leader leader-pattern="rule" rule-style="ridge" rule-thickness="3pt"/>
+            <fo:leader leader-length="36pt" leader-pattern="rule" rule-style="ridge" rule-thickness="3pt" background-color="yellow"/>
                rule-style="ridge" rule-thickness="3pt"
           </fo:block>
-          <fo:block>
-            <fo:leader leader-pattern="rule" alignment-baseline="middle"/>
-               No rule-style given alignment-baseline="middle"
-          </fo:block>
-          <fo:block>
-            <fo:leader leader-pattern="rule" rule-style="none" alignment-baseline="middle"/>
-               rule-style="none" alignment-baseline="middle"
-          </fo:block>
-          <fo:block>
-            <fo:leader leader-pattern="rule" rule-style="dotted" alignment-baseline="middle"/>
-               rule-style="dotted" alignment-baseline="middle"
-          </fo:block>
-          <fo:block>
-            <fo:leader leader-pattern="rule" rule-style="dashed" alignment-baseline="middle"/>
-               rule-style="dashed" alignment-baseline="middle"
-          </fo:block>
-          <fo:block>
-            <fo:leader leader-pattern="rule" rule-style="solid" alignment-baseline="middle"/>
-               rule-style="solid" alignment-baseline="middle"
-          </fo:block>
-          <fo:block>
-            <fo:leader leader-pattern="rule" rule-style="double" alignment-baseline="middle"/>
-               rule-style="double" alignment-baseline="middle"
-          </fo:block>
-          <fo:block>
-            <fo:leader leader-pattern="rule" rule-style="groove" alignment-baseline="middle"/>
-               rule-style="groove" alignment-baseline="middle"
-          </fo:block>
-          <fo:block>
-            <fo:leader leader-pattern="rule" rule-style="ridge" alignment-baseline="middle"/>
-               rule-style="ridge" alignment-baseline="middle"
-          </fo:block>
         </fo:flow>
       </fo:page-sequence>
     </fo:root>
   </fo>
   <checks>
-    <eval expected="14400" xpath="//flow/block[1]/lineArea/@bpd"/>
+    <eval expected="11100" xpath="//flow/block[1]/lineArea/@bpd"/>
     <eval expected="360000" xpath="//flow/block[1]/lineArea/@ipd"/>
-    <eval expected="12000" xpath="//flow/block[1]/lineArea/leader/@ipd"/>
+    <eval expected="36000" xpath="//flow/block[1]/lineArea/leader/@ipd"/>
     <eval expected="solid" xpath="//flow/block[1]/lineArea/leader/@ruleStyle"/>
     <eval expected="1000" xpath="//flow/block[1]/lineArea/leader/@ruleThickness"/>
-    <eval expected="14400" xpath="//flow/block[2]/lineArea/@bpd"/>
+
+    <eval expected="11100" xpath="//flow/block[2]/lineArea/@bpd"/>
     <eval expected="360000" xpath="//flow/block[2]/lineArea/@ipd"/>
-    <eval expected="12000" xpath="//flow/block[2]/lineArea/leader/@ipd"/>
-    <eval expected="--NYI--" xpath="//flow/block[2]/lineArea/leader/@ruleStyle"/>
-    <eval expected="1000" xpath="//flow/block[2]/lineArea/leader/@ruleThickness"/>
-    <eval expected="14400" xpath="//flow/block[3]/lineArea/@bpd"/>
+    <eval expected="36000" xpath="//flow/block[2]/lineArea/space/@ipd"/>
+
+    <eval expected="11100" xpath="//flow/block[3]/lineArea/@bpd"/>
     <eval expected="360000" xpath="//flow/block[3]/lineArea/@ipd"/>
-    <eval expected="12000" xpath="//flow/block[3]/lineArea/leader/@ipd"/>
+    <eval expected="36000" xpath="//flow/block[3]/lineArea/leader/@ipd"/>
     <eval expected="dotted" xpath="//flow/block[3]/lineArea/leader/@ruleStyle"/>
     <eval expected="1000" xpath="//flow/block[3]/lineArea/leader/@ruleThickness"/>
-    <eval expected="14400" xpath="//flow/block[4]/lineArea/@bpd"/>
+
+    <eval expected="11100" xpath="//flow/block[4]/lineArea/@bpd"/>
     <eval expected="360000" xpath="//flow/block[4]/lineArea/@ipd"/>
-    <eval expected="12000" xpath="//flow/block[4]/lineArea/leader/@ipd"/>
+    <eval expected="36000" xpath="//flow/block[4]/lineArea/leader/@ipd"/>
     <eval expected="dashed" xpath="//flow/block[4]/lineArea/leader/@ruleStyle"/>
     <eval expected="1000" xpath="//flow/block[4]/lineArea/leader/@ruleThickness"/>
-    <eval expected="14400" xpath="//flow/block[5]/lineArea/@bpd"/>
+
+    <eval expected="11100" xpath="//flow/block[5]/lineArea/@bpd"/>
     <eval expected="360000" xpath="//flow/block[5]/lineArea/@ipd"/>
-    <eval expected="12000" xpath="//flow/block[5]/lineArea/leader/@ipd"/>
+    <eval expected="36000" xpath="//flow/block[5]/lineArea/leader/@ipd"/>
     <eval expected="solid" xpath="//flow/block[5]/lineArea/leader/@ruleStyle"/>
     <eval expected="1000" xpath="//flow/block[5]/lineArea/leader/@ruleThickness"/>
-    <eval expected="14400" xpath="//flow/block[6]/lineArea/@bpd"/>
+
+    <eval expected="11100" xpath="//flow/block[6]/lineArea/@bpd"/>
     <eval expected="360000" xpath="//flow/block[6]/lineArea/@ipd"/>
-    <eval expected="12000" xpath="//flow/block[6]/lineArea/leader/@ipd"/>
+    <eval expected="36000" xpath="//flow/block[6]/lineArea/leader/@ipd"/>
     <eval expected="double" xpath="//flow/block[6]/lineArea/leader/@ruleStyle"/>
     <eval expected="1000" xpath="//flow/block[6]/lineArea/leader/@ruleThickness"/>
-    <eval expected="14400" xpath="//flow/block[7]/lineArea/@bpd"/>
+
+    <eval expected="11100" xpath="//flow/block[7]/lineArea/@bpd"/>
     <eval expected="360000" xpath="//flow/block[7]/lineArea/@ipd"/>
-    <eval expected="12000" xpath="//flow/block[7]/lineArea/leader/@ipd"/>
+    <eval expected="36000" xpath="//flow/block[7]/lineArea/leader/@ipd"/>
     <eval expected="groove" xpath="//flow/block[7]/lineArea/leader/@ruleStyle"/>
     <eval expected="1000" xpath="//flow/block[7]/lineArea/leader/@ruleThickness"/>
-    <eval expected="14400" xpath="//flow/block[8]/lineArea/@bpd"/>
+
+    <eval expected="11100" xpath="//flow/block[8]/lineArea/@bpd"/>
     <eval expected="360000" xpath="//flow/block[8]/lineArea/@ipd"/>
-    <eval expected="12000" xpath="//flow/block[8]/lineArea/leader/@ipd"/>
+    <eval expected="36000" xpath="//flow/block[8]/lineArea/leader/@ipd"/>
     <eval expected="ridge" xpath="//flow/block[8]/lineArea/leader/@ruleStyle"/>
     <eval expected="1000" xpath="//flow/block[8]/lineArea/leader/@ruleThickness"/>
-    <eval expected="14400" xpath="//flow/block[9]/lineArea/@bpd"/>
+
+    <eval expected="11100" xpath="//flow/block[9]/lineArea/@bpd"/>
     <eval expected="360000" xpath="//flow/block[9]/lineArea/@ipd"/>
-    <eval expected="12000" xpath="//flow/block[9]/lineArea/leader/@ipd"/>
+    <eval expected="36000" xpath="//flow/block[9]/lineArea/leader/@ipd"/>
     <eval expected="dotted" xpath="//flow/block[9]/lineArea/leader/@ruleStyle"/>
     <eval expected="3000" xpath="//flow/block[9]/lineArea/leader/@ruleThickness"/>
-    <eval expected="14400" xpath="//flow/block[10]/lineArea/@bpd"/>
+
+    <eval expected="11100" xpath="//flow/block[10]/lineArea/@bpd"/>
     <eval expected="360000" xpath="//flow/block[10]/lineArea/@ipd"/>
-    <eval expected="12000" xpath="//flow/block[10]/lineArea/leader/@ipd"/>
+    <eval expected="36000" xpath="//flow/block[10]/lineArea/leader/@ipd"/>
     <eval expected="dashed" xpath="//flow/block[10]/lineArea/leader/@ruleStyle"/>
     <eval expected="3000" xpath="//flow/block[10]/lineArea/leader/@ruleThickness"/>
-    <eval expected="14400" xpath="//flow/block[11]/lineArea/@bpd"/>
+
+    <eval expected="11100" xpath="//flow/block[11]/lineArea/@bpd"/>
     <eval expected="360000" xpath="//flow/block[11]/lineArea/@ipd"/>
-    <eval expected="12000" xpath="//flow/block[11]/lineArea/leader/@ipd"/>
+    <eval expected="36000" xpath="//flow/block[11]/lineArea/leader/@ipd"/>
     <eval expected="solid" xpath="//flow/block[11]/lineArea/leader/@ruleStyle"/>
     <eval expected="3000" xpath="//flow/block[11]/lineArea/leader/@ruleThickness"/>
-    <eval expected="14400" xpath="//flow/block[12]/lineArea/@bpd"/>
+
+    <eval expected="11100" xpath="//flow/block[12]/lineArea/@bpd"/>
     <eval expected="360000" xpath="//flow/block[12]/lineArea/@ipd"/>
-    <eval expected="12000" xpath="//flow/block[12]/lineArea/leader/@ipd"/>
+    <eval expected="36000" xpath="//flow/block[12]/lineArea/leader/@ipd"/>
     <eval expected="double" xpath="//flow/block[12]/lineArea/leader/@ruleStyle"/>
     <eval expected="3000" xpath="//flow/block[12]/lineArea/leader/@ruleThickness"/>
-    <eval expected="14400" xpath="//flow/block[13]/lineArea/@bpd"/>
+
+    <eval expected="11100" xpath="//flow/block[13]/lineArea/@bpd"/>
     <eval expected="360000" xpath="//flow/block[13]/lineArea/@ipd"/>
-    <eval expected="12000" xpath="//flow/block[13]/lineArea/leader/@ipd"/>
+    <eval expected="36000" xpath="//flow/block[13]/lineArea/leader/@ipd"/>
     <eval expected="groove" xpath="//flow/block[13]/lineArea/leader/@ruleStyle"/>
     <eval expected="3000" xpath="//flow/block[13]/lineArea/leader/@ruleThickness"/>
-    <eval expected="14400" xpath="//flow/block[14]/lineArea/@bpd"/>
+
+    <eval expected="11100" xpath="//flow/block[14]/lineArea/@bpd"/>
     <eval expected="360000" xpath="//flow/block[14]/lineArea/@ipd"/>
-    <eval expected="12000" xpath="//flow/block[14]/lineArea/leader/@ipd"/>
+    <eval expected="36000" xpath="//flow/block[14]/lineArea/leader/@ipd"/>
     <eval expected="ridge" xpath="//flow/block[14]/lineArea/leader/@ruleStyle"/>
     <eval expected="3000" xpath="//flow/block[14]/lineArea/leader/@ruleThickness"/>
-    <!-- No checks for the "alignment-baseline=..." section as this property is currently
-     not supported -->
   </checks>
 </testcase>

Modified: xmlgraphics/fop/trunk/test/layoutengine/testcases/leader_leader-pattern_space.xml
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/test/layoutengine/testcases/leader_leader-pattern_space.xml?rev=307055&r1=307054&r2=307055&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/test/layoutengine/testcases/leader_leader-pattern_space.xml (original)
+++ xmlgraphics/fop/trunk/test/layoutengine/testcases/leader_leader-pattern_space.xml Fri Oct  7 01:55:22 2005
@@ -47,13 +47,13 @@
     </fo:root>
   </fo>
   <checks>
-    <eval expected="14400" xpath="//flow/block[1]/lineArea/@bpd"/>
+    <eval expected="11100" xpath="//flow/block[1]/lineArea/@bpd"/>
     <eval expected="360000" xpath="//flow/block[1]/lineArea/@ipd"/>
     <eval expected="12000" xpath="//flow/block[1]/lineArea/space/@ipd"/>
-    <eval expected="14400" xpath="//flow/block[2]/lineArea/@bpd"/>
+    <eval expected="11100" xpath="//flow/block[2]/lineArea/@bpd"/>
     <eval expected="360000" xpath="//flow/block[2]/lineArea/@ipd"/>
     <eval expected="36000" xpath="//flow/block[2]/lineArea/space/@ipd"/>
-    <eval expected="14400" xpath="//flow/block[3]/lineArea/@bpd"/>
+    <eval expected="11100" xpath="//flow/block[3]/lineArea/@bpd"/>
     <eval expected="360000" xpath="//flow/block[3]/lineArea/@ipd"/>
     <eval expected="18000" xpath="//flow/block[3]/lineArea/space/@ipd"/>
   </checks>

Modified: xmlgraphics/fop/trunk/test/layoutengine/testcases/leader_leader-pattern_use-content.xml
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/test/layoutengine/testcases/leader_leader-pattern_use-content.xml?rev=307055&r1=307054&r2=307055&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/test/layoutengine/testcases/leader_leader-pattern_use-content.xml (original)
+++ xmlgraphics/fop/trunk/test/layoutengine/testcases/leader_leader-pattern_use-content.xml Fri Oct  7 01:55:22 2005
@@ -31,24 +31,12 @@
       <fo:page-sequence master-reference="normal" white-space-collapse="true">
         <fo:flow flow-name="xsl-region-body">
           <fo:block>
-            <fo:leader leader-pattern="use-content"/>
-               Default dots pattern
+            <fo:leader leader-length="36pt" leader-pattern="use-content">x</fo:leader>
+               Content is "x"
           </fo:block>
           <fo:block>
-            <fo:leader leader-pattern="use-content" leader-pattern-width="use-font-metrics"/>
-                leader-pattern-width="use-font-metrics"
-          </fo:block>
-          <fo:block>
-            <fo:leader leader-pattern="use-content" leader-length="20mm" leader-pattern-width="5mm"/>
-                 leader-length="20mm" leader-pattern-width="5mm"
-          </fo:block>
-          <fo:block>
-            <fo:leader leader-pattern="use-content" leader-pattern-width="1pt"/>
-                leader-pattern-width="1pt"
-          </fo:block>
-          <fo:block>
-            <fo:leader leader-pattern="use-content" leader-pattern-width="5%"/>
-                leader-pattern-width="5%"
+            <fo:leader leader-length="36pt" leader-pattern="use-content"><fo:inline background-color="yellow">=></fo:inline></fo:leader>
+               Content is "=>" with background
           </fo:block>
         </fo:flow>
       </fo:page-sequence>

Added: xmlgraphics/fop/trunk/test/layoutengine/testcases/leader_toc.xml
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/test/layoutengine/testcases/leader_toc.xml?rev=307055&view=auto
==============================================================================
--- xmlgraphics/fop/trunk/test/layoutengine/testcases/leader_toc.xml (added)
+++ xmlgraphics/fop/trunk/test/layoutengine/testcases/leader_toc.xml Fri Oct  7 01:55:22 2005
@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright 2005 The Apache Software Foundation
+
+  Licensed 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$ -->
+<testcase>
+  <info>
+    <p>
+      This test checks fo:leader in a typical table of content scenario.
+      This example is taken from the spec section 6.6.1.1.4
+    </p>
+  </info>
+  <fo>
+    <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
+      <fo:layout-master-set>
+        <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
+          <fo:region-body/>
+        </fo:simple-page-master>
+      </fo:layout-master-set>
+      <fo:page-sequence master-reference="normal" white-space-collapse="true">
+        <fo:flow flow-name="xsl-region-body">
+          <fo:block text-align-last="justify">
+            <fo:basic-link internal-destination="N4">1. Chapter</fo:basic-link>
+            <fo:leader leader-length.minimum="12pt" leader-length.optimum="40pt"
+              leader-length.maximum="100%" leader-pattern="dots">
+            </fo:leader>
+            <fo:page-number-citation ref-id="N4">
+            </fo:page-number-citation>
+          </fo:block>
+          <fo:block start-indent="10mm" text-align-last="justify">
+            <fo:basic-link internal-destination="N11">1.1 Section</fo:basic-link>
+            <fo:leader leader-length.minimum="12pt" leader-length.optimum="40pt"
+              leader-length.maximum="100%" leader-pattern="dots">
+            </fo:leader>
+            <fo:page-number-citation ref-id="N11">
+            </fo:page-number-citation>
+          </fo:block>
+          <fo:block start-indent="10mm" text-align-last="justify">
+            <fo:basic-link internal-destination="N19">1.2 Section</fo:basic-link>
+            <fo:leader leader-length.minimum="12pt" leader-length.optimum="40pt"
+              leader-length.maximum="100%" leader-pattern="dots">
+            </fo:leader>
+            <fo:page-number-citation ref-id="N19">
+            </fo:page-number-citation>
+          </fo:block>
+          <fo:block text-align-last="justify">
+            <fo:basic-link internal-destination="N28">2. Chapter</fo:basic-link>
+            <fo:leader leader-length.minimum="12pt" leader-length.optimum="40pt"
+              leader-length.maximum="100%" leader-pattern="dots">
+            </fo:leader>
+            <fo:page-number-citation ref-id="N28">
+            </fo:page-number-citation>
+          </fo:block>
+          <fo:block start-indent="10mm" text-align-last="justify">
+            <fo:basic-link internal-destination="N35">2.1 Section</fo:basic-link>
+            <fo:leader leader-length.minimum="12pt" leader-length.optimum="40pt"
+              leader-length.maximum="100%" leader-pattern="dots">
+            </fo:leader>
+            <fo:page-number-citation ref-id="N35">
+            </fo:page-number-citation>
+          </fo:block>
+          <fo:block start-indent="10mm" text-align-last="justify">
+            <fo:basic-link internal-destination="N43">2.2 Section</fo:basic-link>
+            <fo:leader leader-length.minimum="12pt" leader-length.optimum="40pt"
+              leader-length.maximum="100%" leader-pattern="dots">
+            </fo:leader>
+            <fo:page-number-citation ref-id="N43">
+            </fo:page-number-citation>
+          </fo:block>
+
+          <fo:block id="N4">1. Chapter
+          </fo:block>
+
+          <fo:block>Text
+          </fo:block>
+
+          <fo:block id="N11">1.1 Section
+          </fo:block>
+
+          <fo:block>Text
+          </fo:block>
+
+          <fo:block id="N19">1.2 Section
+          </fo:block>
+
+          <fo:block>Text
+          </fo:block>
+
+          <fo:block id="N28">2. Chapter
+          </fo:block>
+
+          <fo:block>Text
+          </fo:block>
+
+          <fo:block id="N35">2.1 Section
+          </fo:block>
+
+          <fo:block>Text
+          </fo:block>
+
+          <fo:block id="N43">2.2 Section
+          </fo:block>
+
+          <fo:block>Text
+          </fo:block>
+        </fo:flow>
+      </fo:page-sequence>
+    </fo:root>
+  </fo>
+  <checks>
+    <eval expected="11100" xpath="//flow/block[1]/lineArea/@bpd"/>
+    <eval expected="360000" xpath="//flow/block[1]/lineArea/@ipd"/>
+    <eval expected="268268" xpath="//flow/block[1]/lineArea/inlineparent[2]/@ipd"/>
+    <eval expected="5280" xpath="//flow/block[1]/lineArea/inlineparent[2]/@offset"/>
+
+    <eval expected="11100" xpath="//flow/block[2]/lineArea/@bpd"/>
+    <eval expected="331654" xpath="//flow/block[2]/lineArea/@ipd"/>
+    <eval expected="236051" xpath="//flow/block[2]/lineArea/inlineparent[2]/@ipd"/>
+    <eval expected="5280" xpath="//flow/block[2]/lineArea/inlineparent[2]/@offset"/>
+
+    <eval expected="11100" xpath="//flow/block[3]/lineArea/@bpd"/>
+    <eval expected="331654" xpath="//flow/block[3]/lineArea/@ipd"/>
+    <eval expected="236051" xpath="//flow/block[3]/lineArea/inlineparent[2]/@ipd"/>
+    <eval expected="5280" xpath="//flow/block[3]/lineArea/inlineparent[2]/@offset"/>
+
+    <eval expected="11100" xpath="//flow/block[4]/lineArea/@bpd"/>
+    <eval expected="360000" xpath="//flow/block[4]/lineArea/@ipd"/>
+    <eval expected="268268" xpath="//flow/block[4]/lineArea/inlineparent[2]/@ipd"/>
+    <eval expected="5280" xpath="//flow/block[4]/lineArea/inlineparent[2]/@offset"/>
+
+    <eval expected="11100" xpath="//flow/block[5]/lineArea/@bpd"/>
+    <eval expected="331654" xpath="//flow/block[5]/lineArea/@ipd"/>
+    <eval expected="236051" xpath="//flow/block[5]/lineArea/inlineparent[2]/@ipd"/>
+    <eval expected="5280" xpath="//flow/block[5]/lineArea/inlineparent[2]/@offset"/>
+
+    <eval expected="11100" xpath="//flow/block[6]/lineArea/@bpd"/>
+    <eval expected="331654" xpath="//flow/block[6]/lineArea/@ipd"/>
+    <eval expected="236051" xpath="//flow/block[6]/lineArea/inlineparent[2]/@ipd"/>
+    <eval expected="5280" xpath="//flow/block[6]/lineArea/inlineparent[2]/@offset"/>
+  </checks>
+</testcase>

Propchange: xmlgraphics/fop/trunk/test/layoutengine/testcases/leader_toc.xml
------------------------------------------------------------------------------
    svn:executable = *

Propchange: xmlgraphics/fop/trunk/test/layoutengine/testcases/leader_toc.xml
------------------------------------------------------------------------------
    svn:keywords = Id

Added: xmlgraphics/fop/trunk/test/layoutengine/testcases/page-number-citation_background-color.xml
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/test/layoutengine/testcases/page-number-citation_background-color.xml?rev=307055&view=auto
==============================================================================
--- xmlgraphics/fop/trunk/test/layoutengine/testcases/page-number-citation_background-color.xml (added)
+++ xmlgraphics/fop/trunk/test/layoutengine/testcases/page-number-citation_background-color.xml Fri Oct  7 01:55:22 2005
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright 2005 The Apache Software Foundation
+
+  Licensed 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$ -->
+<testcase>
+  <info>
+    <p>
+      This test checks fo:page-number-citation with background-color property.
+    </p>
+  </info>
+  <fo>
+    <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
+      <fo:layout-master-set>
+        <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in" margin="5pt">
+          <fo:region-body/>
+        </fo:simple-page-master>
+      </fo:layout-master-set>
+      <fo:page-sequence master-reference="normal" white-space-collapse="true">
+        <fo:flow flow-name="xsl-region-body" font-size="10pt" id="ref">
+          <fo:block background-color="silver" id="ref">
+            To emphasize a page number citation <fo:page-number-citation ref-id="ref" background-color="yellow" /> highlight it.
+          </fo:block>
+        </fo:flow>
+      </fo:page-sequence>
+    </fo:root>
+  </fo>
+  <checks>
+    <eval expected="color=#ffff00" xpath="//flow/block[1]/lineArea/text[2]/@background"/>
+  </checks>
+</testcase>

Propchange: xmlgraphics/fop/trunk/test/layoutengine/testcases/page-number-citation_background-color.xml
------------------------------------------------------------------------------
    svn:executable = *

Propchange: xmlgraphics/fop/trunk/test/layoutengine/testcases/page-number-citation_background-color.xml
------------------------------------------------------------------------------
    svn:keywords = Id

Added: xmlgraphics/fop/trunk/test/layoutengine/testcases/page-number-citation_background-image.xml
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/test/layoutengine/testcases/page-number-citation_background-image.xml?rev=307055&view=auto
==============================================================================
--- xmlgraphics/fop/trunk/test/layoutengine/testcases/page-number-citation_background-image.xml (added)
+++ xmlgraphics/fop/trunk/test/layoutengine/testcases/page-number-citation_background-image.xml Fri Oct  7 01:55:22 2005
@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright 2005 The Apache Software Foundation
+
+  Licensed 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$ -->
+<testcase>
+  <info>
+    <p>
+      This test checks fo:page-number-citation with background-image property.
+    </p>
+  </info>
+  <variables>
+    <img>../../resources/images/bgimg300dpi.jpg</img>
+  </variables>
+  <fo>
+    <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
+      <fo:layout-master-set>
+        <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
+          <fo:region-body/>
+        </fo:simple-page-master>
+      </fo:layout-master-set>
+      <fo:page-sequence master-reference="normal" white-space-collapse="true">
+        <fo:flow flow-name="xsl-region-body">
+          <fo:block font-size="24pt" id="ref">
+            Page number citation <fo:page-number-citation font-size="96pt" ref-id="ref" background-color="yellow" background-repeat="no-repeat" background-position-horizontal="center" background-position-vertical="center" background-image="##img" />
+            Page number citation <fo:page-number-citation font-size="48pt" ref-id="ref" background-color="yellow" background-repeat="no-repeat" background-position-horizontal="center" background-position-vertical="center" background-image="##img" />
+          </fo:block>
+        </fo:flow>
+      </fo:page-sequence>
+    </fo:root>
+  </fo>
+  <checks>
+    <!-- currently not working because of late ipd adjustment after the image is positioned -->
+    <eval expected="color=#ffff00,url=../../resources/images/bgimg300dpi.jpg,repeat=no-repeat,horiz=3648,vertical=21360" xpath="//flow/block[1]/lineArea/text[2]/@background"/>
+    <eval expected="color=#ffff00,url=../../resources/images/bgimg300dpi.jpg,repeat=no-repeat,horiz=-9696,vertical=-840" xpath="//flow/block[1]/lineArea/text[4]/@background"/>
+  </checks>
+</testcase>

Propchange: xmlgraphics/fop/trunk/test/layoutengine/testcases/page-number-citation_background-image.xml
------------------------------------------------------------------------------
    svn:executable = *

Propchange: xmlgraphics/fop/trunk/test/layoutengine/testcases/page-number-citation_background-image.xml
------------------------------------------------------------------------------
    svn:keywords = Id

Added: xmlgraphics/fop/trunk/test/layoutengine/testcases/page-number-citation_border_padding.xml
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/test/layoutengine/testcases/page-number-citation_border_padding.xml?rev=307055&view=auto
==============================================================================
--- xmlgraphics/fop/trunk/test/layoutengine/testcases/page-number-citation_border_padding.xml (added)
+++ xmlgraphics/fop/trunk/test/layoutengine/testcases/page-number-citation_border_padding.xml Fri Oct  7 01:55:22 2005
@@ -0,0 +1,98 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright 2005 The Apache Software Foundation
+
+  Licensed 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$ -->
+<testcase>
+  <info>
+    <p>
+      This test checks fo:page-number-citation with border and padding properties.
+    </p>
+  </info>
+  <fo>
+    <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
+      <fo:layout-master-set>
+        <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in" margin="5pt">
+          <fo:region-body/>
+        </fo:simple-page-master>
+      </fo:layout-master-set>
+      <fo:page-sequence master-reference="normal" white-space-collapse="true" language="en">
+        <fo:flow flow-name="xsl-region-body" font-size="10pt">
+          <fo:block background-color="silver" margin="2pt 0pt 2pt 0pt" id="ref">
+            Page number citation <fo:page-number-citation ref-id="ref" border="solid 1pt red" background-color="yellow" /> with a 1pt border.
+          </fo:block>
+          <fo:block background-color="silver" margin="10pt 0pt 10pt 0pt">
+            Page number citation <fo:page-number-citation ref-id="ref" border="solid 5pt red" padding="5pt" background-color="yellow" /> with 5pt border and padding.
+          </fo:block>
+          <fo:block background-color="silver" margin="2pt 0pt 2pt 0pt">
+            Page number citation <fo:page-number-citation ref-id="ref" border-style="solid" border-width="1pt 2pt 3pt 4pt" border-color="red" padding="1pt 2pt 3pt 4pt" background-color="yellow" character="c"/> with unsymmetric borders and padding.
+          </fo:block>
+          <fo:block background-color="silver" margin="10pt 0pt 10pt 0pt" font-size="20pt">
+            Page number citation <fo:page-number-citation ref-id="ref" border="solid 5pt red" padding="5pt" background-color="yellow" font-size="8pt" character="b"/> with border and padding in a smaller font.
+          </fo:block>
+        </fo:flow>
+      </fo:page-sequence>
+    </fo:root>
+  </fo>
+  <checks>
+    <eval expected="7180" xpath="//flow/block[2]/lineArea/text[2]/@baseline"/>
+    <eval expected="0" xpath="//flow/block[2]/lineArea/text[2]/@offset"/>
+    <eval expected="5560" xpath="//flow/block[2]/lineArea/text[2]/@ipd"/>
+    <eval expected="7560" xpath="//flow/block[2]/lineArea/text[2]/@ipda"/>
+    <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea/text[2]/@border-after"/>
+    <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea/text[2]/@border-before"/>
+    <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea/text[2]/@border-end"/>
+    <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea/text[2]/@border-start"/>
+
+    <eval expected="7180" xpath="//flow/block[5]/lineArea/text[2]/@baseline"/>
+    <eval expected="0" xpath="//flow/block[5]/lineArea/text[2]/@offset"/>
+    <eval expected="5560" xpath="//flow/block[5]/lineArea/text[2]/@ipd"/>
+    <eval expected="25560" xpath="//flow/block[5]/lineArea/text[2]/@ipda"/>
+    <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[5]/lineArea/text[2]/@border-after"/>
+    <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[5]/lineArea/text[2]/@border-before"/>
+    <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[5]/lineArea/text[2]/@border-end"/>
+    <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[5]/lineArea/text[2]/@border-start"/>
+    <eval expected="5000" xpath="//flow/block[5]/lineArea/text[2]/@padding-after"/>
+    <eval expected="5000" xpath="//flow/block[5]/lineArea/text[2]/@padding-before"/>
+    <eval expected="5000" xpath="//flow/block[5]/lineArea/text[2]/@padding-end"/>
+    <eval expected="5000" xpath="//flow/block[5]/lineArea/text[2]/@padding-start"/>
+
+    <eval expected="7180" xpath="//flow/block[8]/lineArea/text[2]/@baseline"/>
+    <eval expected="0" xpath="//flow/block[8]/lineArea/text[2]/@offset"/>
+    <eval expected="5560" xpath="//flow/block[8]/lineArea/text[2]/@ipd"/>
+    <eval expected="17560" xpath="//flow/block[8]/lineArea/text[2]/@ipda"/>
+    <eval expected="(solid,#ff0000,3000)" xpath="//flow/block[8]/lineArea/text[2]/@border-after"/>
+    <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea/text[2]/@border-before"/>
+    <eval expected="(solid,#ff0000,2000)" xpath="//flow/block[8]/lineArea/text[2]/@border-end"/>
+    <eval expected="(solid,#ff0000,4000)" xpath="//flow/block[8]/lineArea/text[2]/@border-start"/>
+    <eval expected="3000" xpath="//flow/block[8]/lineArea/text[2]/@padding-after"/>
+    <eval expected="1000" xpath="//flow/block[8]/lineArea/text[2]/@padding-before"/>
+    <eval expected="2000" xpath="//flow/block[8]/lineArea/text[2]/@padding-end"/>
+    <eval expected="4000" xpath="//flow/block[8]/lineArea/text[2]/@padding-start"/>
+
+    <eval expected="5744" xpath="//flow/block[11]/lineArea/text[2]/@baseline"/>
+    <eval expected="8616" xpath="//flow/block[11]/lineArea/text[2]/@offset"/>
+    <eval expected="4448" xpath="//flow/block[11]/lineArea/text[2]/@ipd"/>
+    <eval expected="24448" xpath="//flow/block[11]/lineArea/text[2]/@ipda"/>
+    <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[11]/lineArea/text[2]/@border-after"/>
+    <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[11]/lineArea/text[2]/@border-before"/>
+    <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[11]/lineArea/text[2]/@border-end"/>
+    <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[11]/lineArea/text[2]/@border-start"/>
+    <eval expected="5000" xpath="//flow/block[11]/lineArea/text[2]/@padding-after"/>
+    <eval expected="5000" xpath="//flow/block[11]/lineArea/text[2]/@padding-before"/>
+    <eval expected="5000" xpath="//flow/block[11]/lineArea/text[2]/@padding-end"/>
+    <eval expected="5000" xpath="//flow/block[11]/lineArea/text[2]/@padding-start"/>
+  </checks>
+</testcase>

Propchange: xmlgraphics/fop/trunk/test/layoutengine/testcases/page-number-citation_border_padding.xml
------------------------------------------------------------------------------
    svn:executable = *

Propchange: xmlgraphics/fop/trunk/test/layoutengine/testcases/page-number-citation_border_padding.xml
------------------------------------------------------------------------------
    svn:keywords = Id

Added: xmlgraphics/fop/trunk/test/layoutengine/testcases/page-number-citation_vertical-align.xml
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/test/layoutengine/testcases/page-number-citation_vertical-align.xml?rev=307055&view=auto
==============================================================================
--- xmlgraphics/fop/trunk/test/layoutengine/testcases/page-number-citation_vertical-align.xml (added)
+++ xmlgraphics/fop/trunk/test/layoutengine/testcases/page-number-citation_vertical-align.xml Fri Oct  7 01:55:22 2005
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright 2005 The Apache Software Foundation
+
+  Licensed 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$ -->
+<testcase>
+  <info>
+    <p>
+      This test checks fo:page-number-citation with vertical-align property.
+    </p>
+  </info>
+  <fo>
+    <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
+      <fo:layout-master-set>
+        <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
+          <fo:region-body/>
+        </fo:simple-page-master>
+      </fo:layout-master-set>
+      <fo:page-sequence master-reference="normal" white-space-collapse="true">
+        <fo:flow flow-name="xsl-region-body">
+          <fo:block background-color="silver" margin="2pt 0pt 2pt 0pt" font-size="20pt" id="ref">
+            Page citation <fo:page-number-citation ref-id="ref" font-size="10pt" background-color="yellow" /> vertical-align not specified
+          </fo:block>
+          <fo:block background-color="silver" margin="2pt 0pt 2pt 0pt" font-size="20pt">
+            Page citation <fo:page-number-citation ref-id="ref" font-size="10pt" vertical-align="baseline" background-color="yellow" /> vertical-align="baseline"
+          </fo:block>
+          <fo:block background-color="silver" margin="2pt 0pt 2pt 0pt" font-size="20pt">
+            Page citation <fo:page-number-citation ref-id="ref" font-size="10pt" vertical-align="top" background-color="yellow" /> vertical-align="top"
+          </fo:block>
+          <fo:block background-color="silver" margin="2pt 0pt 2pt 0pt" font-size="20pt">
+            Page citation <fo:page-number-citation ref-id="ref" font-size="10pt" vertical-align="middle" background-color="yellow" /> vertical-align="middle"
+          </fo:block>
+          <fo:block background-color="silver" margin="2pt 0pt 2pt 0pt" font-size="20pt">
+            Page citation <fo:page-number-citation ref-id="ref" font-size="10pt" vertical-align="bottom" background-color="yellow" /> vertical-align="bottom"
+          </fo:block>
+        </fo:flow>
+      </fo:page-sequence>
+    </fo:root>
+  </fo>
+  <checks>
+    <eval expected="7180" xpath="//flow/block[2]/lineArea/text[2]/@offset"/>
+    <eval expected="7180" xpath="//flow/block[5]/lineArea/text[2]/@offset"/>
+    <eval expected="0" xpath="//flow/block[8]/lineArea/text[2]/@offset"/>
+    <eval expected="4565" xpath="//flow/block[11]/lineArea/text[2]/@offset"/>
+    <eval expected="9250" xpath="//flow/block[14]/lineArea/text[2]/@offset"/>
+  </checks>
+</testcase>

Propchange: xmlgraphics/fop/trunk/test/layoutengine/testcases/page-number-citation_vertical-align.xml
------------------------------------------------------------------------------
    svn:executable = *

Propchange: xmlgraphics/fop/trunk/test/layoutengine/testcases/page-number-citation_vertical-align.xml
------------------------------------------------------------------------------
    svn:keywords = Id

Added: xmlgraphics/fop/trunk/test/layoutengine/testcases/page-number_background-color.xml
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/test/layoutengine/testcases/page-number_background-color.xml?rev=307055&view=auto
==============================================================================
--- xmlgraphics/fop/trunk/test/layoutengine/testcases/page-number_background-color.xml (added)
+++ xmlgraphics/fop/trunk/test/layoutengine/testcases/page-number_background-color.xml Fri Oct  7 01:55:22 2005
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright 2005 The Apache Software Foundation
+
+  Licensed 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$ -->
+<testcase>
+  <info>
+    <p>
+      This test checks fo:page-number with background-color property.
+    </p>
+  </info>
+  <fo>
+    <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
+      <fo:layout-master-set>
+        <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in" margin="5pt">
+          <fo:region-body/>
+        </fo:simple-page-master>
+      </fo:layout-master-set>
+      <fo:page-sequence master-reference="normal" white-space-collapse="true">
+        <fo:flow flow-name="xsl-region-body" font-size="10pt">
+          <fo:block background-color="silver">
+            To emphasize a page number <fo:page-number background-color="yellow" /> highlight it.
+          </fo:block>
+        </fo:flow>
+      </fo:page-sequence>
+    </fo:root>
+  </fo>
+  <checks>
+    <eval expected="color=#ffff00" xpath="//flow/block[1]/lineArea/text[2]/@background"/>
+  </checks>
+</testcase>

Propchange: xmlgraphics/fop/trunk/test/layoutengine/testcases/page-number_background-color.xml
------------------------------------------------------------------------------
    svn:executable = *

Propchange: xmlgraphics/fop/trunk/test/layoutengine/testcases/page-number_background-color.xml
------------------------------------------------------------------------------
    svn:keywords = Id

Added: xmlgraphics/fop/trunk/test/layoutengine/testcases/page-number_background-image.xml
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/test/layoutengine/testcases/page-number_background-image.xml?rev=307055&view=auto
==============================================================================
--- xmlgraphics/fop/trunk/test/layoutengine/testcases/page-number_background-image.xml (added)
+++ xmlgraphics/fop/trunk/test/layoutengine/testcases/page-number_background-image.xml Fri Oct  7 01:55:22 2005
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright 2005 The Apache Software Foundation
+
+  Licensed 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$ -->
+<testcase>
+  <info>
+    <p>
+      This test checks fo:page-number with background-image property.
+    </p>
+  </info>
+  <variables>
+    <img>../../resources/images/bgimg300dpi.jpg</img>
+  </variables>
+  <fo>
+    <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
+      <fo:layout-master-set>
+        <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
+          <fo:region-body/>
+        </fo:simple-page-master>
+      </fo:layout-master-set>
+      <fo:page-sequence master-reference="normal" white-space-collapse="true">
+        <fo:flow flow-name="xsl-region-body">
+          <fo:block font-size="24pt">
+            Page <fo:page-number font-size="96pt" background-color="yellow" background-repeat="no-repeat" background-position-horizontal="center" background-position-vertical="center" background-image="##img" />
+            Page <fo:page-number font-size="48pt" background-color="yellow" background-repeat="no-repeat" background-position-horizontal="center" background-position-vertical="center" background-image="##img" />
+          </fo:block>
+        </fo:flow>
+      </fo:page-sequence>
+    </fo:root>
+  </fo>
+  <checks>
+    <eval expected="color=#ffff00,url=../../resources/images/bgimg300dpi.jpg,repeat=no-repeat,horiz=3648,vertical=21360" xpath="//flow/block[1]/lineArea/text[2]/@background"/>
+    <eval expected="color=#ffff00,url=../../resources/images/bgimg300dpi.jpg,repeat=no-repeat,horiz=-9696,vertical=-840" xpath="//flow/block[1]/lineArea/text[4]/@background"/>
+  </checks>
+</testcase>

Propchange: xmlgraphics/fop/trunk/test/layoutengine/testcases/page-number_background-image.xml
------------------------------------------------------------------------------
    svn:executable = *

Propchange: xmlgraphics/fop/trunk/test/layoutengine/testcases/page-number_background-image.xml
------------------------------------------------------------------------------
    svn:keywords = Id

Added: xmlgraphics/fop/trunk/test/layoutengine/testcases/page-number_border_padding.xml
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/test/layoutengine/testcases/page-number_border_padding.xml?rev=307055&view=auto
==============================================================================
--- xmlgraphics/fop/trunk/test/layoutengine/testcases/page-number_border_padding.xml (added)
+++ xmlgraphics/fop/trunk/test/layoutengine/testcases/page-number_border_padding.xml Fri Oct  7 01:55:22 2005
@@ -0,0 +1,98 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright 2005 The Apache Software Foundation
+
+  Licensed 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$ -->
+<testcase>
+  <info>
+    <p>
+      This test checks fo:page-number with border and padding properties.
+    </p>
+  </info>
+  <fo>
+    <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
+      <fo:layout-master-set>
+        <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in" margin="5pt">
+          <fo:region-body/>
+        </fo:simple-page-master>
+      </fo:layout-master-set>
+      <fo:page-sequence master-reference="normal" white-space-collapse="true" language="en">
+        <fo:flow flow-name="xsl-region-body" font-size="10pt">
+          <fo:block background-color="silver" margin="2pt 0pt 2pt 0pt">
+            Page number <fo:page-number border="solid 1pt red" background-color="yellow" /> with a 1pt border.
+          </fo:block>
+          <fo:block background-color="silver" margin="10pt 0pt 10pt 0pt">
+            Page number <fo:page-number border="solid 5pt red" padding="5pt" background-color="yellow" /> with 5pt border and padding.
+          </fo:block>
+          <fo:block background-color="silver" margin="2pt 0pt 2pt 0pt">
+            Page number <fo:page-number border-style="solid" border-width="1pt 2pt 3pt 4pt" border-color="red" padding="1pt 2pt 3pt 4pt" background-color="yellow" character="c"/> with unsymmetric borders and padding.
+          </fo:block>
+          <fo:block background-color="silver" margin="10pt 0pt 10pt 0pt" font-size="20pt">
+            Page number <fo:page-number border="solid 5pt red" padding="5pt" background-color="yellow" font-size="8pt" character="b"/> with border and padding in a smaller font.
+          </fo:block>
+        </fo:flow>
+      </fo:page-sequence>
+    </fo:root>
+  </fo>
+  <checks>
+    <eval expected="7180" xpath="//flow/block[2]/lineArea/text[2]/@baseline"/>
+    <eval expected="0" xpath="//flow/block[2]/lineArea/text[2]/@offset"/>
+    <eval expected="5560" xpath="//flow/block[2]/lineArea/text[2]/@ipd"/>
+    <eval expected="7560" xpath="//flow/block[2]/lineArea/text[2]/@ipda"/>
+    <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea/text[2]/@border-after"/>
+    <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea/text[2]/@border-before"/>
+    <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea/text[2]/@border-end"/>
+    <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea/text[2]/@border-start"/>
+
+    <eval expected="7180" xpath="//flow/block[5]/lineArea/text[2]/@baseline"/>
+    <eval expected="0" xpath="//flow/block[5]/lineArea/text[2]/@offset"/>
+    <eval expected="5560" xpath="//flow/block[5]/lineArea/text[2]/@ipd"/>
+    <eval expected="25560" xpath="//flow/block[5]/lineArea/text[2]/@ipda"/>
+    <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[5]/lineArea/text[2]/@border-after"/>
+    <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[5]/lineArea/text[2]/@border-before"/>
+    <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[5]/lineArea/text[2]/@border-end"/>
+    <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[5]/lineArea/text[2]/@border-start"/>
+    <eval expected="5000" xpath="//flow/block[5]/lineArea/text[2]/@padding-after"/>
+    <eval expected="5000" xpath="//flow/block[5]/lineArea/text[2]/@padding-before"/>
+    <eval expected="5000" xpath="//flow/block[5]/lineArea/text[2]/@padding-end"/>
+    <eval expected="5000" xpath="//flow/block[5]/lineArea/text[2]/@padding-start"/>
+
+    <eval expected="7180" xpath="//flow/block[8]/lineArea/text[2]/@baseline"/>
+    <eval expected="0" xpath="//flow/block[8]/lineArea/text[2]/@offset"/>
+    <eval expected="5560" xpath="//flow/block[8]/lineArea/text[2]/@ipd"/>
+    <eval expected="17560" xpath="//flow/block[8]/lineArea/text[2]/@ipda"/>
+    <eval expected="(solid,#ff0000,3000)" xpath="//flow/block[8]/lineArea/text[2]/@border-after"/>
+    <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea/text[2]/@border-before"/>
+    <eval expected="(solid,#ff0000,2000)" xpath="//flow/block[8]/lineArea/text[2]/@border-end"/>
+    <eval expected="(solid,#ff0000,4000)" xpath="//flow/block[8]/lineArea/text[2]/@border-start"/>
+    <eval expected="3000" xpath="//flow/block[8]/lineArea/text[2]/@padding-after"/>
+    <eval expected="1000" xpath="//flow/block[8]/lineArea/text[2]/@padding-before"/>
+    <eval expected="2000" xpath="//flow/block[8]/lineArea/text[2]/@padding-end"/>
+    <eval expected="4000" xpath="//flow/block[8]/lineArea/text[2]/@padding-start"/>
+
+    <eval expected="5744" xpath="//flow/block[11]/lineArea/text[2]/@baseline"/>
+    <eval expected="8616" xpath="//flow/block[11]/lineArea/text[2]/@offset"/>
+    <eval expected="4448" xpath="//flow/block[11]/lineArea/text[2]/@ipd"/>
+    <eval expected="24448" xpath="//flow/block[11]/lineArea/text[2]/@ipda"/>
+    <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[11]/lineArea/text[2]/@border-after"/>
+    <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[11]/lineArea/text[2]/@border-before"/>
+    <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[11]/lineArea/text[2]/@border-end"/>
+    <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[11]/lineArea/text[2]/@border-start"/>
+    <eval expected="5000" xpath="//flow/block[11]/lineArea/text[2]/@padding-after"/>
+    <eval expected="5000" xpath="//flow/block[11]/lineArea/text[2]/@padding-before"/>
+    <eval expected="5000" xpath="//flow/block[11]/lineArea/text[2]/@padding-end"/>
+    <eval expected="5000" xpath="//flow/block[11]/lineArea/text[2]/@padding-start"/>
+  </checks>
+</testcase>

Propchange: xmlgraphics/fop/trunk/test/layoutengine/testcases/page-number_border_padding.xml
------------------------------------------------------------------------------
    svn:executable = *

Propchange: xmlgraphics/fop/trunk/test/layoutengine/testcases/page-number_border_padding.xml
------------------------------------------------------------------------------
    svn:keywords = Id

Added: xmlgraphics/fop/trunk/test/layoutengine/testcases/page-number_vertical-align.xml
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/test/layoutengine/testcases/page-number_vertical-align.xml?rev=307055&view=auto
==============================================================================
--- xmlgraphics/fop/trunk/test/layoutengine/testcases/page-number_vertical-align.xml (added)
+++ xmlgraphics/fop/trunk/test/layoutengine/testcases/page-number_vertical-align.xml Fri Oct  7 01:55:22 2005
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright 2005 The Apache Software Foundation
+
+  Licensed 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$ -->
+<testcase>
+  <info>
+    <p>
+      This test checks fo:page-number with vertical-align property.
+    </p>
+  </info>
+  <fo>
+    <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
+      <fo:layout-master-set>
+        <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
+          <fo:region-body/>
+        </fo:simple-page-master>
+      </fo:layout-master-set>
+      <fo:page-sequence master-reference="normal" white-space-collapse="true">
+        <fo:flow flow-name="xsl-region-body">
+          <fo:block background-color="silver" margin="2pt 0pt 2pt 0pt" font-size="20pt">
+            Page <fo:page-number font-size="10pt" background-color="yellow" /> vertical-align not specified
+          </fo:block>
+          <fo:block background-color="silver" margin="2pt 0pt 2pt 0pt" font-size="20pt">
+            Page <fo:page-number font-size="10pt" vertical-align="baseline" background-color="yellow" /> vertical-align="baseline"
+          </fo:block>
+          <fo:block background-color="silver" margin="2pt 0pt 2pt 0pt" font-size="20pt">
+            Page <fo:page-number font-size="10pt" vertical-align="top" background-color="yellow" /> vertical-align="top"
+          </fo:block>
+          <fo:block background-color="silver" margin="2pt 0pt 2pt 0pt" font-size="20pt">
+            Page <fo:page-number font-size="10pt" vertical-align="middle" background-color="yellow" /> vertical-align="middle"
+          </fo:block>
+          <fo:block background-color="silver" margin="2pt 0pt 2pt 0pt" font-size="20pt">
+            Page <fo:page-number font-size="10pt" vertical-align="bottom" background-color="yellow" /> vertical-align="bottom"
+          </fo:block>
+        </fo:flow>
+      </fo:page-sequence>
+    </fo:root>
+  </fo>
+  <checks>
+    <eval expected="7180" xpath="//flow/block[2]/lineArea/text[2]/@offset"/>
+    <eval expected="7180" xpath="//flow/block[5]/lineArea/text[2]/@offset"/>
+    <eval expected="0" xpath="//flow/block[8]/lineArea/text[2]/@offset"/>
+    <eval expected="4565" xpath="//flow/block[11]/lineArea/text[2]/@offset"/>
+    <eval expected="9250" xpath="//flow/block[14]/lineArea/text[2]/@offset"/>
+  </checks>
+</testcase>

Propchange: xmlgraphics/fop/trunk/test/layoutengine/testcases/page-number_vertical-align.xml
------------------------------------------------------------------------------
    svn:executable = *

Propchange: xmlgraphics/fop/trunk/test/layoutengine/testcases/page-number_vertical-align.xml
------------------------------------------------------------------------------
    svn:keywords = Id

Modified: xmlgraphics/fop/trunk/test/layoutengine/testcases/table-cell_background-image.xml
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/test/layoutengine/testcases/table-cell_background-image.xml?rev=307055&r1=307054&r2=307055&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/test/layoutengine/testcases/table-cell_background-image.xml (original)
+++ xmlgraphics/fop/trunk/test/layoutengine/testcases/table-cell_background-image.xml Fri Oct  7 01:55:22 2005
@@ -1,130 +1,130 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  Copyright 2005 The Apache Software Foundation
-
-  Licensed 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$ -->
-<testcase>
-  <info>
-    <p>
-      This test checks relative positioned background images on a fo:table-cell.
-    </p>
-  </info>
-  <variables>
-    <img>../../resources/images/box1.png</img>
-  </variables>
-  <fo>
-    <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
-      <fo:layout-master-set>
-        <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in" margin="15pt">
-          <fo:region-body/>
-        </fo:simple-page-master>
-      </fo:layout-master-set>
-      <fo:page-sequence master-reference="normal" white-space-collapse="true">
-        <fo:flow flow-name="xsl-region-body">
-          <fo:table border-collapse="separate">
-            <fo:table-column />
-            <fo:table-column />
-            <fo:table-column />
-            <fo:table-body>
-              <fo:table-row>
-                <fo:table-cell margin="0pt" padding="5pt 10pt 20pt 15pt" height="1in" background-color="blue" 
-                   background-image="##img"
-                   background-position-horizontal="right" 
-                   background-repeat="no-repeat">
-                  <fo:block>image in top right corner</fo:block>
-                </fo:table-cell>
-                <fo:table-cell margin="0pt" padding="5pt 10pt 20pt 15pt" height="1in" background-color="green" 
-                   background-image="##img"
-                   background-position-horizontal="right" 
-                   background-position-vertical="center" 
-                   background-repeat="no-repeat">
-                  <fo:block>image in center right</fo:block>
-                </fo:table-cell>
-                <fo:table-cell margin="0pt" padding="5pt 10pt 20pt 15pt" height="1in" background-color="yellow" 
-                   background-image="##img"
-                   background-position-horizontal="right" 
-                   background-position-vertical="bottom" 
-                   background-repeat="no-repeat">
-                  <fo:block>image in bottom right corner</fo:block>
-                </fo:table-cell>
-              </fo:table-row>
-              <fo:table-row>
-                <fo:table-cell margin="0pt" padding="5pt 10pt 20pt 15pt" height="1in" background-color="yellow" 
-                   background-image="##img"
-                   background-position-horizontal="center" 
-                   background-repeat="no-repeat">
-                  <fo:block>image in top center</fo:block>
-                </fo:table-cell>
-                <fo:table-cell margin="0pt" padding="5pt 10pt 20pt 15pt" height="1in" background-color="blue" 
-                   background-image="##img"
-                   background-position-horizontal="center" 
-                   background-position-vertical="center" 
-                   background-repeat="no-repeat">
-                  <fo:block>image in center</fo:block>
-                </fo:table-cell>
-                <fo:table-cell margin="0pt" padding="5pt 10pt 20pt 15pt" height="1in" background-color="green" 
-                   background-image="##img"
-                   background-position-horizontal="center" 
-                   background-position-vertical="bottom" 
-                   background-repeat="no-repeat">
-                  <fo:block>image in bottom center</fo:block>
-                </fo:table-cell>
-              </fo:table-row>
-              <fo:table-row>
-                <fo:table-cell margin="0pt" padding="5pt 10pt 20pt 15pt" height="1in" background-color="green" 
-                   background-image="##img"
-                   background-repeat="no-repeat">
-                  <fo:block>image in top left</fo:block>
-                </fo:table-cell>
-                <fo:table-cell margin="0pt" padding="5pt 10pt 20pt 15pt" height="1in" background-color="yellow" 
-                   background-image="##img"
-                   background-position-vertical="center" 
-                   background-repeat="no-repeat">
-                  <fo:block>image in center left</fo:block>
-                </fo:table-cell>
-                <fo:table-cell margin="0pt" padding="5pt 10pt 20pt 15pt" height="1in" background-color="blue" 
-                   background-image="##img"
-                   background-position-vertical="bottom" 
-                   background-repeat="no-repeat">
-                  <fo:block>image in bottom left</fo:block>
-                </fo:table-cell>
-              </fo:table-row>
-            </fo:table-body>
-          </fo:table>
-        </fo:flow>
-      </fo:page-sequence>
-    </fo:root>
-  </fo>
-  <checks>
-    <!-- first cell in row 1 -->
-    <eval expected="color=#0000ff,url=../../resources/images/box1.png,repeat=no-repeat,horiz=69991,vertical=0" xpath="//flow/block/block[1]/@background"/>
-    <!-- second cell in row 1 -->
-    <eval expected="color=#008000,url=../../resources/images/box1.png,repeat=no-repeat,horiz=69991,vertical=28495" xpath="//flow/block/block[2]/@background"/>
-    <!-- third cell in row 1 -->
-    <eval expected="color=#ffff00,url=../../resources/images/box1.png,repeat=no-repeat,horiz=69991,vertical=56991" xpath="//flow/block/block[3]/@background"/>
-    <!-- first cell in row 2 -->
-    <eval expected="color=#ffff00,url=../../resources/images/box1.png,repeat=no-repeat,horiz=34995,vertical=0" xpath="//flow/block/block[4]/@background"/>
-    <!-- second cell in row 2 -->
-    <eval expected="color=#0000ff,url=../../resources/images/box1.png,repeat=no-repeat,horiz=34995,vertical=28495" xpath="//flow/block/block[5]/@background"/>
-    <!-- third cell in row 2 -->
-    <eval expected="color=#008000,url=../../resources/images/box1.png,repeat=no-repeat,horiz=34995,vertical=56991" xpath="//flow/block/block[6]/@background"/>
-    <!-- first cell in row 3 -->
-    <eval expected="color=#008000,url=../../resources/images/box1.png,repeat=no-repeat,horiz=0,vertical=0" xpath="//flow/block/block[7]/@background"/>
-    <!-- second cell in row 3 -->
-    <eval expected="color=#ffff00,url=../../resources/images/box1.png,repeat=no-repeat,horiz=0,vertical=28495" xpath="//flow/block/block[8]/@background"/>
-    <!-- third cell in row 3 -->
-    <eval expected="color=#0000ff,url=../../resources/images/box1.png,repeat=no-repeat,horiz=0,vertical=56991" xpath="//flow/block/block[9]/@background"/>
-  </checks>
-</testcase>
\ No newline at end of file
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright 2005 The Apache Software Foundation
+
+  Licensed 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$ -->
+<testcase>
+  <info>
+    <p>
+      This test checks relative positioned background images on a fo:table-cell.
+    </p>
+  </info>
+  <variables>
+    <img>../../resources/images/box1.png</img>
+  </variables>
+  <fo>
+    <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
+      <fo:layout-master-set>
+        <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in" margin="15pt">
+          <fo:region-body/>
+        </fo:simple-page-master>
+      </fo:layout-master-set>
+      <fo:page-sequence master-reference="normal" white-space-collapse="true">
+        <fo:flow flow-name="xsl-region-body">
+          <fo:table border-collapse="separate">
+            <fo:table-column />
+            <fo:table-column />
+            <fo:table-column />
+            <fo:table-body>
+              <fo:table-row>
+                <fo:table-cell margin="0pt" padding="5pt 10pt 20pt 15pt" height="1in" background-color="blue" 
+                   background-image="##img"
+                   background-position-horizontal="right" 
+                   background-repeat="no-repeat">
+                  <fo:block>image in top right corner</fo:block>
+                </fo:table-cell>
+                <fo:table-cell margin="0pt" padding="5pt 10pt 20pt 15pt" height="1in" background-color="green" 
+                   background-image="##img"
+                   background-position-horizontal="right" 
+                   background-position-vertical="center" 
+                   background-repeat="no-repeat">
+                  <fo:block>image in center right</fo:block>
+                </fo:table-cell>
+                <fo:table-cell margin="0pt" padding="5pt 10pt 20pt 15pt" height="1in" background-color="yellow" 
+                   background-image="##img"
+                   background-position-horizontal="right" 
+                   background-position-vertical="bottom" 
+                   background-repeat="no-repeat">
+                  <fo:block>image in bottom right corner</fo:block>
+                </fo:table-cell>
+              </fo:table-row>
+              <fo:table-row>
+                <fo:table-cell margin="0pt" padding="5pt 10pt 20pt 15pt" height="1in" background-color="yellow" 
+                   background-image="##img"
+                   background-position-horizontal="center" 
+                   background-repeat="no-repeat">
+                  <fo:block>image in top center</fo:block>
+                </fo:table-cell>
+                <fo:table-cell margin="0pt" padding="5pt 10pt 20pt 15pt" height="1in" background-color="blue" 
+                   background-image="##img"
+                   background-position-horizontal="center" 
+                   background-position-vertical="center" 
+                   background-repeat="no-repeat">
+                  <fo:block>image in center</fo:block>
+                </fo:table-cell>
+                <fo:table-cell margin="0pt" padding="5pt 10pt 20pt 15pt" height="1in" background-color="green" 
+                   background-image="##img"
+                   background-position-horizontal="center" 
+                   background-position-vertical="bottom" 
+                   background-repeat="no-repeat">
+                  <fo:block>image in bottom center</fo:block>
+                </fo:table-cell>
+              </fo:table-row>
+              <fo:table-row>
+                <fo:table-cell margin="0pt" padding="5pt 10pt 20pt 15pt" height="1in" background-color="green" 
+                   background-image="##img"
+                   background-repeat="no-repeat">
+                  <fo:block>image in top left</fo:block>
+                </fo:table-cell>
+                <fo:table-cell margin="0pt" padding="5pt 10pt 20pt 15pt" height="1in" background-color="yellow" 
+                   background-image="##img"
+                   background-position-vertical="center" 
+                   background-repeat="no-repeat">
+                  <fo:block>image in center left</fo:block>
+                </fo:table-cell>
+                <fo:table-cell margin="0pt" padding="5pt 10pt 20pt 15pt" height="1in" background-color="blue" 
+                   background-image="##img"
+                   background-position-vertical="bottom" 
+                   background-repeat="no-repeat">
+                  <fo:block>image in bottom left</fo:block>
+                </fo:table-cell>
+              </fo:table-row>
+            </fo:table-body>
+          </fo:table>
+        </fo:flow>
+      </fo:page-sequence>
+    </fo:root>
+  </fo>
+  <checks>
+    <!-- first cell in row 1 -->
+    <eval expected="color=#0000ff,url=../../resources/images/box1.png,repeat=no-repeat,horiz=69991,vertical=0" xpath="//flow/block/block[1]/@background"/>
+    <!-- second cell in row 1 -->
+    <eval expected="color=#008000,url=../../resources/images/box1.png,repeat=no-repeat,horiz=69991,vertical=28495" xpath="//flow/block/block[2]/@background"/>
+    <!-- third cell in row 1 -->
+    <eval expected="color=#ffff00,url=../../resources/images/box1.png,repeat=no-repeat,horiz=69991,vertical=56991" xpath="//flow/block/block[3]/@background"/>
+    <!-- first cell in row 2 -->
+    <eval expected="color=#ffff00,url=../../resources/images/box1.png,repeat=no-repeat,horiz=34995,vertical=0" xpath="//flow/block/block[4]/@background"/>
+    <!-- second cell in row 2 -->
+    <eval expected="color=#0000ff,url=../../resources/images/box1.png,repeat=no-repeat,horiz=34995,vertical=28495" xpath="//flow/block/block[5]/@background"/>
+    <!-- third cell in row 2 -->
+    <eval expected="color=#008000,url=../../resources/images/box1.png,repeat=no-repeat,horiz=34995,vertical=56991" xpath="//flow/block/block[6]/@background"/>
+    <!-- first cell in row 3 -->
+    <eval expected="color=#008000,url=../../resources/images/box1.png,repeat=no-repeat,horiz=0,vertical=0" xpath="//flow/block/block[7]/@background"/>
+    <!-- second cell in row 3 -->
+    <eval expected="color=#ffff00,url=../../resources/images/box1.png,repeat=no-repeat,horiz=0,vertical=28495" xpath="//flow/block/block[8]/@background"/>
+    <!-- third cell in row 3 -->
+    <eval expected="color=#0000ff,url=../../resources/images/box1.png,repeat=no-repeat,horiz=0,vertical=56991" xpath="//flow/block/block[9]/@background"/>
+  </checks>
+</testcase>



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org