Test nw-err-xd0019-003

Tests that err:XD0019 is raised if a user-defined option has enumerated values and a provided value isn’t one of the enumerated values. (When the default value is an error this time.)

Test nw-err-xd0019-003.xml is expected to fail with error code err:XD0019.

The pipeline


<p:declare-step xmlns:err="http://www.w3.org/ns/xproc-error" xmlns:p="http://www.w3.org/ns/xproc" xmlns:xs="http://www.w3.org/2001/XMLSchema" version="3.0">
   <p:output port="result"/>
   <p:option name="choice" values="('no', 'yes')" select="'maybe'"/>
   <p:identity name="step">
      <p:with-input>
         <doc choice="{$choice}"/>
      </p:with-input>
   </p:identity>
</p:declare-step>

Revision history

21 Jan 2026, Achim Berndzen

Fixed test's title.

18 Jan 2026, Norm Tovey-Walsh

Initial commit