with-input-066

Tests p:with-input with select and pipe

Test ab-with-input-066.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 name="source">
            <p:with-input>
               <doc xmlns="">
                  <element/>
               </doc>
            </p:with-input>
         </p:identity>      
     
         <p:identity>
            <p:with-input select="/doc/*">
               <p:pipe step="source" port="result"/>
            </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">
         <s:pattern>
            <s:rule context="/">
               <s:assert test="element">The document root is not element.</s:assert>
            </s:rule>
         </s:pattern>
      </s:schema>
   

Revision history

22 Aug 2018 16:48, Achim Berndzen

New tests and some previous texts adapted to recent development