Subpipeline-001

Tests a subpipeline that ends with a p:variable.

Test ab-subpipeline-001.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><doc xmlns=""/></p:with-input>
         </p:identity>
         
         <p:group>
            <p:identity/>
            
            <p:variable name="irrelevant" select="count(//*)"/>
         </p:group>
      </p:declare-step>
   
MorganaXProc passing XML Calabash passing

Schematron validation


      <s:schema xmlns:s="http://purl.oclc.org/dsdl/schematron">
         <s:ns prefix="p" uri="http://www.w3.org/ns/xproc"/>
         <s:pattern>
            <s:rule context="/">
               <s:assert test="doc">Document root is not 'doc'.</s:assert>
               <s:assert test="count(/doc/*)=0">doc should not have any children.</s:assert>
            </s:rule>
         </s:pattern>
      </s:schema>
   

Revision history

12 Jan 2019, Achim Berndzen

Added test.