Skip to content

Commit

Permalink
Fix 'result is a text document' in p:replace
Browse files Browse the repository at this point in the history
  • Loading branch information
ndw committed Oct 2, 2024
1 parent bfb7718 commit a1d6a8c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions steps/src/main/xml/steps/replace.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="c.replace">
<title>p:replace</title>

<para>The <code>p:replace</code> step replaces matching nodes in
its primary input with the top-level node(s) of the
<code>replacement</code> port's document.</para>
<para>The <code>p:replace</code> step replaces matching nodes in its primary
input with the content of the document that appears on the
<port>replacement</port> port.</para>

<p:declare-step type="p:replace">
<p:input port="source" primary="true" content-types="xml html"/>
Expand All @@ -23,12 +23,13 @@ an attribute or a namespace nodes. </error> Multiple matches are allowed, in whi
copies of the <port>replacement</port> document will occur.</para>

<para>Every node in the primary input matching the specified
pattern is replaced in the output by the top-level node(s)
pattern is replaced in the output by the content
of the <port>replacement</port> document. Only non-nested matches are
replaced. That is, once a node is replaced, its descendants cannot
be matched.</para>

<para>If the document node is matched, the result is a text document.</para>
<para>If the document node is matched, and the <port>replacement</port> document is a text document,
the <port>result</port> is a text document.</para>

<simplesect>
<title>Document properties</title>
Expand Down

0 comments on commit a1d6a8c

Please sign in to comment.