<?xml version="1.0" encoding="utf-8"?>
<t:test xmlns:t="http://xproc.org/ns/testsuite/3.0"
        xml:base="/ab-replace-008.xml"
        name="ab-replace-008.xml"
        expected="fail"
        code="err:XC0023">
   <t:info xmlns:err="http://www.w3.org/ns/xproc-error">
      <t:title>p:replace-008 (AB)</t:title>
      <t:revision-history>
         <t:revision>
            <t:date>2019-05-18</t:date>
            <t:author>
               <t:name>Achim Berndzen</t:name>
            </t:author>
            <t:description xmlns="http://www.w3.org/1999/xhtml">
               <p>New tests for p:replace</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 p:replace</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:replace match="@a">
            <p:with-input port="source">
               <doc a="4"/>
            </p:with-input>
            <p:with-input port="replacement">
               <new-element>
                  <element/>
               </new-element>
            </p:with-input>
         </p:replace>
      </p:declare-step>
   </t:pipeline>
</t:test>
