Features: xslt-function-import

nw-import-functions-003

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

Test 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:t="http://xproc.org/ns/testsuite/3.0"
                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>

Revision history

10 Jan 2025, Achim Berndzen
Marked feature on test.
06 Dec 2024, Norm Tovey-Walsh
This test should fail statically.
06 Dec 2024, Norm Tovey-Walsh
Tests for p:import-functions.