p:document 004a

Tests p:document raises an error (XD0011) if the referenced resource doesnot exist.

Test ab-p-document004a.xml is expected to fail with error code err:XD0011.

It requires the following features: webaccess.

The pipeline


<p:declare-step xmlns:err="http://www.w3.org/ns/xproc-error" xmlns:p="http://www.w3.org/ns/xproc" version="3.0">
   <p:output port="result"/>
   <p:identity>
      <p:with-input>
         <p:document href="i-do-no-exist.html" xml:base="https://xproc.org/"/>
      </p:with-input>
   </p:identity>
</p:declare-step>

Revision history

14 Oct 2024, Achim Berndzen

Initial check in.