<?xml version="1.0" encoding="utf-8"?>
<t:test xmlns:t="http://xproc.org/ns/testsuite/3.0"
        xml:base="/nw-import-functions-003.xml"
        name="nw-import-functions-003.xml"
        expected="fail"
        code="err:XS0107"
        features="xslt-function-import">
   <t:info xmlns:err="http://www.w3.org/ns/xproc-error">
      <t:title>nw-import-functions-003</t:title>
      <t:revision-history>
         <t:revision>
            <t:date>2025-01-10</t:date>
            <t:author>
               <t:name>Achim Berndzen</t:name>
            </t:author>
            <t:description xmlns="http://www.w3.org/1999/xhtml">
               <p>Marked feature on test.</p>
            </t:description>
         </t:revision>
         <t:revision>
            <t:date>2024-12-06</t:date>
            <t:author>
               <t:name>Norm Tovey-Walsh</t:name>
            </t:author>
            <t:description xmlns="http://www.w3.org/1999/xhtml">
               <p>This test should fail statically.</p>
            </t:description>
         </t:revision>
         <t:revision>
            <t:date>2024-12-06</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-functions.</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: tests limiting XSLT imports by namespace.</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"
                      xmlns:test1="http://xproc.org/ns/testsuite/3.0/function-test1"
                      version="3.0">
         <p:import-functions href="../documents/xslt-functions.xsl"
                             namespace="http://xproc.org/ns/testsuite/3.0/function-test1"
                             content-type="application/xslt+xml"/>
         <p:output port="result"/>
         <p:identity>
            <p:with-input>
               <result>{test:function1()}</result>
            </p:with-input>
         </p:identity>
      </p:declare-step>
   </t:pipeline>
</t:test>
