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 is expected to fail with error code err:XD0019.

Options

NameInitializer
choice'maybe'

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

Revision history

18 Jan 2026, Norm Tovey-Walsh
Initial commit