<?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 versioning #006</t:title>

<t:description xmlns="http://www.w3.org/1999/xhtml">
  <p>Tests that forwards-compatible mode is triggered for nested steps.</p>
</t:description>

<t:pipeline>
<p:declare-step version="1.0" xmlns:ex="http://example.com/ns/xproc">
  <p:output port="result"/>

  <p:declare-step type="ex:test" version="2.0">
    <p:output port="result"/>
    <p:identity>
      <p:input port="source">
        <p:inline>
          <doc/>
        </p:inline>
      </p:input>
      <p:with-option name="new-option" select="'foo'"/>
    </p:identity>
  </p:declare-step>

  <ex:test/>

</p:declare-step>
</t:pipeline>

<t:output port="result"><doc/></t:output>

</t:test>
