<?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 - #009</t:title>
  
  <t:description xmlns="http://www.w3.org/1999/xhtml">                                                              
    <p>If the <code>select</code> XPath expression is a single
    variable reference, the namespace context of the option/variable
    is used.</p>
  </t:description>     
  
  <t:pipeline>
    <p:declare-step version='1.0' name="pipeline">
      <p:output port="result"/>
      <p:option name="opt" select="'pfx:para'"/>
      
      <p:delete xmlns:pfx="http://example.org">
        <p:input port="source">
          <p:inline>
            <doc>
              <pfx:para>Some text</pfx:para>
            </doc>
          </p:inline>
        </p:input>
        <p:with-option name="match" select="$opt"/>
      </p:delete>
    </p:declare-step>
  </t:pipeline>
  
</t:test>

