p:with-option 011 (AB)

Tests XS0031 is raised for undeclared option in a namespace.

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

The pipeline

<p:declare-step xmlns:dummy="http://dummy"
                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:xs="http://www.w3.org/2001/XMLSchema" version="3.0">
   <p:output port="result"/>
   <p:identity>
      <p:with-input>
         <doc/>
      </p:with-input>
      <p:with-option name="dummy:undeclared" select="5"/>
   </p:identity>
</p:declare-step>

Revision history

04 Apr 2022, Achim Berndzen
New test.