with-input-040

Tests p:with-input: Combinations of p:documentation and implicit inline are allowed.

Test ab-with-input-040.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>
            <p:with-input> 
               <p:documentation>Some documentation.</p:documentation>
               <doc xmlns=""/>
            </p:with-input>
         </p:identity>
      
      </p:declare-step>
   
MorganaXProc passing XML Calabash failing

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 document root is not doc.</s:assert>
       <s:assert test="count(/doc/*) = 0">doc is not an empty element.</s:assert>
     </s:rule>
   </s:pattern>
</s:schema>

Revision history

09 Jul 2018 18:16, Achim Berndzen

Corrected tests and adapt to changes in the spec

02 Jun 2018 17:53, Norman Walsh

Fix namespace declarations

29 Dec 2017 19:20, Achim Berndzen

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