Test ab-unique-step-names-001
Tests that no
err:XS0002 is raised, if steps with same name are
in different scopes.
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" version="3.0">
<p:output port="result"/>
<p:group>
<p:identity name="step">
<p:with-input>
<doc/>
</p:with-input>
</p:identity>
</p:group>
<p:group>
<p:identity name="step"/>
</p:group>
</p:declare-step>
Result
<doc xmlns:t="http://xproc.org/ns/testsuite/3.0"/>
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="doc">The pipeline root is not doc.</s:assert>
</s:rule>
</s:pattern>
</s:schema>
Revision history
- 10 Jun 2021, Achim Berndzen
- Added attribute 'queryBinding' to schematron's schema.
- 20 Jul 2019, Achim Berndzen
- Initial commit