<?xml version="1.0" encoding="utf-8"?>
<t:test xmlns:t="http://xproc.org/ns/testsuite/3.0"
        xml:base="/ab-output-024.xml"
        name="ab-output-024.xml"
        expected="fail"
        code="err:XD0042">
   <t:info xmlns:err="http://www.w3.org/ns/xproc-error">
      <t:title>Output port 024 (AB)</t:title>
      <t:revision-history>
         <t:revision>
            <t:date>2020-09-28</t:date>
            <t:author>
               <t:name>Achim Berndzen</t:name>
            </t:author>
            <t:description xmlns="http://www.w3.org/1999/xhtml">
               <p>Added new tests</p>
            </t:description>
         </t:revision>
      </t:revision-history>
   </t:info>
   <t:description xmlns="http://www.w3.org/1999/xhtml"
                  xmlns:err="http://www.w3.org/ns/xproc-error">
      <p>Tests that XD0042 is raised if document with wrong content type appears on p:output.</p>
   </t:description>
   <t:pipeline xmlns:err="http://www.w3.org/ns/xproc-error">
      <p:declare-step xmlns:p="http://www.w3.org/ns/xproc" version="3.0">
         <p:output port="result"/>
         <p:for-each>
            <p:with-input>
               <input/>
            </p:with-input>
            <p:output port="result" content-types="text/plain"/>
            <p:identity>
               <p:with-input>
                  <doc/>
               </p:with-input>
            </p:identity>
         </p:for-each>
      </p:declare-step>
   </t:pipeline>
</t:test>
