Features: xquery-function-importxslt-function-import,

nw-import-functions-031

Tests p:import-functions: Laoding function with same name from xquery and xslt.

Test is expected to fail with error code err:XS0105.

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" version="3.0">
   <p:import-functions href="../documents/xquery-library3.xq"
                       content-type="application/xquery"/>
   <p:import-functions href="../documents/xslt-functions3.xsl"
                       content-type="application/xslt+xml"/>
   <p:output port="result"/>
   <p:identity>
      <p:with-input>
         <result>{test:function1('arg')}</result>
      </p:with-input>
   </p:identity>
</p:declare-step>

Revision history

05 Dec 2024, Norm Tovey-Walsh
Tests for p:import-function; adapted from ab-import-functions-031 but uses an XQuery library module.