<?xml version="1.0" encoding="utf-8"?>
<t:test xmlns:t="http://xproc.org/ns/testsuite/3.0"
        xml:base="/ab-p-archive-075.xml"
        name="ab-p-archive-075.xml"
        expected="fail"
        code="err:XD0064">
   <t:info xmlns:err="http://www.w3.org/ns/xproc-error">
      <t:title>p:archive 075 (AB)</t:title>
      <t:revision-history>
         <t:revision>
            <t:date>2019-12-14</t:date>
            <t:author>
               <t:name>Achim Berndzen</t:name>
            </t:author>
            <t:description xmlns="http://www.w3.org/1999/xhtml">
               <p>Fixed test by declaring prefix "xs".</p>
            </t:description>
         </t:revision>
         <t:revision>
            <t:date>2019-11-23</t:date>
            <t:author>
               <t:name>Achim Berndzen</t:name>
            </t:author>
            <t:description xmlns="http://www.w3.org/1999/xhtml">
               <p>Test added</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:archive: It is a dynamic error, if @relative-to is not a valid absolute URI according to RFC 3986.</p>
   </t:description>
   <t:pipeline xmlns:err="http://www.w3.org/ns/xproc-error">
      <p:declare-step xmlns:c="http://www.w3.org/ns/xproc-step"
                      xmlns:p="http://www.w3.org/ns/xproc"
                      xmlns:xs="http://www.w3.org/2001/XMLSchema"
                      version="3.0">
         <p:output port="result"/>
         <p:archive>
            <p:with-option name="relative-to" select="xs:anyURI('%GG')"/>
            <p:with-input port="source">
               <p:inline document-properties="map{'base-uri' : 'http://test/one.xml'}">
                  <doc-a/>
               </p:inline>
            </p:with-input>
         </p:archive>
      </p:declare-step>
   </t:pipeline>
</t:test>
