<t:test xmlns:t="http://xproc.org/ns/testsuite/3.0" xmlns:err="http://www.w3.org/ns/xproc-error" expected="fail" code="err:XD0007">
   <t:info>
      <t:title>Output port 022 (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">
      <p>Tests that XD0007 is raised if sequence arrives on a non-sequence output port.</p>
   </t:description>
   <t:pipeline>
      <p:declare-step xmlns:p="http://www.w3.org/ns/xproc" 
                      xmlns:test="http://test" version="3.0">
         <p:output port="result" sequence="true"/>
         
            <p:declare-step type="test:test">
               <p:output port="result" sequence="false"/>
               <p:identity>
                  <p:with-input>
                     <doc1 />
                     <doc2 />
                  </p:with-input>
               </p:identity>
            </p:declare-step>
         
            <test:test />
      </p:declare-step>
   </t:pipeline>
</t:test>