opensagres / xdocreport

XDocReport means XML Document reporting. It's Java API to merge XML document created with MS Office (docx) or OpenOffice (odt), LibreOffice (odt) with a Java model to generate report and convert it if you need to another format (PDF, XHTML...).
https://github.com/opensagres/xdocreport
1.19k stars 369 forks source link

Problems with null values management #619

Open bianco81 opened 1 year ago

bianco81 commented 1 year ago

Hello, I'm getting some "unexpected" exceptions and othet problems when trying to manage null values.

You can find all the code and data I'm testing: "source.java" -> source java code "data.xml" -> input XML data file ".odt" -> ODT templates I'm testing ".log" -> error logs

Could you please help me to fix following problems?

"template_0.odt" -> process ends NonStringException (template_0.log). Reading the documentation I expected no errors "template_1.odt" -> same result as "template_0.odt" "template_2.odt" -> both "[#if" statements returns "true". I expected "false" in both cases "template_3.odt" -> same result as "template_2.odt" "template_4.odt" -> process ends without any error message, but the generated ODT is corrupted

Regards. data.zip

biadanpad commented 1 year ago

Hello, did you have a chance to have a look to this issue?