I have no problem centering content of cells for Docbook 5.1 using
Oxygen 17.1 with docbook-xsl-ns-1.79.1 (or 1.79.0)
I do NOT implement the extensions - this might possibly be relevant.
Just for the record I do have some table customization but these do not
appear to be relevant) These I do implement:
<xsl:param name="table.frame.border.color" select="'black'" />
<xsl:param name="table.cell.border.color" select="'black'" />
<xsl:param name="table.frame.border.thickness" select="'medium'" />
<xsl:param name="table.cell.border.thickness" select="'thin'" />
<xsl:param name="table.frame.border.style" select="'solid'" />
<xsl:param name="table.cell.border.style" select="'solid'" />
<xsl:attribute-set name="table.table.properties">
<xsl:attribute name="table-omit-header-at-break">true</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="table.properties">
<xsl:attribute name="space-before.minimum">0.5em</xsl:attribute>
<xsl:attribute name="space-before.optimum">1.0em</xsl:attribute>
<xsl:attribute name="space-before.maximum">2.0em</xsl:attribute>
<xsl:attribute name="space-before.minimum">0.5em</xsl:attribute>
<xsl:attribute name="space-before.optimum">1.0em</xsl:attribute>
<xsl:attribute name="space-before.maximum">2.0em</xsl:attribute>
<xsl:attribute name="keep-together.within-column">auto</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="table.table.properties">
<xsl:attribute name="table-omit-footer-at-break">true</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="table.table.properties">
<xsl:attribute name="table-omit-header-at-break">true</xsl:attribute>
</xsl:attribute-set>
<xsl:param name="local.l10n.xml" select="document('')"/>
<l:i18n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">
<l:l10n language="en">
<l:context name="title">
<l:template name="table" text="%t"/>
</l:context>
<l:context name="xref-number-and-title">
<l:template name="table" text="the table titled
“%t”"/>
</l:context>
<l:context name="title">
<l:template name="figure" text="%t"/>
</l:context>
<l:context name="xref-number-and-title">
<l:template name="figure" text="the figure titled
“%t”"/>
</l:context>
</l:l10n>
</l:i18n>
<xsl:template match="table" mode="label.markup"/>
<xsl:template match="figure" mode="label.markup"/>
On 02/04/2016 09:21 AM, Kallauch, Benjamin (EEIN/5) wrote:
> Dear Ron,
>
> it's about centering only the content/text within a single or more cells.
>
> regards,
> Ben
>
> -----Ursprüngliche Nachricht-----
> Von: Ron Catterall [mailto:
ron@catterall.net]
> Gesendet: Donnerstag, 4. Februar 2016 16:01
> An: Kallauch, Benjamin (EEIN/5); Docbook
> Betreff: Re: [docbook-apps] Centered table cells
>
> Is your problem centering the whole table, or just the content of each cell
>
> On 02/04/2016 08:57 AM, Kallauch, Benjamin (EEIN/5) wrote:
>> Dear community
>> I encountered a problem using XSL --> FO where I can't get centered
>> table cells (horizontally). In my opinion the cause is in a false
>> fo-structure, where the 'text-align' attribute is set in the
>> fo:table-cell element rather than in the fo:block child element.
>> The problem is maybe well known and solved long ago. Please, forgive me,
>> but I feel overwhelmed by the huge amount of hits when searching the
>> group. Can anyone please direct me to a solution, if there is any?
>> Thanks and best regards,
>> Benjamin
>
--
Ron Catterall Ph.D, DSc
ron@catterall.net