Tests a subpipeline that ends with a p:variable.

Test ab-subpipeline-001.xml is expected to pass.

The pipeline

      <p:declare-step xmlns:p="" version="3.0">
         <p:output port="result"/>
            <p:with-input><doc xmlns=""/></p:with-input>
            <p:variable name="irrelevant" select="count(//*)"/>
MorganaXProc passing XML Calabash failing

Schematron validation

      <s:schema xmlns:s="">
         <s:ns prefix="p" uri=""/>
            <s:rule context="/">
               <s:assert test="doc">Document root is not 'doc'.</s:assert>
               <s:assert test="count(/doc/*)=0">doc should not have any children.</s:assert>

Revision history

12 Jan 2019, Achim Berndzen

Added test.