Output port 47 (AB)

Tests that documents appear in the right order on p:output.

Test ab-output-047.xml is expected to pass.

The pipeline

      <p:declare-step xmlns:p="http://www.w3.org/ns/xproc" version="3.0">
        <p:output port="result"/>
           <p:output port="result" sequence="true">
              <p:pipe step="producer"/>
              <p:inline><doc1 xmlns=""/></p:inline>
           <p:identity name="producer">
              <p:with-input><doc2 xmlns=""/></p:with-input>
           <p:catch code="error">
              <p:output port="result"/>
                 <p:with-input><failure xmlns=""/></p:with-input>
        <p:wrap-sequence wrapper="result"/>
MorganaXProc passing XML Calabash passing

Schematron validation

      <s:schema xmlns:s="http://purl.oclc.org/dsdl/schematron">
            <s:rule context="/">
               <s:assert test="result">The document root is not 'result'.</s:assert>
               <s:assert test="result/*[1]/name()='doc2'">The first child element of result is not named doc2.</s:assert>
               <s:assert test="result/*[2]/name()='doc1'">The second child element of result is not named doc1.</s:assert>

Revision history

28 Sep 2020, Achim Berndzen

Added new tests