Project

General

Profile

Actions

Feature #9562

open

re-implement <pre-renderers> in streaming mode

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

Status:
New
Priority:
Normal
Assigned To:
-
Category:
Engine
Target version:
-
Start date:
03/30/2015
Due date:
% Done:

0%

Estimated time:

Description

Use Lavoisier's XML template engine instead of XSLT processor !


Related issues

Blocked by Lavoisier - Feature #9563: support <elements-ignore> into <element-create-as-parent>New03/30/2015

Actions
Actions #1

Updated by Reynaud Sylvain over 9 years ago

Example:

<pre_renderers>
    <field>/*/@field</field>
    <row foreach="/*/*/*">
        <column>@foo</column>
        <column>bar</column>
    </row>
</pre_renderers>

...can be translated to:

<pre_renderers xmlns:r="http://software.in2p3.fr/lavoisier/rendering.xsd">
    <element out="r:rendering">
        <attribute-ignore/>
        <element-create>new_element('field', new_attribute('label',local-name(/*/@field)) | new_text(/*/@field))</element-create>
        <element-create-as-parent out="r:rows">
            <elements-ignore path="*">
                <element out="r:row">
                    <attribute-ignore/><element-ignore/><text-ignore/><comment-ignore/>
                    <element-create>new_element('column', new_attribute('label',local-name(@foo)) | new_text(@foo))</element-create>
                    <element-create>new_element('column', new_attribute('label',local-name(bar)) | new_text(bar))</element-create>
                </element>
            </elements-ignore>
        </element-create-as-parent>
        <element-ignore/><text-ignore/><comment-ignore/>
    </element>
</pre_renderers>

Actions #2

Updated by Reynaud Sylvain over 9 years ago

  • Blocked by Feature #9563: support <elements-ignore> into <element-create-as-parent> added
Actions

Also available in: Atom PDF