<?xml version="1.0" encoding="utf-8"?>
<t:test xmlns:t="http://xproc.org/ns/testsuite/3.0"
        xml:base="/ab-import-033.xml"
        name="ab-import-033.xml"
        expected="pass">
   <t:info>
      <t:title>p:import-033 (AB)</t:title>
      <t:revision-history>
         <t:revision>
            <t:date>2025-05-01</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">
      <p>Tests p:import: Testing re-entrant import of steps and static options.</p>
   </t:description>
   <t:pipeline>
      <p:declare-step xmlns:p="http://www.w3.org/ns/xproc"
                      xmlns:test="http://test"
                      name="pipeline"
                      version="3.0">
         <p:import href="../pipelines/ab-import-033-lib1.xpl"/>
         <p:output port="result"/>
         <test:step1/>
      </p:declare-step>
   </t:pipeline>
   <t:schematron>
      <s:schema xmlns:s="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
         <s:pattern>
            <s:rule context="/">
               <s:assert test="result">The root element is not 'result'.</s:assert>
               <s:assert test="result/step-1">The root element does not have a child 'step-1'.</s:assert>
               <s:assert test="result/step-2">The root element does not have a child 'step-2'.</s:assert>
               <s:assert test="result/step-3">The root element does not have a child 'step-3'.</s:assert>
               <s:assert test="result/step-4">The root element does not have a child 'step-4'.</s:assert>
               <s:assert test="result/step-1/@att='42'">Element 'step-1' does not have att with value '42'.</s:assert>
               <s:assert test="result/step-2/@att='42'">Element 'step-2' does not have att with value '42'.</s:assert>
               <s:assert test="result/step-3/@att='42'">Element 'step-3' does not have att with value '42'.</s:assert>
               <s:assert test="result/step-4/@att='42'">Element 'step-4' does not have att with value '42'.</s:assert>
            </s:rule>
         </s:pattern>
      </s:schema>
   </t:schematron>
   <t:result name="ab-import-033.xml">
      <result>
         <step-1 xmlns:test="http://test" att="42"/>
         <step-2 xmlns:test="http://test" att="42"/>
         <step-3 xmlns:test="http://test" att="42"/>
         <step-4 xmlns:test="http://test" att="42"/>
      </result>
   </t:result>
</t:test>
