<?xml version="1.0" encoding="utf-8"?>
<t:test xmlns:t="http://xproc.org/ns/testsuite/3.0"
        xml:base="/ab-archive-manifest-013.xml"
        name="ab-archive-manifest-013.xml"
        expected="pass">
   <t:info>
      <t:title>p:archive-manifest 013 (AB)</t:title>
      <t:revision-history>
         <t:revision>
            <t:date>2021-06-10</t:date>
            <t:author>
               <t:name>Achim Berndzen</t:name>
            </t:author>
            <t:description xmlns="http://www.w3.org/1999/xhtml">
               <p>Added attribute 'queryBinding' to schematron's schema.</p>
            </t:description>
         </t:revision>
         <t:revision>
            <t:date>2019-12-21</t:date>
            <t:author>
               <t:name>Achim Berndzen</t:name>
            </t:author>
            <t:description xmlns="http://www.w3.org/1999/xhtml">
               <p>Additional tests for p:unarchive and p:archive-manifest</p>
            </t:description>
         </t:revision>
      </t:revision-history>
   </t:info>
   <t:description xmlns="http://www.w3.org/1999/xhtml">
      <p>Tests c:entry/@href is an absolute URI resolved by @relative-to.</p>
   </t:description>
   <t: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>
   </t:pipeline>
   <t:schematron>
      <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>
   </t:schematron>
   <t:result name="ab-archive-manifest-013.xml">
      <c:archive xmlns:c="http://www.w3.org/ns/xproc-step" format="zip">
         <c:entry xmlns:cx="http://xmlcalabash.com/ns/extensions"
                  name="woodpecker/src/codeberg.org/xmlcalabash/xmlcalabash3/tests/3.0-test-suite/test-suite/tests/ab-archive-manifest-013.xml"
                  content-type="application/xml"
                  cx:size="79"
                  cx:last-modified="2026-07-18T16:05:36Z"
                  method="deflated"
                  href="http://xproc.org/ns/testsuite/woodpecker/src/codeberg.org/xmlcalabash/xmlcalabash3/tests/3.0-test-suite/test-suite/tests/ab-archive-manifest-013.xml"/>
      </c:archive>
   </t:result>
</t:test>
