Connection 007
Tests that the primary output port of the last step of a subpipeline is not connected to the pipelines primary output port, if the later has an explicit connection.
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" primary="true">
<p:pipe step="one" port="result"/>
</p:output>
<p:identity name="one">
<p:with-input port="source">
<one/>
</p:with-input>
</p:identity>
<p:identity name="two">
<p:with-input>
<two/>
</p:with-input>
</p:identity>
</p:declare-step>
Result
<one xmlns:t="http://xproc.org/ns/testsuite/3.0"/>
Schematron checks
<s:schema xmlns="http://www.w3.org/1999/xhtml"
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="one">The root is not one.</s:assert>
<s:assert test="count(one/node())=0">The root element does not have children.</s:assert>
</s:rule>
</s:pattern>
</s:schema>
Revision history
- 10 Jun 2021, Achim Berndzen
- Added attribute 'queryBinding' to schematron's schema.
- 15 Sep 2018, Achim Berndzen
- Some tests changed and new tests
- 02 Jun 2018, Norman Walsh
- Fix namespace declarations
- 29 Dec 2017, Achim Berndzen
- Creating new tests, extending rng and corrected xproc's test