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 je...@apache.org on 2005/08/16 10:07:39 UTC

svn commit: r232959 - /xmlgraphics/fop/trunk/src/documentation/content/xdocs/fo.xml

Author: jeremias
Date: Tue Aug 16 01:07:35 2005
New Revision: 232959

URL: http://svn.apache.org/viewcvs?rev=232959&view=rev
Log:
Fix centering table example not to use empty table-cells which is forbidden. Use column-number instead! Works for both FOP 0.20.5 and Trunk.
Added note about right-aligning tables.

Modified:
    xmlgraphics/fop/trunk/src/documentation/content/xdocs/fo.xml

Modified: xmlgraphics/fop/trunk/src/documentation/content/xdocs/fo.xml
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/src/documentation/content/xdocs/fo.xml?rev=232959&r1=232958&r2=232959&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/documentation/content/xdocs/fo.xml (original)
+++ xmlgraphics/fop/trunk/src/documentation/content/xdocs/fo.xml Tue Aug 16 01:07:35 2005
@@ -1,6 +1,6 @@
 <?xml version="1.0" standalone="no"?>
 <!--
-  Copyright 1999-2004 The Apache Software Foundation
+  Copyright 1999-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.
@@ -175,11 +175,9 @@
         <fo:table-column column-width="proportional-column-width(1)"/>
         <fo:table-body>
           <fo:table-row>
-            <fo:table-cell/>
-            <fo:table-cell>
+            <fo:table-cell column-number="2">
               <fo:block>foo</fo:block>
             </fo:table-cell>
-            <fo:table-cell/>
           </fo:table-row>
         </fo:table-body>
       </fo:table>
@@ -188,6 +186,15 @@
 </fo:root>]]></source>
         <p>
           If your table is more complicated, or if defining borders on individual cells becomes too much work, use the code above and nest your table within the middle cell.
+        </p>
+      </section>
+      <section id="fo-right-align-table-horizon">
+        <title>Right-Aligning (Tables)</title>
+        <p>
+          To right-align a table, you can use the same approach as above for centering tables. 
+          Just remove the last table-column element which causes all the left-over space not 
+          used by the columns with a fixed column-width to be assigned to the first column which
+          effectively right-aligns the table.
         </p>
       </section>
       <section id="fo-oddeven">



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