p:archive 057 (AB)

Tests p:archive: XC0081 must be raised @format and content-type do not match.

Test ab-p-archive-057.xml is expected to fail with error code err:XC0081.

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" version="3.0">
   <p:output port="result" pipe="report"/>
   <p:archive format="zip">
      <p:with-input port="source">
         <p:empty/>
      </p:with-input>
      <p:with-input port="manifest">
         <p:empty/>
      </p:with-input>
      <p:with-input port="archive">
         <p:inline content-type="text/plain">This is no zip.</p:inline>
      </p:with-input>
   </p:archive>
</p:declare-step>
MorganaXProc passing XML Calabash passing

Revision history

08 May 2024, Achim Berndzen

Changed error code back from XC0085 to XC0081 as a consequence of the change in p:archive 056 (AB)

20 Dec 2019, Achim Berndzen

Changed error code from C0081->C0085

01 Sep 2019, Achim Berndzen

Tests for p:archive