Menu

#28 Cannot connect output port to a step's input port

closed
2020-05-28
2020-05-14
David Maus
No

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.

https://github.com/schxslt/schxslt/blob/a2ba654a1a587e8aa81ab918a822e50603e49952/core/src/main/resources/xproc/1.0/validate-with-schematron.xpl#L11

As a workaround I create the primary output port 'result' with an p:identity step.

Cheers!
David

Discussion

  • xml-project.com

    xml-project.com - 2020-05-14

    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

     
  • xml-project.com

    xml-project.com - 2020-05-14
    • labels: --> fixed-in-next-release
    • status: open --> accepted
    • assigned_to: xml-project.com
     
  • xml-project.com

    xml-project.com - 2020-05-14

    Ticket moved from /p/morganaxproc/tickets/20/

     
  • xml-project.com

    xml-project.com - 2020-05-28
    • status: accepted --> closed
     
  • xml-project.com

    xml-project.com - 2020-05-28

    Fixed with 0.9.3

     

Log in to post a comment.

MongoDB Logo MongoDB