Testing default connection 1

Tests that input port defaults are correctly handled.

Test ab-default-connection-001.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: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/primary">The root element does not have a primary element.</s:assert>
         <s:assert test="result/secondary">The root element does not have a secondary element.</s:assert>
      </s:rule>
   </s:pattern>
</s:schema>

Revision history

25 Nov 2026, Achim Berndzen

Initial commit.