<?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 input-004</t:title>

<t:description xmlns="http://www.w3.org/1999/xhtml">
  <p>Tests the precedence of inputs.</p>  
</t:description>

<t:input port='source'>
<doc>
<?pi test?>
<p>This is a p.</p>
</doc>
</t:input>

<t:pipeline>
	 <p:declare-step version='1.0' name="pipeline"
	            xmlns:p="http://www.w3.org/ns/xproc">
	  <p:input port="source">
	              <p:inline>
	                  <anothertest/>
	              </p:inline>
	  </p:input>
    <p:output port="result"/>

    <p:identity>
	    <p:input port="source">
              <p:inline>
                  <identity_step_inline/>
              </p:inline>
        </p:input>
   </p:identity>
	</p:declare-step>
</t:pipeline>

<t:output port='result'><identity_step_inline/></t:output>

</t:test>

