with-input-select-013

Tests select on p:with-input/@select resulting in an array is "application/json"

Test ab-with-input-select-013.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 select="array{'value'}">
                  <p:empty/>
               </p:with-input>
            </p:identity>
            
            <p:wrap-sequence wrapper="result">
               <p:with-input select="p:document-property(., 'content-type')"/>
            </p:wrap-sequence>
        </p:declare-step>
   
MorganaXProc passing XML Calabash failing

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="result">Document root is not 'result'.</s:assert>
               <s:assert test="result/text()='application/json'">'result' does not a text child with value 'application/json'.</s:assert>
            </s:rule>
         </s:pattern>
      </s:schema>
   

Revision history

12 Jan 2019, Achim Berndzen

Added test