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>
            <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="http://www.w3.org/1999/xhtml" xmlns:s="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
   <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

10 Jun 2021, Achim Berndzen

Added attribute 'queryBinding' to schematron's schema.

22 Aug 2018 16:48, Achim Berndzen

New tests and some previous texts adapted to recent development