Option declaration 027

Checks XS0107 (invalid xpath expression) is raised even if option value is provided. See Issue #506

Test ab-option-027.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" version="3.0">
   <p:output port="result"/>
   <p:option name="option" select="unknown-xpath-function()"/>
   <p:identity>
      <p:with-input>
         <doc>{$option}</doc>
      </p:with-input>
   </p:identity>
</p:declare-step>
MorganaXProc passing XML Calabash passing

Options

$option

select = 'a value'

Revision history

31 Oct 2024, Achim Berndzen

Changed name of the called function to express the test's point.

26 Jan 2019, Achim Berndzen

Changed error code from XS0071 to XS0107.

22 Aug 2018 16:48, Achim Berndzen

New tests and some previous texts adapted to recent development

18 Mar 2018 07:41, Achim Berndzen

New tests. Some tests changed to new order in p:pipe