<?xml version="1.0" encoding="utf-8"?>
<t:test xmlns:t="http://xproc.org/ns/testsuite/3.0"
        xml:base="nw-import-functions-030.xml"
        name="nw-import-functions-030.xml"
        expected="fail"
        code="err:XS0106 err:XS0107"
        features="xslt-function-import">
   <t:info xmlns:err="http://www.w3.org/ns/xproc-error">
      <t:title>nw-import-functions-030</t:title>
      <t:revision-history>
         <t:revision>
            <t:date>2024-12-05</t:date>
            <t:author>
               <t:name>Norm Tovey-Walsh</t:name>
            </t:author>
            <t:description xmlns="http://www.w3.org/1999/xhtml">
               <p>Tests for p:import-function; adapted from ab-import-functions-030 but
               uses an XQuery library module.</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:import-functions: Laoding xquery with xslt mime type.</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"
                      xmlns:test="http://xproc.org/ns/testsuite/3.0/function-test"
                      version="3.0">
         <p:import-functions href="../documents/xquery-library.xq"
                             content-type="application/xslt+xml"/>
         <p:output port="result"/>
         <p:identity>
            <p:with-input>
               <result>{test:function()}</result>
            </p:with-input>
         </p:identity>
      </p:declare-step>
   </t:pipeline>
</t:test>
