nw-import-functions-003

Tests p:import-functions: tests limiting XSLT imports by namespace.

Test nw-import-functions-003.xml is expected to fail with error code err:XS0107.

The pipeline


<p:declare-step xmlns:err="http://www.w3.org/ns/xproc-error" 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>
XML Calabash passing

Revision history

06 Dec 2024, Norm Tovey-Walsh

This test should fail statically.

06 Dec 2024, Norm Tovey-Walsh

Tests for p:import-functions.