AB for-each 018

Tests that it is not an error, if a sequence is the inner result because manufactured port is sequence.

Test ab-for-each-018.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:identity>
      <p:with-input>
         <doc1/>
      </p:with-input>
   </p:identity>
   <p:for-each>
      <p:identity>
         <p:with-input>
            <inner1/>
            <inner2/>
         </p:with-input>
      </p:identity>
   </p:for-each>
   <p:wrap-sequence wrapper="result"/>
</p:declare-step>
MorganaXProc passing XML Calabash passing

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 document root is not 'result'.</s:assert>
         <s:assert test="result/inner1">Document root does not have child 'inner1'.</s:assert>
         <s:assert test="result/inner2">Document root does not have child 'inner2'.</s:assert>
      </s:rule>
   </s:pattern>
</s:schema>

Revision history

10 Jun 2021, Achim Berndzen

Added attribute 'queryBinding' to schematron's schema.

18 Sep 2019, Achim Berndzen

Initial test