Exit Code 0, but no PDF

Here should go questions about transforming XML with XSLT and FOP.
ltaylor
Posts: 3
Joined: Wed Feb 27, 2013 6:16 pm

Exit Code 0, but no PDF

Post by ltaylor »

Build is successful with exit code 0, but no pdf is created.

Error message [java] Could not create XEP formatter: org.xml.sax.SAXParseException: Content is not allowed in prolog.
adrian
Posts: 2855
Joined: Tue May 17, 2005 4:01 pm

Re: Exit Code 0, but no PDF

Post by adrian »

Hello,

Please provide more details about the context of the problem.
What transformation are you running and against what type of file (DITA, DocBook, custom)?
Is it a builtin transformation scenario or your own?

"Content is not allowed in prolog." usually means that the input for that step (FO Processing with XEP in your case) is broken. So, the XSLT stylesheet that generates the FO has failed in some way.

You can see something similar on this thread:
DITA to PDF error, no PDF output now despite build success

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Radu
Posts: 9058
Joined: Fri Jul 09, 2004 5:18 pm

Re: Exit Code 0, but no PDF

Post by Radu »

Hi,

If you are using the DITA Open Toolkit to publish DITA content:

If you edit the DITA to PDF transformation, in the Parameters tab you can add the parameter xep.failOnError and set it to true.
You should also set the parameter clean.temp to no and after the transformation look in the temporary files folder for a file called topic.fo. Probably the generated XSL-FO file is not wellformed.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
ltaylor
Posts: 3
Joined: Wed Feb 27, 2013 6:16 pm

Re: Exit Code 0, but no PDF

Post by ltaylor »

I added xep.failOnError and set it to true and set the parameter clean.temp to no. The build failed with
C:\Program Files\Oxygen XML Author 14\frameworks\dita\DITA-OT\build.xml:37: The following error occurred while executing this line:
C:\Program Files\Oxygen XML Author 14\frameworks\dita\DITA-OT\demo\fo\build.xml:137: The following error occurred while executing this line:
C:\Program Files\Oxygen XML Author 14\frameworks\dita\DITA-OT\demo\fo\build_xep.xml:109: Java returned: 1
ltaylor
Posts: 3
Joined: Wed Feb 27, 2013 6:16 pm

Re: Exit Code 0, but no PDF

Post by ltaylor »

Program Files\Oxygen XML Author 14\frameworks\dita\DITA-OT\build.xml:37:
The line is <antcall target="dita2${transtarget}"></antcall>

C:\Program Files\Oxygen XML Author 14\frameworks\dita\DITA-OT\demo\fo\build.xml:137:
The line is <antcall target="publish.map.pdf"></antcall>
Radu
Posts: 9058
Joined: Fri Jul 09, 2004 5:18 pm

Re: Exit Code 0, but no PDF

Post by Radu »

Hi,

I would need to look at the entire console output. You can send it to support@oxygenxml.com

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Radu
Posts: 9058
Joined: Fri Jul 09, 2004 5:18 pm

Re: Exit Code 0, but no PDF

Post by Radu »

Hi,

Oxygen 15.0 will have the parameter xep.failOnError set by default so is XEP fails to produce the PDF output, the ANT publishing will also fail.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply