<?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-012</t:title>
  
  <t:description xmlns="http://www.w3.org/1999/xhtml">
    <p>Tests the select attribute on the input port declaration.
    (The select expression is only applied when the default
    binding is used)</p>  
  </t:description>
  
  <t:pipeline>
    <p:declare-step version='1.0' xmlns:test="http://www.test.com">
      <p:output port="result"/>
      <p:declare-step type="test:foo">
        <p:input port="source" select="/doc/p"/>
        <p:output port="result"/>
        <p:identity/>
      </p:declare-step>

      <test:foo>
        <p:input port="source">
          <p:inline>
            <doc>
              <p>Some other text.</p>
            </doc>
          </p:inline>
        </p:input>
      </test:foo>
     
    </p:declare-step>
  </t:pipeline>

  <t:output port="result">
    <doc>
      <p>Some other text.</p>
    </doc>
  </t:output>

</t:test>


