<?xml version="1.0" encoding="utf-8"?>
<t:test xmlns:t="http://xproc.org/ns/testsuite/3.0"
        xml:base="/ab-unarchive-018.xml"
        name="ab-unarchive-018.xml"
        expected="fail"
        code="err:XD0064">
   <t:info xmlns:err="http://www.w3.org/ns/xproc-error">
      <t:title>p:unarchive 018 (AB)</t:title>
      <t:revision-history>
         <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>Added option "relative-to" to p:archive-manifest</p>
            </t:description>
         </t:revision>
         <t:revision>
            <t:date>2019-11-24</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</p>
            </t:description>
         </t:revision>
      </t:revision-history>
   </t:info>
   <t:description xmlns="http://www.w3.org/1999/xhtml"
                  xmlns:err="http://www.w3.org/ns/xproc-error">
      <p>Tests p:unarchive: It is a dynamic error, if unarchived document does not have a valid base URI.</p>
   </t:description>
   <t:pipeline xmlns:err="http://www.w3.org/ns/xproc-error">
      <p:declare-step xmlns:p="http://www.w3.org/ns/xproc" name="pipeline" version="3.0">
         <p:output port="result"/>
         <p:archive><!-- archive does not have base uri -->
            <p:with-input>
               <p:inline>
                  <doc/>
               </p:inline>
            </p:with-input>
         </p:archive>
         <p:unarchive relative-to="%gg"/>
      </p:declare-step>
   </t:pipeline>
</t:test>
