Lwan,
Here is what I am using for centering tables. This may get you closer. Its  
a modification of Bob Stayton's example in 
_http://sagehill.net/docbookxsl/TableAlignment.html_ 
(http://sagehill.net/docbookxsl/TableAlignment.html) .
 
Regards,
Dean Nelson
 

<!-- center tables in print, from p. 474 in Stayton: -->  
<xsl:template name="table.layout"> 
<xsl:param  name="table.content"/> 
<xsl:choose>
<xsl:when  test="self::table[@align]">
<fo:table width="100%"  table-layout="fixed">
<fo:table-column  column-width="proportional-column-width(1)"/>   
<fo:table-column/>  
<fo:table-column  column-width="proportional-column-width(1)"/>  
<fo:table-body   start-indent="0pt"> 
<fo:table-row>  
<fo:table-cell><fo:block></fo:block></fo:table-cell>  
<fo:table-cell>  
<fo:table>  
<fo:table-body start-indent="0pt">  
<fo:table-row><fo:table-cell><fo:block>  
<xsl:copy-of select="$table.content"/>  
</fo:block></fo:table-cell></fo:table-row>  
</fo:table-body>  
</fo:table>  
</fo:table-cell>  
<fo:table-cell><fo:block></fo:block></fo:table-cell>  
</fo:table-row> 
</fo:table-body>  
</fo:table>  
</xsl:when>
<xsl:otherwise>  
<xsl:copy-of select="$table.content"/>  
</xsl:otherwise>
</xsl:choose>
</xsl:template> 



In a message dated 12/13/2011 6:50:20 A.M. Pacific Standard Time,  
[email protected] writes:

Hey  everybody!

I am using fop 1.0 for rendering to pdf and have some  problems with my 
cals-tables.I tried different ways to handle that but  nothing worked.
I can not place my table in the center. I do not know why  but align 
center does not work.
Besides I want a dynamic table width  (fixed to the length of the 
content) in my print output (pdf).
What can  fop 1.0 do with tables? What cant it?
Do I need any extensions like  tablecolumns.extension?

Any suggestions?

Best regards Lwam
--  
Gruß Lwam Berhane



punkt.de GmbH          TYPO3-Internet-Dienstleistungen-Beratung
Kaiserallee 13a     Tel.: 0721 9109-0  Fax: -100
76133  Karlsruhe             [email protected]   http://punkt.de/
AG Mannheim 108285         Gf: Jürgen  Egeling

---------------------------------------------------------------------
To  unsubscribe, e-mail: [email protected]
For  additional commands, e-mail:  [email protected]

Reply via email to