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
bobs@sagehill.net


----- 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?


-----BEGIN PGP SIGNED MESSAGE-----
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-before-width.conditionality">retain</xsl:attribute>
 <xsl:attribute name="border-collapse">collapse</xsl:attribute>
 <xsl:attribute name="table-layout">
   <xsl:choose>
     <xsl:when test="$fop.extensions != 0 and $fop1.extensions !=
0">fixed</xsl:when>
     <xsl:otherwise>auto</xsl:otherwise>
   </xsl:choose>
 </xsl:attribute>
</xsl:attribute-set>

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
processEvent

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

iQEcBAEBAgAGBQJO2UXyAAoJEMHeSXG7afUhJu8H/0GquT/P4yIrZH1mq/vCZVjO
HTJzUdDVZbJVvpX+CYI+U9J1wdDoaKza5IugvkL+DM5a/t4EXM9x7jfmckPFTzCJ
92+6mvigovzq+qHy0Y/5CzIQ9DmBHqjFuXa+Ucux+ejGyD6+UIAIjn+ChaB2Sdky
7S4tX2aTGEfOZ6soINa9blR+NkWvubrRwC0oRFMzqnutAm0Ft7G64QXv7pAuCEzT
muUPDyDBX0RZoSdnKGt2E5qnVPyvCqwLTUEBBnrtemx+PM5iljWMpnUWWXtbBeXn
lpvURn4xjOWNzlQaUV1ILeE66kCxa9HinfJ163EMm9m0cH1XDnOepRLg7fnij3Q=
=CwQV
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
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]