Option declaration 027

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

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

Options

NameInitializer
option'a value'

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" 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>

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, Achim Berndzen
New tests and some previous texts adapted to recent development
18 Mar 2018, Achim Berndzen
New tests. Some tests changed to new order in p:pipe