p:archive-manifest 016 (AB)

Tests path in @href is correctly resolved in p:archive-manifest

Test ab-archive-manifest-016.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-manifest>
      <p:with-input href="../documents/archive.zip"/>
   </p:archive-manifest>
</p:declare-step>
MorganaXProc passing XML Calabash passing

Schematron validation


<s:schema xmlns="http://www.w3.org/1999/xhtml" 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="c:archive">Root element is not 'c:archive'.</s:assert>
         <s:assert test="ends-with(c:archive/c:entry[@name='doc.xml']/@href,'/documents/archive.zip/doc.xml')">c:entry/@href for 'doc.xml' is not correct.</s:assert>
         <s:assert test="ends-with(c:archive/c:entry[@name='folder/doc.xml']/@href,'/documents/archive.zip/folder/doc.xml')">c:entry/@href for 'folder/doc.xml' is not correct.</s:assert>
      </s:rule>
   </s:pattern>
</s:schema>

Revision history

19 Oct 2021, Achim Berndzen

Additional test for p:archive-manifest