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="" version="3.0">
   <p:output port="result">
      <p:variable name="irrelevant" select="count(//*)">
MorganaXProc passing XML Calabash passing

Schematron validation

<s:schema xmlns="" xmlns:s="" queryBinding="xslt2">
   <s:ns prefix="p" uri="">
      <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>

Revision history

10 Jun 2021, Achim Berndzen

Added attribute 'queryBinding' to schematron's schema.

12 Jan 2019, Achim Berndzen

Added test.