Skip to content

Commit

Permalink
Attempt to fix issue 583
Browse files Browse the repository at this point in the history
  • Loading branch information
xml-project committed Jun 20, 2024
1 parent 074798c commit da09567
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions steps/src/main/xml/steps/insert.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ port's document relative to the matching elements in the
<p:declare-step type="p:insert">
<p:input port="source" primary="true" content-types="xml html"/>
<p:input port="insertion" sequence="true" content-types="xml html text"/>
<p:output port="result" content-types="xml html"/>
<p:output port="result" content-types="xml html text"/>
<p:option name="match" as="xs:string" select="'/*'" e:type="XSLTSelectionPattern"/>
<p:option name="position" values="('first-child','last-child','before','after')" select="'after'"/>
</p:declare-step>
Expand Down Expand Up @@ -62,14 +62,17 @@ as the source.</para>

<simplesect>
<title>Document properties</title>
<para feature="insert-preserves-all">All document properties on the
<port>source</port> port are preserved. The document properties on the
<port>insertion</port> port are not preserved or present in the result document.</para>
<para feature="insert-preserves-partially">If the resulting document contains exactly one text node,
the <literal>content-type</literal> property is changed to <literal>text/plain</literal> and the
<literal>serialization</literal> property is removed, while all other document properties are
preserved. In all other cases, all document properties are preserved.</para>
</simplesect>

<simplesect>
<title>Erratum, April 2024</title>
<para>The content type of the <port>insertion</port> port has been expanded to allow
text documents to be inserted.</para>
<para>Port "result" can now have a text-document. Section "document properties" was
changed accordingly.</para>
</simplesect>
</section>

0 comments on commit da09567

Please sign in to comment.