Tests p:archive: Tests entries are ordered as in manifest.
Test ab-p-archive-044.xml is expected to pass.
It requires the following features: archive-order.
<p:declare-step xmlns:c="http://www.w3.org/ns/xproc-step" xmlns:p="http://www.w3.org/ns/xproc" version="3.0">
<p:output port="result"/>
<p:archive>
<p:with-input port="source">
<p:inline document-properties="map{'base-uri' : 'http://test/one.xml'}">
<doc-a/>
</p:inline>
<p:inline document-properties="map{'base-uri' : 'http://test/three.xml'}">
<doc-c/>
</p:inline>
<p:inline document-properties="map{'base-uri' : 'http://test/two.xml'}">
<doc-b/>
</p:inline>
</p:with-input>
<p:with-input port="manifest">
<c:archive>
<c:entry name="one.xml" href="http://test/one.xml"/>
<c:entry name="two.xml" href="http://test/two.xml"/>
<c:entry name="three.xml" href="http://test/three.xml"/>
</c:archive>
</p:with-input>
<p:with-input port="archive">
<p:empty/>
</p:with-input>
</p:archive>
<p:archive-manifest relative-to="http://xproc.org/ns/testsuite"/>
</p:declare-step>
<s:schema xmlns="http://www.w3.org/1999/xhtml" xmlns:s="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
<s:ns uri="http://www.w3.org/ns/xproc-step" prefix="c"/>
<s:pattern>
<s:rule context="/">
<s:assert test="c:archive">Root element is not c:archive.</s:assert>
<s:assert test="count(c:archive/c:entry)=3">Root element does not have one child 'c:entry'.</s:assert>
<s:assert test="c:archive/c:entry[1]/@name='one.xml'">The first c:entry is not 'one.xml'.</s:assert>
<s:assert test="c:archive/c:entry[2]/@name='two.xml'">The second c:entry is not 'two.xml'.</s:assert>
<s:assert test="c:archive/c:entry[3]/@name='three.xml'">The third c:entry is not 'three.xml'.</s:assert>
</s:rule>
</s:pattern>
</s:schema>
Added attribute 'queryBinding' to schematron's schema.
Added option "relative-to" to p:archive-manifest
Tests for p:archive