jsonpath-005

Tests an invalid JSONPath.

Test 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"
                xmlns:t="http://xproc.org/ns/testsuite/3.0" name="main" version="3.0"
                expand-text="false">
   <p:import href="https://xmlcalabash.com/ext/library/jsonpath.xpl"/>
   <p:output port="result"/>
   <cx:jsonpath query="$.store...book[1].author">
      <p:with-input href="../documents/find/bookstore.json"/>
   </cx:jsonpath>
</p:declare-step>

Revision history

11 May 2025, Norm Tovey-Walsh
Created test.