<?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 #002</t:title>

  <t:description xmlns="http://www.w3.org/1999/xhtml">
    <p>Tests that use-when is not applied in the descendants of p:inline.</p>
  </t:description>

  <t:pipeline>
    <p:declare-step version="1.0">
      <p:output port="result"/>

      <p:identity>
        <p:input port="source">
          <p:inline>
            <p:empty use-when="false()" xmlns:p="http://www.w3.org/ns/xproc"/>
          </p:inline>
        </p:input>
      </p:identity>

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

  <t:output port="result"><p:empty use-when="false()"/></t:output>

</t:test>
