expand-templates-001

Tests ex:expand-template.

Test is expected to fail with error code err:XD0050.

The pipeline

<p:declare-step xmlns:err="http://www.w3.org/ns/xproc-error"
                xmlns:ex="http://exproc.org/ns/steps" xmlns:p="http://www.w3.org/ns/xproc"
                xmlns:t="http://xproc.org/ns/testsuite/3.0" name="main" version="3.0">
   <p:import href="https://xmlcalabash.com/ext/library/expand-templates.xpl"/>
   <p:output port="result"/>
   <ex:expand-templates>
      <p:with-input>
         <p:inline exclude-inline-prefixes="#all">
            <doc>
               <sum>{{$x+4}}</sum>
               <greeting>{{$greeting}}</greeting>
            </doc>
         </p:inline>
      </p:with-input>
      <p:with-option name="variables"
                     select="map{'y':3}"/>
   </ex:expand-templates>
</p:declare-step>

Revision history

15 Nov 2025, Norm Tovey-Walsh
Created test.