<?xml-stylesheet type="text/xsl" href="/style/testcase.xsl"?>
<t:test xmlns:t="http://xproc.org/ns/testsuite"
        xmlns:p="http://www.w3.org/ns/xproc"
        xmlns:c="http://www.w3.org/ns/xproc-step"
        xmlns:err="http://www.w3.org/ns/xproc-error">

  <t:title>Test make-absolute-uris #003</t:title>

  <t:input port="source">
    <links>
      <link href="book1.xml"/>
      <link href="../book2.xml"/>
      <link href="ftp://server/dir/file.txt"/>
    </links>
  </t:input>

  <t:pipeline>
    <p:pipeline version='1.0'>
      <p:make-absolute-uris match="link/@href" base-uri="http://server/foo/bar.xml"/>
    </p:pipeline>
  </t:pipeline>

  <t:output port="result">
    <links>
      <link href="http://server/foo/book1.xml"/>
      <link href="http://server/book2.xml"/>
      <link href="ftp://server/dir/file.txt"/>
    </links>
  </t:output>

</t:test>


