<?xml version="1.0" encoding="UTF-8"?>
<t:test expected="fail" code="err:XS0107"
        features="xslt-function-import"
        xmlns:err="http://www.w3.org/ns/xproc-error"
        xmlns:t="http://xproc.org/ns/testsuite/3.0">
   <t:info>
      <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">
      <p>Tests p:import-functions: tests limiting XSLT imports by namespace.</p>
   </t:description>
   <t:pipeline>
      <p:declare-step version="3.0"
                      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">
         <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>
