<?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"
        error="err:XD0023">

  <t:title>Test err:XD0023 - #006</t:title>

  <t:description xmlns="http://www.w3.org/1999/xhtml">
    <p>Tests that the variable bindings consist only of bindings for options whose
    declaration precedes the p:option itself in the surrounding step signature.</p>
  </t:description>

  <t:pipeline>

    <p:declare-step version='1.0'>
      <p:option name="opt1" select="$opt2"/>
      <p:option name="opt2" select="'value'"/>

      <p:sink>
        <p:input port="source">
          <p:inline><doc/></p:inline>
        </p:input>
      </p:sink>
    </p:declare-step>

  </t:pipeline>


</t:test>
