pebble-003

Tests that the cx:pebble step works.

Test pebble-003.xml is expected to pass.

The pipeline

<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" context="map{'map': map{'greeting': 'Hello, world.'}}">
      <p:with-input>
         <doc>
            <greeting>{{ map.notGreeting }}</greeting>
         </doc>
      </p:with-input>
   </cx:pebble>
</p:declare-step>

Schematron validation

<s:schema xmlns:s="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
   <s:pattern>
      <s:rule context="/">
         <s:assert test="empty(doc/greeting/node())">Template failed.</s:assert>
      </s:rule>
   </s:pattern>
</s:schema>

Revision history

25 Dec 2025, Norm Tovey-Walsh

Created test.