Open josteinaj opened 6 years ago
When I try manually fixing the output fileset by replacing the NCC with the original NCC, updating the filename for the SMIL backlinks, I get this cryptic message:
java.lang.RuntimeException: com.xmlcalabash.core.XProcException: Reading result on main
at org.daisy.common.xproc.calabash.impl.CalabashXProcPipeline.run(CalabashXProcPipeline.java:245) ~[na:na]
at org.daisy.pipeline.job.Job.run(Job.java:216) ~[na:na]
at org.daisy.pipeline.job.impl.DefaultJobExecutionService$1.run(DefaultJobExecutionService.java:113) ~[na:na]
at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_151]
Caused by: com.xmlcalabash.core.XProcException: Reading result on main
at com.xmlcalabash.core.XProcException.dynamicError(XProcException.java:160) ~[na:na]
at com.xmlcalabash.runtime.XPipeline.doRun(XPipeline.java:247) ~[na:na]
at com.xmlcalabash.runtime.XPipeline.run(XPipeline.java:136) ~[na:na]
at com.xmlcalabash.runtime.XPipelineCall.run(XPipelineCall.java:94) ~[na:na]
at com.xmlcalabash.runtime.XPipeline.doRun(XPipeline.java:236) ~[na:na]
at com.xmlcalabash.runtime.XPipeline.run(XPipeline.java:136) ~[na:na]
at com.xmlcalabash.runtime.XPipelineCall.run(XPipelineCall.java:94) ~[na:na]
at com.xmlcalabash.runtime.XPipeline.doRun(XPipeline.java:236) ~[na:na]
at com.xmlcalabash.runtime.XPipeline.run(XPipeline.java:136) ~[na:na]
at org.daisy.common.xproc.calabash.impl.CalabashXProcPipeline.run(CalabashXProcPipeline.java:242) ~[na:na]
... 3 common frames omitted
It sounds like there's an empty sequence of documents appearing in a XProc script where a sequence is not allowed, probably because of a bad href at some point, which should rather be displayed as a validation error and not a stacktrace.
@josteinaj I'm confused. You opened this issue in 2017, but the behavior you describe doesn't match the code at that time. Already in 2014 you did improvements to the NCC. Since that commit the NCC is not generated from the nav document anymore. Incidentally, in that commit you changed nav-to-ncc.xsl, but the file is not even used anymore.
That's strange. I guess I'll have to do some more testing to see what the current behavior is.
Steps to reproduce:
The ncc is based on the EPUB 3 navigation document. However, it is not properly converted. Most of the metadata is missing, and the content is mostly the same as in the EPUB 3 navigation document.
input ncc:
output ncc: