view backend/doc/annotation-types.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 8025cb45c31a
line wrap: on
line source
<?xml version="1.0" encoding="UTF-8" ?>
<annotation>
    <types>
        <type name="Abzweigung"/>
        <type name="Berechnungsstrecke"/>
        <type name="Brücke"/>
        <type name="Bundesland"/>
        <type name="Deich"/>
        <type name="Einmündung"/>
        <type name="Fähre"/>
        <type name="Gemeinde"/>
        <type name="Grenze"/>
        <type name="Hafen"/>
        <type name="HW-Schutz"/>
        <type name="Landkreis"/>
        <type name="Meldestelle"/>
        <type name="Messstelle"/>
        <type name="Pegel"/>
        <type name="Stauwehr"/>
        <type name="Staatsgrenze"/>
        <type name="Staat"/>
        <type name="WSA"/>
        <type name="Zufluß"/>
        <type name="Sonstige" default="true"/>
    </types>

    <patterns>
        <file pattern="^Brücken$" type="Brücke"/>
        <file pattern="^Deich.*$" type="Deich"/>
        <file pattern="^Hafen$" type="Hafen"/>
        <file pattern="^Pegel-alle$" type="Pegel"/>
        <file pattern="^Pegel$" type="Pegel"/>
        <file pattern="^Wehr$" type="Stauwehr"/>
        <file pattern="^Stauwehr$" type="Stauwehr"/>
        <file pattern="^Zufluß$" type="Zufluß"/>

        <line pattern="^Abz\.?[:\s].*$" type="Abzweigung"/>
        <line pattern="^Berechnungsstrecke.*$" type="Berechnungsstrecke"/>
        <line pattern="^Brücke[:\s].*$" type="Brücke"/>
        <line pattern="^Bundesland[:\s].*$" type="Bundesland"/>
        <line pattern="^Einmündung[:\s].*$" type="Einmündung"/>
        <line pattern="^Fähre[:\s].*$" type="Abzweigung"/>
        <line pattern="^Gemeinde[:\s].*$" type="Gemeinde"/>
        <line pattern="^Grenze[:\s].*$" type="Grenze"/>
        <line pattern="^Hafen[:\s].*$" type="Hafen"/>
        <line pattern="^HW-Schutz[:\s].*$" type="HW-Schutz"/>
        <line pattern="^Landkreis[:\s].*$" type="Landkreis"/>
        <line pattern="^Meldestelle[:\s].*$" type="Meldestelle"/>
        <line pattern="^Messstelle[:\s].*$" type="Messstelle"/>
        <line pattern="^Geschiebemessstelle[:\s].*$" type="Messstelle"/>
        <line pattern="^Pegel[:\s].*$" type="Pegel"/>
        <line pattern="^Staatsgrenze[:\s].*$" type="Staatsgrenze"/>
        <line pattern="^Staat[:\s].*$" type="Staat"/>
        <line pattern="^Wehr[:\s].*$" type="Stauwehr"/>
        <line pattern="^WSA[:\s].*$" type="WSA"/>
        <line pattern="^Zufluß[:\s].*$" type="Zufluß"/>
    </patterns>
</annotation>

http://dive4elements.wald.intevation.org