p:import-026 (AB)

Tests p:import: Two libraries can import the same step. (Thanks to Erik!)

Test ab-import-026.xml is expected to pass.

The 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-026a.xpl"/>
   <p:import href="../pipelines/ab-import-026b.xpl"/>
   <p:input port="source">
      <START/>
   </p:input>
   <p:output port="result"/>
   <test:a/>
   <test:b/>
</p:declare-step>
MorganaXProc passing XML Calabash passing

Schematron validation


<s:schema xmlns:s="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
   <s:pattern>
      <s:rule context="/">
         <s:assert test="B/general/A/general/START">The result should be B/general/A/general/START.</s:assert>
      </s:rule>
   </s:pattern>
</s:schema>

Revision history

28 Jan 2023, Achim Berndzen

Initial test