Document Download

0
 Hi All, We are getting below error when we are trying to down a PDF through a  template in Our application. Error on line 40 column 54    SXCH0003: org.apache.fop.fo.ValidationException: "fo:list-block" is missing child   elements. Required content model: marker* (list-item)+ (See position 40:54): null:40:54:   "fo:list-block" is missing child elements. Required content model: marker* (list-item)+   (See position 40:54) CRITICAL - DocumentExporter: "fo:list-block" is missing child elements. Required content model: marker* (list-item)+ (See position 40:54) ERROR - ActionManager: Exception in execution of monitored action '{"name":"Test.ACT_GeneratePDFDoc","type":"Microflow"}' (execution id: xxxxxxxxxxxxxxxxxxxx, execution type: CLIENT_ASYNC_MONITORED) ERROR - ActionManager: com.mendix.modules.microflowengine.MicroflowException: net.sf.saxon.trans.XPathException: org.apache.fop.fo.ValidationException: "fo:list-block" is missing child elements. Required content model: marker* (list-item)+ (See position 40:54)     at Test.ACT_GeneratePDFDoc (DocumentExport : 'Generate PDF (.pdf) document using template 'Testing'') Advanced stacktrace:     at com.mendix.modules.microflowengine.MicroflowUtil.processException(MicroflowUtil.java:146) Caused by: com.mendix.systemwideinterfaces.MendixRuntimeException: net.sf.saxon.trans.XPathException: org.apache.fop.fo.ValidationException: "fo:list-block" is missing child elements. Required content model: marker* (list-item)+ (See position 40:54) Now what we have is a page where we are asking users to fill the data for the field Test shown in Pic1. Also in our template we are using this field which will display the data entered by users once we download the PDF with properties set as shown (Pic 2). Do help us out if somebody has already faced similar situation of have any idea.
asked
2 answers
0

As Joost stated the issue is probably the html that needs to be sanitized through the xsssanitize action from the community commons module java action to make sure that the pdf uses xhtml.

Just mentioning this here to make sure the posted is marked as answered

answered
0

This is the way i have make use Of XSSsanitize Java Action

answered