Configuration example
<config xmlns="http://software.in2p3.fr/lavoisier/config.xsd" xmlns:xi="http://www.w3.org/2001/XInclude" version="12"> <xi:include href="lavoisier-console.xml" xpointer="element(/1/*)"/> <view name="restricted" authorized="user()='lavoisier'"> <connector type="StringConnector"> <parameter name="content">SECRET</parameter> </connector> <serializer type="EncapsulateSerializer"> <parameter name="cdata">false</parameter> </serializer> </view> <view name="sendback"> <info> <category>Hidden</category> </info> <connector type="XMLConnector"> <parameter name="content" eval="post()"/> </connector> <renderers> <renderer type="DefaultRenderer"> <parameter name="contentType">application/xml</parameter> </renderer> </renderers> </view> <view xmlns:ns="uri://" name="example"> <info> <accept>chart</accept> </info> <argument name="axis" path-format="none" pattern="normal|inverted|polar">polar</argument> <argument name="stacking" path-format="none" pattern="none|normal|percent">none</argument> <connector type="XMLConnector"> <parameter name="content"> <data xmlns="uri://"> <products month="January"><A>8343</A><B>2446</B></products> <products month="February"><A>6983</A><B>3935</B></products> <products month="March"><A>7658</A><B>3452</B></products> <products month="April"><A>8345</A><B>4424</B></products> <products month="May"><A>8195</A><B>4925</B></products> <products month="June"><A>7684</A><B>4328</B></products> </data> </parameter> </connector> <processors> <insert match="/ns:data/ns:products[ns:B]" nodes="new_element('C', ns:B/text())"/> </processors> <cache type="FileCache"> <trigger type="ViewCreatedAndDeltaTimeTrigger"> <parameter name="hours">1</parameter> </trigger> <trigger type="ViewNotifiedTrigger"/> </cache> <pre-renderers> <title>'DATA'</title> <row foreach="/ns:data/ns:products"> <column>@month</column> <column unit="quantity">ns:A</column> <column unit="quantity">ns:B</column> <column unit="other">ns:C</column> </row> </pre-renderers> <renderers> <renderer type="ChartRenderer"> <parameter name="types"> <entry>area</entry> <entry>spline</entry> </parameter> <parameter name="axis" eval="$axis"/> <parameter name="stacking" eval="$stacking"/> </renderer> <renderer type="CsvRenderer"> <parameter name="separator">;</parameter> </renderer> </renderers> </view> <view name="logo"> <argument name="ratio" pattern="\d+"/> <argument name="hair" path-format="name_value">grey</argument> <connector type="XMLConnector"> <parameter name="content" eval="document('rsc/logo.svg')"/> </connector> <processors xmlns:svg="http://www.w3.org/2000/svg"> <!-- use ratio to change height and width --> <replace match="/svg:svg/@height" nodes="concat(substring-before(., 'px') * number($ratio div 100), 'px')"/> <replace match="/svg:svg/@width" nodes="concat(substring-before(., 'px') * number($ratio div 100), 'px')"/> <!-- change hair color --> <replace match="//svg:path[@id='hair']/@fill" nodes="$hair"/> </processors> <renderers> <renderer type="DefaultRenderer"> <parameter name="contentType">image/svg+xml</parameter> </renderer> </renderers> </view> </config>