[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook] fop1.extension problem with XSL Stylesheets
As a workaround, you can set it in the attribute-set in your customization layer: <xsl:attribute-set name="table.table.properties"> <xsl:attribute name="table-layout">fixed</xsl:attribute> </xsl:attribute-set>And FYI, the docbook-apps mailing list is the right place to ask about stylesheet issues.
Bob Stayton Sagehill Enterprises bobs@sagehill.net----- Original Message ----- From: "Paul Tremblay" <paulhtremblay@gmail.com>
To: <docbook@lists.oasis-open.org> Sent: Tuesday, January 17, 2012 8:11 PM Subject: [docbook] fop1.extension problem with XSL Stylesheets
I have encountered the following problem when working with Norman Walsh's stylesheets. I am processing a document with a table. I have included the table at the end of the document. I am using FOP 1.0 to process the document.If I set the parameter fop1.extension to 1, I still get an error message from FOP that auto table is not supported. I hunted and found the problem seems to be with htmltbl.xsl stylesheet, found indocbook-xsl-ns-1.76.1/fo/ The problematic code is at the top, with the template that matches d:table: <fo:table xsl:use-attribute-sets="table.table.properties"> <xsl:choose> <xsl:when test="$fop.extensions != 0 or ^^^^^^^ $passivetex.extensions != 0"> <xsl:attribute name="table-layout">fixed</xsl:attribute> </xsl:when> </xsl:choose>FOP needs the table-layout attribute to be set to fixed in order to render tables, but the stylesheet only sets this attribute to fixed if fop.extenstion != 0. If I change the above to<xsl:when test="$fop.extensions != 0 or $fop1.extension != 0 Then the code works fine. Am I missing something? Paul ================================================================== <?xml version="1.0"?> <doc:article xmlns:doc="http://docbook.org/ns/docbook"> <doc:info> <doc:title>Executive Report</doc:title> </doc:info> <doc:section xml:id="introduction"> <doc:title>Introduction</doc:title> <doc:para>text</doc:para><doc:table class="overall-costs" title="Overall Costs" width="50%" frame="void" rules="groups"><?dbhtml table-width="50%" ?> <doc:caption> Costs for cutover in dollars. </doc:caption> <doc:colgroup> <doc:col width="50%"/> <doc:col width="50%"/> </doc:colgroup> <doc:thead> <doc:tr> <doc:td> <doc:para>Item</doc:para> </doc:td> <doc:td> <doc:para>Cost</doc:para> </doc:td> </doc:tr> </doc:thead> <doc:tbody> <doc:tr> <doc:td style="border-bottom:solid black 2px" align="right"> <doc:para>IT Costs</doc:para> </doc:td> <doc:td> <doc:para>403000</doc:para> </doc:td> </doc:tr> <doc:tr> <doc:td> <doc:para>Labor</doc:para> </doc:td> <doc:td> <doc:para>1000000</doc:para> </doc:td> </doc:tr> <doc:tr> <doc:td> <doc:para>System costs</doc:para> </doc:td> <doc:td> <doc:para>381900</doc:para> </doc:td> </doc:tr> <doc:tr> <doc:td> <doc:para>SLAM Lines</doc:para> </doc:td> <doc:td> <doc:para>1400000</doc:para> </doc:td> </doc:tr> <doc:tr> <doc:td> <doc:para>Put-To-Light</doc:para> </doc:td> <doc:td> <doc:para>900000</doc:para> </doc:td> </doc:tr> <doc:tr> <doc:td> <doc:para>Total</doc:para> </doc:td> <doc:td/> </doc:tr> </doc:tbody> </doc:table> </doc:section> </doc:article> --------------------------------------------------------------------- To unsubscribe, e-mail: docbook-unsubscribe@lists.oasis-open.org For additional commands, e-mail: docbook-help@lists.oasis-open.org
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]