p:archive-manifest 015 (AB)

Tests p:archive-manifest: Every entry needs an @content-type.

Test ab-archive-manifest-015.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-option name="relative-to" select="'test/'" xml:base="http://xproc.org/ns/testsuite/3.0/"/>
            <p:with-input href="../documents/archive.zip"/>
         </p:archive-manifest>
      </p:declare-step>
   
MorganaXProc passing XML Calabash failing

Schematron validation


      <s:schema xmlns:s="http://purl.oclc.org/dsdl/schematron">
         <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="count(c:archive/c:entry/@content-type)=10">Not every 'c:entry' has an attribute 'content-type'.</s:assert>
            </s:rule>
         </s:pattern>
      </s:schema>
   

Revision history

20 Mar 2020, Achim Berndzen

Additional tests for p:archive-manifest