Actions
Feature #6709
closedsimplify usage of some processors
Start date:
03/31/2014
Due date:
% Done:
100%
Estimated time:
Description
Simplify usage of the following processors:
- AppendAggregateProcessor
- MoveProcessor / CopyProcessor
- SelectGroupByProcessor
Written by user:
<processors>
<processor type="AppendAggregateProcessor" match="/root"><!-- | /root/child -->
<parameter name="function">sum</parameter>
<parameter name="node_name">total</parameter>
<parameter name="node_values" eval="child"/><!-- removed -->
</processor>
<processor type="MoveProcessor" match="/root/child"><!-- [* or not(*)] -->
<parameter name="destination_axis">following-sibling</parameter>
<parameter name="destination_as">last_child</parameter>
<parameter name="destination_name">sibling</parameter>
<parameter name="destination_predicate">@foo = 'bar'</parameter>
</processor>
<processor type="SelectGroupByProcessor" match="/root/child"><!-- /* | .../@key -->
<parameter name="group_by" eval="@key"/><!-- replace with path to ancestor -->
<parameter name="sort_descending">true</parameter>
<parameter name="sort_type">date</parameter>
</processor>
</processors>
Generated by Lavoisier:
<processors>
<processor type="AppendAggregateProcessor" match="/root | /root/child">
<parameter name="function">sum</parameter>
<parameter name="node_name">total</parameter>
</processor>
<processor type="MoveProcessor" match="/root/child[* or not(*)]">
<parameter name="destination_axis">following-sibling</parameter>
<parameter name="destination_as">last_child</parameter>
<parameter name="destination_name">sibling</parameter>
<parameter name="destination_predicate">attribute::foo = 'bar'</parameter>
</processor>
<processor type="SelectGroupByProcessor" match="/* | /root/child/@key">
<parameter name="group_by">./parent::*</parameter>
<parameter name="sort_descending">true</parameter>
<parameter name="sort_type">date</parameter>
</processor>
</processors>
Actions