Test nw-err-xd0019-001

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.

Test nw-err-xd0019-001.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" as="xs:string" values="('no', 'yes')" select="'no'"/>
   <p:identity name="step">
      <p:with-input>
         <doc choice="{$choice}"/>
      </p:with-input>
   </p:identity>
</p:declare-step>

Options

$choice

select = 'maybe'

Revision history

18 Jan 2026, Norm Tovey-Walsh

Initial commit