p:archive-manifest 009 (AB)

Tests p:archive-manifest: Relative-to creates absolute uris for href.

Test ab-archive-manifest-009.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 relative-to="http://xproc.org/ns/testsuite/3.0/">
      <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="count(c:archive/c:entry)=10">Element 'c:archive' does not have 10 children named 'c:entry'</s:assert>
         <s:assert test="c:archive/c:entry/@href='http://xproc.org/ns/testsuite/3.0/doc.xml'">Value 'href' for 'doc.xml' is wrong.</s:assert>
         <s:assert test="c:archive/c:entry/@href='http://xproc.org/ns/testsuite/3.0/fish.jpg'">Value 'href' for 'fish.jpg' is wrong.</s:assert>
         <s:assert test="c:archive/c:entry/@href='http://xproc.org/ns/testsuite/3.0/html.html'">Value 'href' for 'html.html' is wrong.</s:assert>
         <s:assert test="c:archive/c:entry/@href='http://xproc.org/ns/testsuite/3.0/json.json'">Value 'href' for 'json.json' is wrong.</s:assert>
         <s:assert test="c:archive/c:entry/@href='http://xproc.org/ns/testsuite/3.0/text.txt'">Value 'href' for 'text.txt' is wrong.</s:assert>
         <s:assert test="c:archive/c:entry/@href='http://xproc.org/ns/testsuite/3.0/folder/doc.xml'">Value 'href' for 'folder/doc.xml' is wrong.</s:assert>
         <s:assert test="c:archive/c:entry/@href='http://xproc.org/ns/testsuite/3.0/folder/fish.jpg'">Value 'href' for 'folder/fish.jpg' is wrong.</s:assert>
         <s:assert test="c:archive/c:entry/@href='http://xproc.org/ns/testsuite/3.0/folder/html.html'">Value 'href' for 'folder/html.html' is wrong.</s:assert>
         <s:assert test="c:archive/c:entry/@href='http://xproc.org/ns/testsuite/3.0/folder/json.json'">Value 'href' for 'folder/json.json' is wrong.</s:assert>
         <s:assert test="c:archive/c:entry/@href='http://xproc.org/ns/testsuite/3.0/folder/text.txt'">Value 'href' for 'folder/text.txt' is wrong.</s:assert>
         <s:assert test="count(c:archive/c:entry/@name)=10">Every c:entry must have an attribute 'name'.</s:assert>
      </s:rule>
   </s:pattern>
</s:schema>

Revision history

10 Jun 2021, Achim Berndzen

Added attribute 'queryBinding' to schematron's schema.

24 Nov 2019, Achim Berndzen

Additional tests for p:archive-manifest