Project

General

Profile

Actions

Feature #6709

closed

simplify usage of some processors

Added by Reynaud Sylvain over 10 years ago. Updated over 10 years ago.

Status:
Resolved
Priority:
Low
Assigned To:
Category:
Engine
Target version:
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

Also available in: Atom PDF