Tests p:import gets scope right: test:step-a is not visible in test:step-b
Test ab-import-024.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/import-lib-024.xpl"/>
<p:import href="../pipelines/import-023b.xpl"/>
<p:output port="result"/>
<test:step-b/>
</p:declare-step>
<s:schema xmlns:s="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
<s:pattern>
<s:rule context="/">
<s:assert test="is-visible">Root element should be 'is-visible'.</s:assert>
<s:assert test="is-visible/text()='false'">Element 'is-visible' should have text 'false'.</s:assert>
</s:rule>
</s:pattern>
</s:schema>
Initial test