Tests p:JSON-join/@flatten-to-depth is handled correctly: Only positive int or 'unbounded' allowed.
Test ab-json-join-008.xml is expected to fail with error code err:XC0119
.
<p:declare-step xmlns:err="http://www.w3.org/ns/xproc-error" xmlns:p="http://www.w3.org/ns/xproc" version="3.0">
<p:output port="result"/>
<p:json-join flatten-to-depth="3.1415">
<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>
Changed error code to XC0119
Added tests for p:json-join