p:if-005 (AB)

Test XS0108 is raised, if the p:if step does not specify a primary output port (implicit).

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

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" sequence="true"/>
   <p:identity>
      <p:with-input>
         <doc/>
      </p:with-input>
   </p:identity>
   <p:if test="." name="if">
      <p:identity/>
      <p:sink/>
   </p:if>
</p:declare-step>

Revision history

06 Apr 2019, Achim Berndzen
New tests