Tests pipe on output port declaration
Test ab-output-declaration-015.xml is expected to pass.
<p:declare-step xmlns:p="http://www.w3.org/ns/xproc" xmlns:test="http://www.xml-project.com/test" version="3.0" name="main">
<p:output port="result"/>
<p:try>
<p:error code="test:error">
<p:with-input>
<some-code/>
</p:with-input>
</p:error>
<p:catch name="catcher">
<p:group>
<p:output port="result">
<p:pipe port="error" step="catcher"/>
</p:output>
<p:identity>
<p:with-input>
<not-correct/>
</p:with-input>
</p:identity>
</p:group>
</p:catch>
</p:try>
</p:declare-step>
<s:schema xmlns="http://www.w3.org/1999/xhtml" xmlns:s="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
<s:ns prefix="c" uri="http://www.w3.org/ns/xproc-step"/>
<s:pattern>
<s:rule context="/">
<s:assert test="c:errors">The pipeline root is not "c:errors".</s:assert>
<s:assert test="count(c:errors/c:error)">There is not exactly one c:error child.</s:assert>
<s:assert test="c:errors/c:error/@code='test:error'">The code attribute of c:error is not right.</s:assert>
<s:assert test="c:errors/c:error/some-code">Element c:error does not have a child some-code.</s:assert>
</s:rule>
</s:pattern>
</s:schema>
Added attribute 'queryBinding' to schematron's schema.
New tests