p:import-029 (AB)
Tests p:import: Same import in different scopes is ok.
Test is expected to pass.
The pipeline
<p:declare-step xmlns:p="http://www.w3.org/ns/xproc"
xmlns:t="http://xproc.org/ns/testsuite/3.0" xmlns:test="http://test" name="pipeline"
version="3.0">
<p:import href="../pipelines/ab-import-029a.xpl"/>
<p:input port="source">
<START/>
</p:input>
<p:output port="result"/>
<test:general/>
</p:declare-step>
Result
<general xmlns:t="http://xproc.org/ns/testsuite/3.0">
<START xmlns:test="http://test"/>
</general>
Schematron checks
<s:schema xmlns:s="http://purl.oclc.org/dsdl/schematron"
xmlns:t="http://xproc.org/ns/testsuite/3.0" 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>
Revision history
- 28 Jan 2023, Achim Berndzen
- Initial test