Testing default connection 4

Tests that input port defaults are correctly handled.

Test ab-default-connection-004.xml is expected to pass.

The pipeline

<p:declare-step xmlns:dummy="http://dummy" xmlns:p="http://www.w3.org/ns/xproc" name="main" version="3.0">
   <p:import href="../pipelines/ab-pipeline-with-default-connections.xpl"/>
   <p:output port="result"/>
   <dummy:step>
      <p:with-input port="source">
         <outer-primary/>
      </p:with-input>
      <p:with-input port="secondary">
         <outer-secondary/>
      </p:with-input>
   </dummy:step>
</p:declare-step>

Schematron validation

<s:schema xmlns="http://www.w3.org/1999/xhtml" xmlns:s="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
   <s:pattern>
      <s:rule context="/">
         <s:assert test="result">The pipeline root is not result.</s:assert>
         <s:assert test="result/outer-primary">The root element does not have an outer-primary element.</s:assert>
         <s:assert test="result/outer-secondary">The root element does not have an outer-secondary element.</s:assert>
      </s:rule>
   </s:pattern>
</s:schema>

Revision history

25 Nov 2026, Achim Berndzen

Initial commit.