p:if-004 (AB)

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

Test ab-if-004.xml 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" 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:output port="result" primary="false">
         <doc/>
      </p:output>
      <p:identity/>
   </p:if>
</p:declare-step>
MorganaXProc passing XML Calabash passing

Revision history

06 Apr 2019, Achim Berndzen

New tests