<?xml version="1.0" encoding="UTF-8"?>
<t:test expected="fail" code="cxerr:XC0039"
        xmlns:cxerr="http://xmlcalabash.com/ns/error"
        xmlns:t="http://xproc.org/ns/testsuite/3.0">
  <t:info>
    <t:title>jsonpath-005</t:title>
    <t:revision-history>
      <t:revision>
        <t:date>2025-05-11</t:date>
        <t:author>
          <t:name>Norm Tovey-Walsh</t:name>
        </t:author>
        <t:description xmlns="http://www.w3.org/1999/xhtml">
          <p>Created test.</p>
        </t:description>
      </t:revision>
    </t:revision-history>
  </t:info>
  <t:description xmlns="http://www.w3.org/1999/xhtml">
    <p>Tests an invalid JSONPath.</p>
  </t:description>
  <t:pipeline>
<p:declare-step xmlns:p="http://www.w3.org/ns/xproc"
                xmlns:cx="http://xmlcalabash.com/ns/extensions"
                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>
  </t:pipeline>
</t:test>
