Input 021

Tests p:input with external xml document binding.

Test ab-input-021.xml is expected to pass.

The pipeline

      <p:declare-step xmlns:p="" version="3.0">
            <p:input port="source">
                <doc xmlns=""/>
            <p:output port="result"/>        
MorganaXProc passing XML Calabash passing


port = source


Schematron validation

<s:schema xmlns:p="" xmlns:rng="" xmlns:s="">
   <s:ns prefix="p" uri=""/>

     <s:rule context="/*">
       <s:assert test="self::doc">The pipeline root is not doc.</s:assert>
       <s:assert test="count(self::doc//*) = 0">No children of doc expected.</s:assert>
       <s:assert test="count(self::doc//@*) = 0">No attributes of doc expected.</s:assert>

Revision history

18 Mar 2018 07:41, Achim Berndzen

New tests. Some tests changed to new order in p:pipe