OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: [docbook-apps] PDF output: am I missing something?

Well, table-layout="fixed" is already the default for fop users. It isn't handled by the table.table.properties, but by a separate xsl:if statement in the template matching on tgroup (which generates the fo:table). That error message is probably coming from another element that generates a layout table, and fails to take into account this fop limitation. If you can identify what element generates such a table, we can fix that.

Since "auto" is the default, it isn't necessary to set it for other processors. I don't think you want to explicitly set "auto" for all tables. The XSL-FO spec says:

"The use of the "proportional-column-width()" function is only permitted when the fixed table layout is used."

So if a table's column specs include any "*", then you might get error messages for that combination. The stylesheet currently checks for any "*" and outputs table-layout="fixed" for such tables, regardless of the processor.

Bob Stayton
Sagehill Enterprises

----- Original Message ----- From: "David Cramer" <david@thingbag.net>
To: <docbook-apps@lists.oasis-open.org>
Sent: Friday, December 02, 2011 1:41 PM
Subject: Re: [docbook-apps] PDF output: am I missing something?

Hash: SHA1

On 12/02/2011 02:42 PM, Bob Stayton wrote:
Hi Robin, It sounds like what you are missing is an XSL-FO
processor that supports the table-layout="auto" value for tables,
which will size columns automatically to fit short data.
Unfortunately, FOP does not support the "auto" value, and so
requires tables to have table-layout="fixed", which when column
widths are not specified results in equal column widths.  Both XEP
and Antenna House support table-layout="auto", which is actually
the default value for that property in the specification.

That reminds me, is there any reason not to make table-layout="fixed"
the default for fop users?

<xsl:attribute-set name="table.table.properties">
 <xsl:attribute name="border-collapse">collapse</xsl:attribute>
 <xsl:attribute name="table-layout">
     <xsl:when test="$fop.extensions != 0 and $fop1.extensions !=

This would avoid messages like the following from fop:

WARNING: The following feature isn't implemented by Apache FOP, yet:
table-layout="auto" (on fo:table) (See position 1371:1364)
Dec 2, 2011 3:03:46 PM org.apache.fop.events.LoggingEventListener

Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/


To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]