optoinal-port-001

Test that port is optional on p:with-input

Test nw-optional-port-001.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:inline>
                  <doc xmlns=""/>
               </p:inline>
            </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: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:rule>
         </s:pattern>
      </s:schema>
   

Revision history

25 Jun 2018 17:34, Norman Walsh

Test that port names are optional on p:with-input