<?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:px="http://xproc.dev.java.net/ns/extensions"
      xmlns:c="http://www.w3.org/ns/xproc-step"
      xmlns:err="http://www.w3.org/ns/xproc-error"
      error="err:XD0021">
  <t:title>Test for err:XD0021 - 002</t:title>
  
  <t:description xmlns="http://www.w3.org/1999/xhtml">
    <p>Tests if dynamic error XD0021 is thrown if the step is not allowed to retrieve from the specified location.</p>
    <p>To pass this test, it must be run in a location where there is
    a file “../doc/chmod0.xml”. The file must not be accessible for reading.</p>
  </t:description>
  
  <t:option name="path" value="../doc/chmod0.xml"/>
  
  <t:pipeline>
    <p:declare-step version="1.0">
      <p:output port="result"/>
      <p:option name="path" required="true"/>

      <p:load>
        <p:with-option name="href" select="$path">
          <p:empty/>
        </p:with-option>
      </p:load>
      <p:identity/>

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

