Output port 027 (AB)

Tests that XD0042 is raised if document with wrong content type appears on p:output.

Test ab-output-027.xml is expected to fail with error code err:XD0042.

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"/>
   <p:choose>
      <p:when test="false()">
         <p:output port="result"/>
         <p:identity>
            <p:with-input>
               <doc/>
            </p:with-input>
         </p:identity>
      </p:when>
      <p:otherwise>
         <p:output port="result" content-types="text/plain"/>
         <p:identity>
            <p:with-input>
               <doc/>
            </p:with-input>
         </p:identity>
      </p:otherwise>
   </p:choose>
</p:declare-step>
MorganaXProc passing XML Calabash passing

Revision history

28 Sep 2020, Achim Berndzen

Added new tests