p:text-replace 059 (AB)

Tests p:text-replace (ported from XQuery tests on fn-replace.

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

The pipeline

<p:declare-step xmlns:err="http://www.w3.org/ns/xproc-error"
                xmlns:p="http://www.w3.org/ns/xproc"
                xmlns:t="http://xproc.org/ns/testsuite/3.0" version="3.0">
   <p:output port="result"/>
   <p:text-replace pattern="pattern"
                   replacement="thisIsInvalid\">
      <p:with-input>
         <p:inline content-type="text/plain">input</p:inline>
      </p:with-input>
   </p:text-replace>
   <p:wrap-sequence wrapper="text"/>
</p:declare-step>

Revision history

31 May 2019, Achim Berndzen
Tests for p:text-replace