p:unarchive 017 (AB)

Tests p:unarchive: Use two exclude filter only.

Test ab-unarchive-017.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:unarchive>
            <p:with-option name="exclude-filter" select="('folder/\S*', '\S+\.jpg')"/>
            <p:with-input href="../documents/archive.zip"/>
         </p:unarchive>
         <p:count/>
      </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:result">Root element is not 'c:result'.</s:assert>
               <s:assert test="c:result/text()='4'">Text child of c:result is not '4'.</s:assert>
           </s:rule>
         </s:pattern>
      </s:schema>
   

Revision history

25 Aug 2019, Achim Berndzen

Initial tests for p:unarchive