find-007

Tests an invalid JSONPath.

Test find-007.xml is expected to fail with error code cxerr:XC0039.

The pipeline

<p:declare-step xmlns:cx="http://xmlcalabash.com/ns/extensions" xmlns:cxerr="http://xmlcalabash.com/ns/error" xmlns:p="http://www.w3.org/ns/xproc" name="main" version="3.0" expand-text="false">
   <p:import href="https://xmlcalabash.com/ext/library/find.xpl"/>
   <p:output port="result"/>
   <cx:find path="../documents/find" jsonpath="$.store...invalid"/>
</p:declare-step>

Revision history

11 May 2025, Norm Tovey-Walsh

Created test.