Project

General

Profile

Actions

Feature #5311

closed

improve ReplaceProcessor and InsertProcessor

Added by Reynaud Sylvain about 11 years ago. Updated about 11 years ago.

Status:
Resolved
Priority:
Low
Assigned To:
Category:
Adaptors
Target version:
Start date:
10/10/2013
Due date:
% Done:

100%

Estimated time:

Description

ReplaceProcessor:
  • enable replacing a subtree with another subtree
InsertProcessor (merge with InsertXmlProcessor):
  • enable inserting a subtree

New syntax:

<rename match="/*/*/@*" new-name="new"/>
<replace match="/*/*/@*" new-nodes="view('v')/*/@*">
    <connector/>
</replace>
<insert match="/*/*" new-nodes="view('v')/*/text()" 
        as="first-child|last-child|preceding-sibling|following-sibling">
    <connector/>
</insert>
<insert-parent match="/*/*" new-name="new"/>

Actions

Also available in: Atom PDF