Tests p:archive: XC0112 must be raised if more than one document appears on manifest.
Test ab-p-archive-072.xml is expected to fail with error code err:XC0112
.
<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"/>
<p:archive format="zip">
<p:with-input port="source">
<p:inline document-properties="map{'base-uri' : 'one'}"/>
</p:with-input>
<p:with-input port="manifest">
<c:archive>
<c:entry name="a.xml" href="one"/>
</c:archive>
<c:archive>
<c:entry name="a.xml" href="one"/>
</c:archive>
</p:with-input>
<p:with-input port="archive">
<p:empty/>
</p:with-input>
</p:archive>
</p:declare-step>
Tests for p:archive