p:archive-manifest 013 (AB)

Tests c:entry/@href is an absolute URI resolved by @relative-to.

Test ab-archive-manifest-013.xml is expected to pass.

The pipeline


<p:declare-step xmlns:p="http://www.w3.org/ns/xproc" name="pipeline" version="3.0">
   <p:output port="result"/>
   <p:archive>
      <p:with-input>
         <p:inline>
            <doc/>
         </p:inline>
      </p:with-input>
   </p:archive>
   <p:archive-manifest relative-to="http://xproc.org/ns/testsuite/"/>
</p:declare-step>
MorganaXProc passing XML Calabash passing

Schematron validation


<s:schema xmlns:s="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
   <s:ns prefix="c" uri="http://www.w3.org/ns/xproc-step"/>
   <s:pattern>
      <s:rule context="/">
         <s:assert test="starts-with(c:archive/c:entry/@href, 'http://xproc.org/ns/testsuite/')">href does not contain the correct URI.</s:assert>
      </s:rule>
   </s:pattern>
</s:schema>

Revision history

10 Jun 2021, Achim Berndzen

Added attribute 'queryBinding' to schematron's schema.

21 Dec 2019, Achim Berndzen

Additional tests for p:unarchive and p:archive-manifest