<?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 use-when #004</t:title>

  <t:description xmlns="http://www.w3.org/1999/xhtml">
    <p>Tests that p:use-when is applied to elements not in the XProc namespace.</p>
  </t:description>

  <t:pipeline>
    <p:declare-step version="1.0" xmlns:ex="http://example.org/ns/pipelines">
      <p:output port="result"/>

      <p:declare-step type="ex:supported-step">
        <p:output port="result"/>
        <p:identity>
          <p:input port="source">
            <p:inline>
              <success/>
            </p:inline>
          </p:input>
        </p:identity>
      </p:declare-step>

      <ex:supported-step p:use-when="true()"/>

    </p:declare-step>
  </t:pipeline>

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

</t:test>

