Tests p:replace
Test ab-replace-008.xml is expected to fail with error code err:XC0023 [Core steps, XProc]
.
<p:declare-step xmlns:err="http://www.w3.org/ns/xproc-error" xmlns:p="http://www.w3.org/ns/xproc" version="3.0">
<p:output port="result"/>
<p:replace match="@a">
<p:with-input port="source">
<doc a="4"/>
</p:with-input>
<p:with-input port="replacement">
<new-element>
<element/>
</new-element>
</p:with-input>
</p:replace>
</p:declare-step>
New tests for p:replace