<?xml-stylesheet type="text/xsl" href="/style/testcase.xsl"?>
<t:test xmlns:t="http://xproc.org/ns/testsuite"
        xmlns:p="http://www.w3.org/ns/xproc"
        xmlns:c="http://www.w3.org/ns/xproc-step"
        xmlns:err="http://www.w3.org/ns/xproc-error"
	ignore-whitespace-differences="true">

<t:title>Test delete-005</t:title>

<t:description xmlns="http://www.w3.org/1999/xhtml">
  <p>Tests deleting a nested p:delete element from source input to further ensure XSLTMatchPattern works as expected with match option.</p>
</t:description>

<t:input port='source'>
<p:pipeline name="pipeline" xmlns:p="http://www.w3.org/ns/xproc">

<p:group>
<p:delete>
  <p:option name="target" value="p:delete"/>
</p:delete>
</p:group>

<p:delete>
   <p:option name="target" value="test"/>
</p:delete>


</p:pipeline>
</t:input>

<t:pipeline>
<p:pipeline version='1.0' name="pipeline">

<p:delete match="p:delete"/>

</p:pipeline>
</t:pipeline>

<t:output port='result'>
<p:pipeline name="pipeline" xmlns:p="http://www.w3.org/ns/xproc">

<p:group>

</p:group>

</p:pipeline></t:output>

</t:test>
