JSON join 009(AB)

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

Test is expected to fail with error code err:XC0119.

The pipeline

<p:declare-step xmlns:err="http://www.w3.org/ns/xproc-error"
                xmlns:p="http://www.w3.org/ns/xproc"
                xmlns:t="http://xproc.org/ns/testsuite/3.0" version="3.0">
   <p:output port="result"/>
   <p:json-join flatten-to-depth="44.56E5">
      <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>

Revision history

14 Dec 2019, Achim Berndzen
Changed error code to XC0119
06 Sep 2019, Achim Berndzen
Added tests for p:json-join