Cannot connect output port to a step's input port
A Java implementation of XProc 3.1
Brought to you by:
xml-project-com
The following XProc 3.0 does not run with 0.9.2.5-beta:
<p:declare-step name="main" version="3.0"
xmlns:p="http://www.w3.org/ns/xproc">
<p:input port="source"/>
<p:output port="result">
<p:pipe step="main" port="source"/>
</p:output>
</p:declare-step>
Morgana exists with the following error:
Exception in thread "main" java.lang.NullPointerException
at com.xml_project.morganaxproc3.compiler.Subpipeline.checkPipeConnections(Unknown Source)
at com.xml_project.morganaxproc3.compiler.StepDeclaration.checkPipeConnections(Unknown Source)
at com.xml_project.morganaxproc3.compiler.StepDeclaration.compile(Unknown Source)
at com.xml_project.morganaxproc3.XProcCompiler.compile(Unknown Source)
at com.xml_project.morganaxproc3.XProcEngine.main(Unknown Source)
I use this construct in my Schematron processor's XProc step.
As a workaround I create the primary output port 'result' with an p:identity step.
Cheers!
David
Hi David,
thanks for reporting, I found this problem last week and it will be fixed in the next release.
The temporary workaround is as you suggested.
Greetings from Wolfenbüttel,
Achim
Ticket moved from /p/morganaxproc/tickets/20/
Fixed with 0.9.3