<?xml version="1.0" encoding="utf-8"?>
<t:test xmlns:t="http://xproc.org/ns/testsuite/3.0"
        xml:base="/pebble-004.xml"
        name="pebble-004.xml"
        expected="fail"
        code="err:XD0030">
   <t:info xmlns:err="http://www.w3.org/ns/xproc-error">
      <t:title>pebble-004</t:title>
      <t:revision-history>
         <t:revision>
            <t:date>2025-12-25</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"
                  xmlns:err="http://www.w3.org/ns/xproc-error">
      <p>Tests that the cx:pebble step works.</p>
   </t:description>
   <t:pipeline xmlns:err="http://www.w3.org/ns/xproc-error">
      <p:declare-step xmlns:cx="http://xmlcalabash.com/ns/extensions"
                      xmlns:p="http://www.w3.org/ns/xproc"
                      exclude-inline-prefixes="cx"
                      name="main"
                      version="3.0">
         <p:import href="https://xmlcalabash.com/ext/library/pebble.xpl"/>
         <p:output port="result" sequence="true"/>
         <cx:pebble p:expand-text="false"
                    strictVariables="true"
                    context="map{'map': map{'greeting': 'Hello, world.'}}">
            <p:with-input>
               <doc>
                  <greeting>{{ map.notGreeting }}</greeting>
               </doc>
            </p:with-input>
         </cx:pebble>
      </p:declare-step>
   </t:pipeline>
</t:test>
