<?xml version="1.0" encoding="utf-8"?>
<t:test xmlns:t="http://xproc.org/ns/testsuite/3.0"
        xml:base="/ab-with-input-067.xml"
        name="ab-with-input-067.xml"
        expected="fail"
        code="err:XS0043">
   <t:info xmlns:err="http://www.w3.org/ns/xproc-error">
      <t:title>with-input-067</t:title>
      <t:revision-history>
         <t:revision>
            <t:date>2020-06-21</t:date>
            <t:author>
               <t:name>Achim Berndzen</t:name>
            </t:author>
            <t:description xmlns="http://www.w3.org/1999/xhtml">
               <p>Test anonymous input ports etc. are treated right.</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 XS0043 is raised because @port is not allowed on p:with-input.</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 port="source" select="/doc">
               <doc/>
               <doc/>
            </p:with-input>
            <p:identity/>
         </p:for-each>
         <p:wrap-sequence wrapper="result"/>
      </p:declare-step>
   </t:pipeline>
</t:test>
