<?xml version="1.0" encoding="utf-8"?>
<t:test xmlns:t="http://xproc.org/ns/testsuite/3.0"
        xml:base="/ab-static-option-var-022.xml"
        name="ab-static-option-var-022.xml"
        expected="fail"
        code="err:XS0092">
   <t:info xmlns:err="http://www.w3.org/ns/xproc-error">
      <t:title>Static variables/option 022</t:title>
      <t:revision-history>
         <t:revision>
            <t:date>2018-10-11T18:16:00+02:00</t:date>
            <t:author>
               <t:name>Achim Berndzen</t:name>
            </t:author>
            <t:description xmlns="http://www.w3.org/1999/xhtml">
               <p>Initial test</p>
            </t:description>
         </t:revision>
      </t:revision-history>
   </t:info>
   <t:description xmlns="http://www.w3.org/1999/xhtml"
                  xmlns:err="http://www.w3.org/ns/xproc-error">
      <p>Tests that a static option can not be changed with p:with-option.</p>
   </t:description>
   <t:pipeline xmlns:err="http://www.w3.org/ns/xproc-error">
      <p:declare-step xmlns:dummy="http://dummy"
                      xmlns:p="http://www.w3.org/ns/xproc"
                      name="main"
                      version="3.0">
         <p:output port="result"/>
         <p:declare-step type="dummy:test">
            <p:output port="result"/>
            <p:option static="true" name="static-option" select="15"/>
            <p:identity>
               <p:with-input>
                  <doc/>
               </p:with-input>
            </p:identity>
         </p:declare-step>
         <dummy:test>
            <p:with-option name="static-option" select="16"/>
         </dummy:test>
      </p:declare-step>
   </t:pipeline>
</t:test>
