Invalid property encountered on fo:block

0
Printing mails from my inbox via a document template (xhtml on the message is 'on'). Most of these prints are successfull. However every now and then there is one that cannot be printed at all. Error: javax.xml.transform.TransformerException: org.apache.fop.fo.ValidationException: Invalid property encountered on "fo:block": display (See position 55:148). Anyone knows a way to avoid this error?
asked
1 answers
0

XSL-FO is a markup language for Formatted Objects (PDF, RTF etc). Everything that is printed in the document should be output within a valid fo:block.

<fo:block> Content here </fo:block>

Mendix only performs the transformation from your models to XSL-FO (.fo file). This .fo file is then exported to the desired output type. You can't edit the .fo file directly, so you have to reverse engineer what throws the error.

Try setting the DocumentExporter lognode to 'trace' and see what the output of the .fo file is. Then inspect what is wrong, i.e. are you trying to print a variable that's blocked by security, is it an empty object/variable etc. Position 55:148 means the 55th line, 148th character in the .fo file.

Good luck!

answered