comparison flys-artifacts/ChangeLog @ 957:e91996b46e3c

Meta data template: Added new choose/when/otherwise construct similiar to XSLT flys-artifacts/trunk@2376 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Wed, 20 Jul 2011 14:59:25 +0000
parents 1cf7b4ee7b6d
children ae198bef4ba0
comparison
equal deleted inserted replaced
956:1cf7b4ee7b6d 957:e91996b46e3c
1 2011-07-20 Sascha L. Teichmann <sascha.teichmann@intevation.de>
2
3 * src/main/java/de/intevation/flys/artifacts/services/meta/App.java:
4 Check if builder was created properly before using it.
5
6 * src/main/java/de/intevation/flys/artifacts/services/meta/StackFrames.java:
7 Implements now variable provider for XPath expressions.
8
9 * src/main/java/de/intevation/flys/artifacts/services/meta/Builder.java:
10 Added new choose/when/otherwise construct similiar to XSLT
11
12 <dc:choose>
13 <dc:when test="$river = 'Mosel'">
14 <dc:text>Es ist die Mosel.</dc:text>
15 </dc:when>
16 <dc:when test="$river = 'Saar'">
17 <dc:text>Es ist die Saar.</dc:text>
18 </dc:when>
19 <dc:otherwise>
20 <dc:text>Es ist weder Mosel noch Saar.</dc:text>
21 </dc:otherwise>
22 </dc:choose>
23
24 A 'choose' block can contain a list of 'when's and an optional
25 'otherwise'. For each 'when' the test attribute is evaluated
26 as an XPath expression on an empty document. The result of
27 the evaluation is taken as a boolean value. If its value is
28 true the control flow is continued inside the corresponding
29 'when' and the other choose elements are not tested.
30 If the value is values the testing continues with the next
31 'when'. If no 'test' expression is evaluated to true, the
32 control flow continues inside the 'otherwise'. If no 'otherwise'
33 is given nothing happens at all.
34
1 2011-07-20 Ingo Weinzierl <ingo@intevation.de> 35 2011-07-20 Ingo Weinzierl <ingo@intevation.de>
2 36
3 * doc/conf/conf.xml: Added a config section for floodmaps. Currently, the 37 * doc/conf/conf.xml: Added a config section for floodmaps. Currently, the
4 background layer's url and layername is defined here. 38 background layer's url and layername is defined here.
5 39

http://dive4elements.wald.intevation.org