[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: fop1.extension problem with XSL Stylesheets
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 in
docbook-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>
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]