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

<t:description xmlns="http://www.w3.org/1999/xhtml">
  <p>Tests the inline input port behavior, variant on input-001.xml.</p>  
</t:description>

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

<t:pipeline>
	<p:pipeline version='1.0' name="main"
	            xmlns:p="http://www.w3.org/ns/xproc">

	      <p:identity name="step1">
	        <p:input port="source">
	            <p:inline>
	                <step1_test/>
	            </p:inline>
	        </p:input>
	      </p:identity>

	      <p:identity name="step2">
	        <p:input port="source">
	            <p:inline>
	                <step2_test/>
	            </p:inline>
	        </p:input>
	      </p:identity>

              <p:sink/>

	      <p:identity name="step3">
	          <p:input port="source">
	              <p:pipe step="step1" port="result"/>
	          </p:input>
	      </p:identity>

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

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

</t:test>

