Mercurial > dive4elements > river
view artifacts/doc/conf/themes/second/floodmap.xml @ 5890:6ea004d51203
Datacage: Introduced <dc:group epxr="xpath" type="type"> ... </dc:group> and XPath function dc:group-key().
This splits the current result set into groups formed by expr. The type defaults to string.
Afterwards all these groups are iterated by there natural order.
The dc:group-key() gives access to the result of the grouping expression that forms a group.
Say, you have a result set like this:
name | description
-----+------------
a | foo
a | bar
b | baz
b | bla
c | blub
you can use:
<dc:group expr="$name">
<group name="{dc:group-key()}">
<dc:for-each>
<description value="{$description}"/>
</dc:for-each>
</group>
</dc:group>
to create:
<group name="a">
<description name="foo"/>
<description name="bar"/>
</group>
<group name="b">
<description name="baz"/>
<description name="bla"/>
</group>
<group name="c">
<description name="blub"/>
</group>
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Thu, 02 May 2013 20:52:18 +0200 |
parents | 5aa05a7a34b7 |
children |
line wrap: on
line source
<?xml version="1.0" encoding="UTF-8"?> <!--themegroup name="default"--> <theme name="MapLines"> <fields> <field name="linecolor" type="Color" display="Linienfarbe" default="0, 0, 205" /> <field name="linesize" type="int" display="Liniendicke" default="3" hints="h" /> </fields> </theme> <theme name="Floodmaps"> <inherits> <inherit from="Map" /> </inherits> </theme> <theme name="Floodplains"> <inherits> <inherit from="Map" /> </inherits> </theme> <theme name="Floodmarks"> <inherits> <inherit from="MapLines" /> <inherit from="Symbol" /> </inherits> </theme> <theme name="WSPLGEN"> <inherits> <inherit from="Uesk" /> </inherits> <fields> <field name="startcolor" type="Color" display="Farbverlauf Startfarbe" default="178, 201, 215" /> <field name="endcolor" type="Color" display="Farbverlauf Endfarbe" default="2, 27, 42" /> <field name="numclasses" type="int" display="Anzahl Klassen" default="6" /> </fields> </theme> <theme name="RiverAxis"> <inherits> <inherit from="MapLines" /> </inherits> <fields> </fields> </theme> <theme name="Kms"> <inherits> <inherit from="MapLines" /> <inherit from="Label" /> <inherit from="Symbol" /> </inherits> </theme> <theme name="Fixpoints"> <inherits> <inherit from="MapLines" /> <inherit from="Symbol" /> </inherits> </theme> <theme name="GaugeLocation"> <inherits> <inherit from="MapLines" /> <inherit from="Symbol" /> </inherits> </theme> <theme name="Qps"> <inherits> <inherit from="MapLines" /> </inherits> </theme> <theme name="Hws"> <inherits> <inherit from="MapLines" /> </inherits> </theme> <theme name="HwsPoints"> <inherits> <inherit from="MapLines"/> <inherit from="Label" /> <inherit from="Symbol" /> </inherits> </theme> <theme name="Catchment"> <inherits> <inherit from="Map" /> </inherits> </theme> <theme name="FloodmapLines"> <inherits> <inherit from="MapLines" /> </inherits> <fields> <field name="linecolor" type="Color" display="Linienfarbe" default="140, 200, 130" /> </fields> </theme> <theme name="Buildings"> <inherits> <inherit from="MapLines" /> </inherits> </theme> <theme name="HydrBoundariesLines"> <inherits> <inherit from="MapLines" /> </inherits> </theme> <theme name="HydrBoundariesPolys"> <inherits> <inherit from="Map" /> </inherits> </theme> <theme name="Jetties"> <inherits> <inherit from="MapLines"/> <inherit from="Label" /> <inherit from="Symbol" /> </inherits> </theme> <!--/themegroup-->