p:import-032 (AB)
Tests p:import: Testing re-entrant import of steps
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-032-lib1.xpl"/>
<p:output port="result"/>
<test:step1/>
</p:declare-step>
Result
<result xmlns:t="http://xproc.org/ns/testsuite/3.0">
<step-1 xmlns:test="http://test"/>
<step-2 xmlns:test="http://test"/>
<step-3 xmlns:test="http://test"/>
<step-4 xmlns:test="http://test"/>
</result>
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="result">The root element is not 'result'.</s:assert>
<s:assert test="result/step-1">The root element does not have a child 'step-1'.</s:assert>
<s:assert test="result/step-2">The root element does not have a child 'step-2'.</s:assert>
<s:assert test="result/step-3">The root element does not have a child 'step-3'.</s:assert>
<s:assert test="result/step-4">The root element does not have a child 'step-4'.</s:assert>
</s:rule>
</s:pattern>
</s:schema>
Revision history
- 01 May 2025, Achim Berndzen
- Initial test