with-input-071

Tests XS0043 is raised because @port is not allowed on p:with-input.

Test is expected to fail with error code err:XS0043.

The pipeline

<p:declare-step xmlns:err="http://www.w3.org/ns/xproc-error"
                xmlns:p="http://www.w3.org/ns/xproc"
                xmlns:t="http://xproc.org/ns/testsuite/3.0" version="3.0">
   <p:output port="result"/>
   <p:identity>
      <p:with-input>
         <source/>
      </p:with-input>
   </p:identity>
   <p:if test="true()">
      <p:with-input port="source">
         <doc/>
      </p:with-input>
      <p:identity/>
   </p:if>
</p:declare-step>

Revision history

29 Sep 2021, Norman Walsh
Replace <true/> with <p:identity/>.
21 Jun 2020, Achim Berndzen
Test anonymous input ports etc. are treated right.