Tests p:import: Main step can call step imported in library. (Thanks to Erik!)
Test ab-import-028.xml is expected to pass.
<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:input port="source">
<START/>
</p:input>
<p:output port="result"/>
<test:general/>
</p:declare-step>
<s:schema xmlns:s="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
<s:pattern>
<s:rule context="/">
<s:assert test="general/START">The result should general/START.</s:assert>
</s:rule>
</s:pattern>
</s:schema>
Initial test