FOP generates errors for background-color

Having trouble installing <oXygen/>? Got a bug to report? Post it all here.
bburns
Posts: 4

FOP generates errors for background-color

Tue Jun 20, 2017 1:39 am

I'm trying to set some background colors, and FOP is generating errors. It doesn't matter if I use valid color names or valid HEX values, I get this error:

[fop] [ERROR] Invalid property value encountered in background-color="": org.apache.fop.fo.expr.PropertyException: file:/C:/dita-demo-content-collection-master/Thunderbird/temp/custpdf/topic.fo:21:-1: No conversion defined ; property:'background-color' (See position 21:-1)

The output still generates, but it sure creates a lot of garbage to go through if I need to debug a real issue. Is this a known issue?
Bill Burns
Content Architect | Healthwise
bburns@healthwise.org | www.healthwise.org
208.331.6917 (office) | 208.345.1897 (fax)

Healthwise helps people make better health decisions.
Radu
Posts: 5217

Re: FOP generates errors for background-color

Tue Jun 20, 2017 8:26 am

Dear Bill,

We are not familiar with how your PDF customization looks like.
Maybe you could set the parameter "clean.temp=no" and after publishing open the XSL-FO file from the transformation temporary files folder (probably in your case /C:/dita-demo-content-collection-master/Thunderbird/temp/custpdf/topic.fo), format and indent it in Oxygen (using the toolbar action) and then search for background-color="". Then look and try to find out what parts of your XSLT customization generated that empty color.

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

Re: FOP generates errors for background-color

Tue Jun 20, 2017 5:34 pm

Did this, but I was looking at the wrong instances (which were not problematic). I managed to find the real problem elsewhere. Thanks.
Bill Burns
Content Architect | Healthwise
bburns@healthwise.org | www.healthwise.org
208.331.6917 (office) | 208.345.1897 (fax)

Healthwise helps people make better health decisions.

Return to “Common Problems”

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest