<?xml version="1.0" encoding="utf-8"?>
<t:test xmlns:t="http://xproc.org/ns/testsuite/3.0"
        xml:base="/ab-input-031.xml"
        name="ab-input-031.xml"
        expected="fail"
        code="err:XD0016"
        features="HOF">
   <t:info xmlns:err="http://www.w3.org/ns/xproc-error">
      <t:title>Input 031</t:title>
      <t:revision-history>
         <t:revision>
            <t:date>2023-08-14</t:date>
            <t:author>
               <t:name>Achim Berndzen</t:name>
            </t:author>
            <t:description xmlns="http://www.w3.org/1999/xhtml">
               <p>Initial test.</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 XD0016 is raised, when @select returns a function.</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:input port="source" select="function($a){$a}">
            <doc att1="1" att2="2"/>
         </p:input>
         <p:output port="result"/>
         <p:identity/>
      </p:declare-step>
   </t:pipeline>
</t:test>
