p:archive 078 (AB)

Tests p:archive: It is a dynamic error, if a document mentioned in manifest can not be resolved.

Test is expected to fail with error code err:XD0011.

The pipeline

<p:declare-step xmlns:c="http://www.w3.org/ns/xproc-step"
                xmlns:err="http://www.w3.org/ns/xproc-error" xmlns:p="http://www.w3.org/ns/xproc"
                xmlns:t="http://xproc.org/ns/testsuite/3.0" version="3.0">
   <p:output port="result"/>
   <p:archive>
      <p:with-input>
         <p:empty/>
      </p:with-input>
      <p:with-input port="manifest">
         <c:archive>
            <c:entry name="new-entry"
                     href="i-do-not-exist"/>
         </c:archive>
      </p:with-input>
   </p:archive>
</p:declare-step>

Revision history

23 Oct 2021, Achim Berndzen
Changed error code from XC0085 to XD0011.
20 Oct 2021, Achim Berndzen
Test added