Page 1 of 1
Exit Code 0, but no PDF
Posted: Wed Feb 27, 2013 6:34 pm
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.
Re: Exit Code 0, but no PDF
Posted: Wed Feb 27, 2013 6:53 pm
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
Re: Exit Code 0, but no PDF
Posted: Thu Feb 28, 2013 9:38 am
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
Re: Exit Code 0, but no PDF
Posted: Fri Mar 01, 2013 4:55 pm
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
Re: Exit Code 0, but no PDF
Posted: Fri Mar 01, 2013 5:17 pm
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>
Re: Exit Code 0, but no PDF
Posted: Fri Mar 01, 2013 5:21 pm
by Radu
Hi,
I would need to look at the entire console output. You can send it to
support@oxygenxml.com
Regards,
Radu
Re: Exit Code 0, but no PDF
Posted: Mon Jun 10, 2013 11:08 am
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