FOP generates errors for background-color

Having trouble installing Oxygen? Got a bug to report? Post it all here.
bburns
Posts: 15
Joined: Mon Jun 19, 2017 11:24 pm

FOP generates errors for background-color

Post by bburns »

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: 9470
Joined: Fri Jul 09, 2004 5:18 pm

Re: FOP generates errors for background-color

Post by Radu »

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: 15
Joined: Mon Jun 19, 2017 11:24 pm

Re: FOP generates errors for background-color

Post by bburns »

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.
Post Reply