[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: AW: [docbook-apps] Centered table cells
I do NOT implement the extensions - this might possibly be relevant. <!-- <xsl:param name="use.extensions" select="1" /> <xsl:param name="tablecolumns.extension" select="1" /> -->Just for the record I do have some table customization but these do not appear to be relevant) These I do implement:
<!-- table border styles --> <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'" /><!-- table header to come only at start of table - skip header at page breaks -->
<xsl:attribute-set name="table.table.properties"> <xsl:attribute name="table-omit-header-at-break">true</xsl:attribute> </xsl:attribute-set><!-- table properties control for the fo:block that contains a table and its title-->
<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><!-- table footer to come only at end of table - skip footer at page breaks -->
<xsl:attribute-set name="table.table.properties"> <xsl:attribute name="table-omit-footer-at-break">true</xsl:attribute> </xsl:attribute-set><!-- table header to come only at start of table - skip header at page breaks -->
<xsl:attribute-set name="table.table.properties"> <xsl:attribute name="table-omit-header-at-break">true</xsl:attribute> </xsl:attribute-set><!-- get tables without any titles, figures with title only (no chapter x) -->
<!-- DocbookXSL 4th. edition, p.494 --> <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
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]