JSON join 006(AB)

Tests p:JSON-join/@flatten-to-depth is handled correctly: Only positive int or 'unbounded' allowed.

Test ab-json-join-006.xml is expected to fail with error code err:XD0028.

The pipeline


      <p:declare-step xmlns:p="http://www.w3.org/ns/xproc" version="3.0">
         <p:output port="result"/>
         
         <p:json-join flatten-to-depth="unlimited">
            <p:with-input>
               <p:inline content-type="application/json">[ "A", 1]</p:inline>
               <p:inline content-type="application/json">"B"</p:inline>
               <p:inline content-type="application/json">[42, ["D", true]]</p:inline>
            </p:with-input>
         </p:json-join>
         
         <p:cast-content-type content-type="application/xml"/>
      </p:declare-step>
   
MorganaXProc passing

Revision history

06 Sep 2019, Achim Berndzen

Added tests for p:json-join