<?xml version="1.0" encoding="utf-8"?>
<t:test xmlns:t="http://xproc.org/ns/testsuite/3.0"
        xml:base="/static-opt-001.xml"
        name="static-opt-001.xml"
        expected="pass">
   <t:info>
      <t:title>static-opt-001</t:title>
      <t:revision-history>
         <t:revision>
            <t:date>2025-10-17</t:date>
            <t:author>
               <t:name>Norm Tovey-Walsh</t:name>
            </t:author>
            <t:description xmlns="http://www.w3.org/1999/xhtml">
               <p>Created test.</p>
            </t:description>
         </t:revision>
      </t:revision-history>
   </t:info>
   <t:description xmlns="http://www.w3.org/1999/xhtml">
      <p>Tests that bug <a href="https://codeberg.org/xmlcalabash/xmlcalabash3/issues/274">#274</a>
    stays solved.</p>
   </t:description>
   <t:pipeline>
      <p:declare-step xmlns:cx="http://xmlcalabash.com/ns/extensions"
                      xmlns:p="http://www.w3.org/ns/xproc"
                      xmlns:xs="http://www.w3.org/2001/XMLSchema"
                      name="main"
                      version="3.0">
         <p:output port="result"/>
         <p:option static="true"
                   name="href-test"
                   as="xs:string"
                   required="false"
                   select="resolve-uri('static-opt-001.xml', static-base-uri())"/>
         <p:input port="source"
                  primary="true"
                  sequence="false"
                  content-types="xml"
                  href="{$href-test}"/>
         <p:identity/>
      </p:declare-step>
   </t:pipeline>
   <t:schematron>
      <s:schema xmlns:s="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
         <s:ns prefix="t" uri="http://xproc.org/ns/testsuite/3.0"/>
         <s:pattern>
            <s:rule context="/">
               <s:assert test="t:test">The root is wrong.</s:assert>
            </s:rule>
         </s:pattern>
      </s:schema>
   </t:schematron>
   <t:result name="static-opt-001.xml">
      <t:test expected="pass">
         <t:info>
            <t:title>static-opt-001</t:title>
            <t:revision-history>
               <t:revision>
                  <t:date>2025-10-17</t:date>
                  <t:author>
                     <t:name>Norm Tovey-Walsh</t:name>
                  </t:author>
                  <t:description xmlns="http://www.w3.org/1999/xhtml">
                     <p>Created test.</p>
                  </t:description>
               </t:revision>
            </t:revision-history>
         </t:info>
         <t:description xmlns="http://www.w3.org/1999/xhtml">
            <p>Tests that bug <a href="https://codeberg.org/xmlcalabash/xmlcalabash3/issues/274">#274</a>
    stays solved.</p>
         </t:description>
         <t:pipeline>
            <p:declare-step xmlns:cx="http://xmlcalabash.com/ns/extensions"
                            xmlns:p="http://www.w3.org/ns/xproc"
                            xmlns:xs="http://www.w3.org/2001/XMLSchema"
                            name="main"
                            version="3.0">
               <p:output port="result"/>
               <p:option static="true"
                         name="href-test"
                         as="xs:string"
                         required="false"
                         select="resolve-uri('static-opt-001.xml', static-base-uri())"/>
               <p:input port="source"
                        primary="true"
                        sequence="false"
                        content-types="xml"
                        href="{$href-test}"/>
               <p:identity/>
            </p:declare-step>
         </t:pipeline>
         <t:schematron>
            <s:schema xmlns:s="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
               <s:ns prefix="t" uri="http://xproc.org/ns/testsuite/3.0"/>
               <s:pattern>
                  <s:rule context="/">
                     <s:assert test="t:test">The root is wrong.</s:assert>
                  </s:rule>
               </s:pattern>
            </s:schema>
         </t:schematron>
      </t:test>
   </t:result>
</t:test>
