Connection 004

Tests explicit connection between output port and step in subpipeline.

Test ab-connection-004.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:pipe step="producer" port="result"/>
         </p:output>
      
         <p:identity name="producer">
            <p:with-input port="source">
               <doc xmlns=""/>
            </p:with-input>
         </p:identity>
      </p:declare-step>
   
MorganaXProc passing XML Calabash passing

Schematron validation

<s:schema xmlns:s="http://purl.oclc.org/dsdl/schematron" xmlns:p="http://www.w3.org/ns/xproc" xmlns:rng="http://relaxng.org/ns/structure/1.0">
   <s:ns prefix="p" uri="http://www.w3.org/ns/xproc"/>

   <s:pattern>
     <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>
     </s:rule>
   </s:pattern>
</s:schema>

Revision history

02 Feb 2018 17:42, Achim Berndzen

added new tests

29 Dec 2017 19:20, Achim Berndzen

Creating new tests, extending rng and corrected xproc's test