<?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 xquery-003</t:title>

<t:description xmlns="http://www.w3.org/1999/xhtml">
  <p>Tests external xqueries.</p>  
</t:description>

<t:input port="source">
<document>
<title>Some Title</title>
<para>Some paragraph.</para>
</document>
</t:input>

<t:pipeline>
  <p:pipeline version='1.0' xmlns:p="http://www.w3.org/ns/xproc">
    
    <p:xquery>
      <p:input port="query">
        <p:data href="xquery.xq" content-type="text/plain"/>
      </p:input>
    </p:xquery>
    
  </p:pipeline>
</t:pipeline>

<t:output port="result">
  <title>Some Title</title>
</t:output>

</t:test>

