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 xmlns=""/>
            </p:with-input>
         </p:identity>
         
         <p:for-each>
            <p:identity>
               <p:with-input>
                  <inner1 xmlns=""/>
                  <inner2 xmlns=""/>
               </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:s="http://purl.oclc.org/dsdl/schematron">
         <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

18 Sep 2019, Achim Berndzen

Initial test