<?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 p:declare-step-005</t:title>

  <t:description xmlns="http://www.w3.org/1999/xhtml">
    <p>Tests p:option on a pipeline declared using p:declare-step</p>    
  </t:description>
  
  <t:input port="source">
    <t:document>
		<test>
		    <a>test1</a>
		    <b/>
		</test>    
	</t:document>
  </t:input>

  <t:pipeline>
    <p:declare-step version='1.0' xmlns:p="http://www.w3.org/ns/xproc">
	    <p:input port="source"/>
	    <p:output port="result"/>
	    <p:option name="test-option" select="'some string value'"/>
	    <p:identity>
	        <p:input port="source">
	            <p:inline>
	                <inline_identity_test/>
	            </p:inline>
	        </p:input>
	    </p:identity>
	</p:declare-step>
  </t:pipeline>

  <t:output port="result"><inline_identity_test/></t:output>

</t:test>

