FOP error:

Here should go questions about transforming XML with XSLT and FOP.
Rodrik
Posts: 30

FOP error:

Wed Dec 17, 2014 12:12 pm

A colleague has installed XML Author 16.1, build 2014112517. She then copied our PDF plugin into the plugins folder and successfully ran the OT Integrator. When she then tried to run our PDF transformation on a DITA map, she got the following error:

[fop] 19434 INFO [ main ] org.apache.fop.apps.FOUserAgent - Rendered page #1.
[fop] 19457 WARN [ main ] org.apache.fop.apps.FOUserAgent - The following feature isn't implemented by Apache FOP, yet: table-layout="auto" (on fo:table) (See position 1:-1)
[fop] 19460 ERROR [ main ] org.apache.fop.apps.FOUserAgent - Invalid property value encountered in column-width="proportional-column-width(1)": org.apache.fop.fo.expr.PropertyException: file:/C:/Users/jessica/AppData/Local/Temp/OxygenXMLTemp/https___sharepoint.entersect.co.za_InfoDev_DITA/temp/pdf/topic.fo:1:-1: proportional-column-width() function may only be used when fo:table has table-layout="fixed".; property:'column-width' (See position 1:-1)
[fop] org.apache.fop.fo.expr.PropertyException: file:/C:/Users/jessica/AppData/Local/Temp/OxygenXMLTemp/https___sharepoint.entersect.co.za_InfoDev_DITA/temp/pdf/topic.fo:1:-1: proportional-column-width() function may only be used when fo:table has table-layout="fixed".; property:'column-width'
[fop] at org.apache.fop.fo.expr.ProportionalColumnWidthFunction.eval(ProportionalColumnWidthFunction.java:61)

I suspect that this may have something to do with the following override to static-content.xsl:

Code: Select all

<xsl:template name="insertBodyOddFooter">
      <fo:static-content flow-name="odd-body-footer">
         <fo:block xsl:use-attribute-sets="__body__odd__footer">            
            <fo:table  border-collapse="collapse" width="100%">
               <fo:table-column column-width="proportional-column-width(1)"/>
               <fo:table-column column-width="0.5in"/>
               <fo:table-column column-width="5.7in"/>
               <fo:table-column column-width="0.3in"/>
               <fo:table-column column-width="proportional-column-width(1)"/>
               <fo:table-body>
                  <fo:table-row height="0.3in">
...


However, this causes no problem on my installation of Oxygen XML Author 16.0, build 2014070913.

Could there be a different version of FOP installed on our two computers?

Regards

Rodrik
Radu
Posts: 5514

Re: FOP error:

Wed Dec 17, 2014 4:50 pm

Hi Rodrik,

I see she is publishing directly from a Sharepoint Webdav connection but this does not seem to be the problem.

Both Oxygen 16.0 and 16.1 are shipped with the same version of DITA Open Toolkit (1.8) and the same version of the Apache FOP processor.

There could be several explanations:

1) Maybe you installed and use the commercial RenderX XEP instead of Apache FOP in your PDF publishing.
2) Maybe you publish to PDF a different set of DITA topics than she is.
3) Indeed Apache FOP does not support proportional column widths with fixed table layouts
4) I'm still not sure if the errors reported by Apache FOP are fatal or not, maybe the cause of the failure is in another part of the ANT console log, so it would help if you could for example paste on this forum thread in a code block the entire output received from the DITA OT ANT transformation.
5) Maybe you are not using the same PDF XSLT customization to generate the output.
6) Maybe you changed the FOP configuration file(OXYGEN_INSTALL_DIR/frameworks/dita/DITA-OT/plugins/org.dita.pdf2/fop/conf/fop.xconf) to make it more lenient with errors.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Rodrik
Posts: 30

Re: FOP error:

Fri Dec 19, 2014 10:55 am

Hi Radu

Thank you for the suggestions. We found that placing a copy of the entire plug-ins folder worked -- which got us out of a fix. Now we'll need to do file comparison to try to isolate where the discrepancy lies.

Regards

Rodrik

Return to “XSLT and FOP”

Who is online

Users browsing this forum: No registered users and 0 guests