<t:test xmlns:t="http://xproc.org/ns/testsuite/3.0" xmlns:err="http://www.w3.org/ns/xproc-error" expected="fail" code="err:XS0067">
   <t:info>
      <t:title>pipe-003 (AB)</t:title>
      <t:revision-history>
         <t:revision>
            <t:date>2019-05-31</t:date>
            <t:author>
               <t:name>Achim Berndzen</t:name>
            </t:author>
            <t:description xmlns="http://www.w3.org/1999/xhtml">
               <p>Checks p:pipe on p:with-option</p>
            </t:description>
         </t:revision>
      </t:revision-history>
   </t:info>
   <t:description xmlns="http://www.w3.org/1999/xhtml">
      <p>Tests XS0067 is raised if pipe on p:with-option goes to undefined drp.</p>
   </t:description>
   <t:pipeline>
      <p:declare-step xmlns:p="http://www.w3.org/ns/xproc" version="3.0">
         <p:output port="result" />
            
         <p:identity name="producer">
            <p:with-input><doc a="42"/></p:with-input>
         </p:identity>
         <p:sink />
         
         <p:add-attribute attribute-name="att">
            <p:with-input><result /></p:with-input>
            <p:with-option name="attribute-value" select="/doc/@a" pipe="" />
         </p:add-attribute>
         
      </p:declare-step>
   </t:pipeline>
</t:test>