p:import-024 (AB)

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.

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/import-lib-024.xpl"/>
   <p:import href="../pipelines/import-023b.xpl"/>
   <p:output port="result"/>
   <test:step-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="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>

Revision history

31 May 2022, Achim Berndzen

Initial test