p:pipe 021 (AB)
Tests pipe short cut on non-primary ports.
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:identity>
<p:with-input>
<doc/>
</p:with-input>
</p:identity>
<p:insert match="/root" position="first-child">
<p:with-input port="source">
<root/>
</p:with-input>
<p:with-input port="insertion" pipe="result"/>
</p:insert>
</p:declare-step>
Result
<root xmlns:t="http://xproc.org/ns/testsuite/3.0">
<doc/>
</root>
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="root">Root element is root.</s:assert>
<s:assert test="root/doc">Root element does not have a child 'doc'.</s:assert>
</s:rule>
</s:pattern>
</s:schema>
Revision history
- 10 Jun 2021, Achim Berndzen
- Added attribute 'queryBinding' to schematron's schema.
- 01 Sep 2019, Achim Berndzen
- Additional tests for p:pipe