<?xml version="1.0" encoding="UTF-8"?>
<t:test expected="fail" code="err:XD0001" features="eager-eval"
   xmlns:err="http://www.w3.org/ns/xproc-error"
   xmlns:t="http://xproc.org/ns/testsuite/3.0">
   <t:info>
      <t:title>ab-option-064 (strict)</t:title>
      <t:revision-history>
         <t:revision>
            <t:date>2024-09-28</t:date>
            <t:author>
               <t:name>Achim Berndzen</t:name>
            </t:author>
            <t:description xmlns="http://www.w3.org/1999/xhtml">
               <p>Marked test with feature 'eager-eval'.</p>
            </t:description>
         </t:revision>
         <t:revision>
            <t:date>2021-12-12</t:date>
            <t:author>
               <t:name>Achim Berndzen</t:name>
            </t:author>
            <t:description xmlns="http://www.w3.org/1999/xhtml">
               <p>Test added.</p>
            </t:description>
         </t:revision>
      </t:revision-history>
   </t:info>
   <t:description xmlns="http://www.w3.org/1999/xhtml">
      <p>Checks a dynamic error is raised, if option/@select refers to the (undefined) context item,
      but is not used.</p>
   </t:description>
   <t:pipeline>
      <p:declare-step version="3.0"
                      xmlns:p="http://www.w3.org/ns/xproc">
         <p:output port="result"/>
         <p:option name="opt" select="." />
         
         <p:identity>
            <p:with-input><result /></p:with-input>
         </p:identity>
      </p:declare-step>
   </t:pipeline>
</t:test>