<?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">

<t:title>Test namespace-rename-017</t:title>

<t:description xmlns="http://www.w3.org/1999/xhtml">
<p>Test to make sure that a deleted namespace is handled correctly in a nested
structure.</p>
</t:description>

<t:input port='source'>
  <doc xmlns="http://www.example.com/"
       xmlns:ns="http://www.example.com/ns">
    <parent>
      <ns:child/>
    </parent>
  </doc>
</t:input>

<t:pipeline>
<p:pipeline version='1.0' name="pipeline">
  <p:namespace-rename from="http://www.example.com/ns"/>
</p:pipeline>
</t:pipeline>

<t:output port='result'>
  <doc xmlns="http://www.example.com/">
    <parent>
      <child xmlns=""/>
    </parent>
  </doc>
</t:output>

</t:test>

