Mercurial > dive4elements > river
comparison flys-artifacts/doc/conf/meta-data.xml @ 5524:3badc699af0e
Replaced usage of old <dc:for-each filter="..."/> by <dc:filter expr="..."><dc:if test="dc:has-result()">.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Mon, 01 Apr 2013 13:36:14 +0200 |
parents | 35dba807966a |
children | 52876daf97b0 |
comparison
equal
deleted
inserted
replaced
5523:35dba807966a | 5524:3badc699af0e |
---|---|
904 </dc:for-each> | 904 </dc:for-each> |
905 </dc:context> | 905 </dc:context> |
906 </dems> | 906 </dems> |
907 </dc:macro> | 907 </dc:macro> |
908 | 908 |
909 <dc:macro name="filter_hws_ddg"> | |
910 <dc:macro name="durchlass_damm_graben"> | |
911 <dc:macro name="ddg_factory"> | |
912 <dc:for-each> | |
913 <hws factory="hwsfactory" name="{$hws_name}"/> | |
914 </dc:for-each> | |
915 </dc:macro> | |
916 | |
917 <dc:filter expr="$kws_kind=1"> | |
918 <dc:if test="dc:has-result()"> | |
919 <Durchlass><dc:call-macro name="ddg_factory"/></Durchlass> | |
920 </dc:if> | |
921 </dc:filter> | |
922 | |
923 <dc:filter expr="$kws_kind=2"> | |
924 <dc:if test="dc:has-result()"> | |
925 <Damm><dc:call-macro name="ddg_factory"/></Damm> | |
926 </dc:if> | |
927 </dc:filter> | |
928 | |
929 <dc:filter expr="$kws_kind=3"> | |
930 <dc:if test="dc:has-result()"> | |
931 <Graben><dc:call-macro name="ddg_factory"/></Graben> | |
932 </dc:if> | |
933 </dc:filter> | |
934 </dc:macro> | |
935 | |
936 <dc:filter expr="$hws_official=1"> | |
937 <dc:if test="dc:has-result()"> | |
938 <official> | |
939 <dc:call-macro name="durchlass_damm_graben"/> | |
940 </official> | |
941 </dc:if> | |
942 </dc:filter> | |
943 | |
944 <dc:filter expr="$hws_official=0"> | |
945 <dc:if test="dc:has-result()"> | |
946 <inofficial> | |
947 <dc:call-macro name="durchlass_damm_graben"/> | |
948 </inofficial> | |
949 </dc:if> | |
950 </dc:filter> | |
951 </dc:macro> | |
952 | |
909 <dc:macro name="flood-map-hws-lines"> | 953 <dc:macro name="flood-map-hws-lines"> |
910 <dc:context> | 954 <dc:context> |
911 <dc:statement> | 955 <dc:statement> |
912 SELECT DISTINCT | 956 SELECT DISTINCT |
913 name AS hws_name, | 957 name AS hws_name, |
914 official AS hws_official, | 958 official AS hws_official, |
915 kind_id AS hws_kind | 959 kind_id AS hws_kind |
916 FROM hws_lines | 960 FROM hws_lines |
917 WHERE river_id = ${river_id} | 961 WHERE river_id = ${river_id} |
918 </dc:statement> | 962 </dc:statement> |
919 <lines> | 963 <dc:if test="dc:has-result()"> |
920 <official> | 964 <lines> |
921 <Durchlass> | 965 <dc:call-macro name="filter_hws_ddg"/> |
922 <dc:for-each filter="$hws_kind=1 and $hws_official=1"> | 966 </lines> |
923 <hws factory="hwsfactory" name="{$hws_name}"/> | 967 </dc:if> |
924 </dc:for-each> | |
925 </Durchlass> | |
926 <Damm> | |
927 <dc:for-each filter="$hws_kind=2 and $hws_official=1"> | |
928 <hws factory="hwsfactory" name="{$hws_name}"/> | |
929 </dc:for-each> | |
930 </Damm> | |
931 <Graben> | |
932 <dc:for-each filter="$hws_kind=3 and $hws_official=1"> | |
933 <hws factory="hwsfactory" name="{$hws_name}"/> | |
934 </dc:for-each> | |
935 </Graben> | |
936 </official> | |
937 <inofficial> | |
938 <Durchlass> | |
939 <dc:for-each filter="$hws_kind=1 and $hws_official=0"> | |
940 <hws factory="hwsfactory" name="{$hws_name}"/> | |
941 </dc:for-each> | |
942 </Durchlass> | |
943 <Damm> | |
944 <dc:for-each filter="$hws_kind=2 and $hws_official=0"> | |
945 <hws factory="hwsfactory" name="{$hws_name}"/> | |
946 </dc:for-each> | |
947 </Damm> | |
948 <Graben> | |
949 <dc:for-each filter="$hws_kind=3 and $hws_official=0"> | |
950 <hws factory="hwsfactory" name="{$hws_name}"/> | |
951 </dc:for-each> | |
952 </Graben> | |
953 </inofficial> | |
954 </lines> | |
955 </dc:context> | 968 </dc:context> |
956 </dc:macro> | 969 </dc:macro> |
957 | 970 |
958 <dc:macro name="flood-map-hws-points"> | 971 <dc:macro name="flood-map-hws-points"> |
959 <dc:context> | 972 <dc:context> |
960 <dc:statement> | 973 <dc:statement> |
961 SELECT DISTINCT | 974 SELECT DISTINCT |
962 name AS hws_points_name, | 975 name AS hws_name, |
963 official AS hws_points_official, | 976 official AS hws_official, |
964 kind_id AS hws_points_kind | 977 kind_id AS hws_kind |
965 FROM hws_points | 978 FROM hws_points |
966 WHERE river_id = ${river_id} | 979 WHERE river_id = ${river_id} |
967 </dc:statement> | 980 </dc:statement> |
968 <points> | 981 <dc:if test="dc:has-result()"> |
969 <official> | 982 <points> |
970 <Durchlass> | 983 <dc:call-macro name="filter_hws_ddg"/> |
971 <dc:for-each filter="$hws_points_kind=1 and $hws_points_official=1"> | 984 </points> |
972 <hws factory="hwsfactory" name="{$hws_points_name}"/> | 985 </dc:if> |
973 </dc:for-each> | |
974 </Durchlass> | |
975 <Damm> | |
976 <dc:for-each filter="$hws_points_kind=2 and $hws_points_official=1"> | |
977 <hws factory="hwsfactory" name="{$hws_points_name}"/> | |
978 </dc:for-each> | |
979 </Damm> | |
980 <Graben> | |
981 <dc:for-each filter="$hws_kind=3 and $hws_official=1"> | |
982 <hws factory="hwsfactory" name="{$hws_points_name}"/> | |
983 </dc:for-each> | |
984 </Graben> | |
985 </official> | |
986 <inofficial> | |
987 <Durchlass> | |
988 <dc:for-each filter="$hws_points_kind=1 and $hws_points_official=0"> | |
989 <hws factory="hwsfactory" name="{$hws_points_name}"/> | |
990 </dc:for-each> | |
991 </Durchlass> | |
992 <Damm> | |
993 <dc:for-each filter="$hws_points_kind=2 and $hws_points_official=0"> | |
994 <hws factory="hwsfactory" name="{$hws_points_name}"/> | |
995 </dc:for-each> | |
996 </Damm> | |
997 <Graben> | |
998 <dc:for-each filter="$hws_points_kind=3 and $hws_points_official=0"> | |
999 <hws factory="hwsfactory" name="{$hws_points_name}"/> | |
1000 </dc:for-each> | |
1001 </Graben> | |
1002 </inofficial> | |
1003 </points> | |
1004 </dc:context> | 986 </dc:context> |
1005 </dc:macro> | 987 </dc:macro> |
1006 | 988 |
1007 <dc:macro name="flood-map-km"> | 989 <dc:macro name="flood-map-km"> |
1008 <dc:context> | 990 <dc:context> |
1257 <dc:macro name="hwslines_by_kind"> | 1239 <dc:macro name="hwslines_by_kind"> |
1258 <dc:comment> | 1240 <dc:comment> |
1259 Call from a context where fed_name hws_kind hws_name and river_id is | 1241 Call from a context where fed_name hws_kind hws_name and river_id is |
1260 availble | 1242 availble |
1261 </dc:comment> | 1243 </dc:comment> |
1262 <Durchlass> | 1244 |
1263 <dc:for-each filter="$hws_kind=1"> | 1245 <dc:macro name="hwslines_by_kind_factory"> |
1246 <dc:for-each> | |
1264 <hws factory="wmshwslinesfactory" | 1247 <hws factory="wmshwslinesfactory" |
1265 ids="{$river_id};{$hws_name}" | 1248 ids="{$river_id};{$hws_name}" |
1266 name="{$hws_name}"/> | 1249 name="{$hws_name}"/> |
1267 </dc:for-each> | 1250 </dc:for-each> |
1268 </Durchlass> | 1251 </dc:macro> |
1269 <Damm> | 1252 |
1270 <dc:for-each filter="$hws_kind=2"> | 1253 <dc:filter expr="$hws_kind=1"> |
1271 <hws factory="wmshwslinesfactory" | 1254 <dc:if test="dc:has-result()"> |
1272 ids="{$river_id};{$hws_name}" | 1255 <Durchlass> |
1273 name="{$hws_name}"/> | 1256 <dc:call-macro name="hwslines_by_kind_factory"/> |
1274 </dc:for-each> | 1257 </Durchlass> |
1275 </Damm> | 1258 </dc:if> |
1276 <Graben> | 1259 </dc:filter> |
1277 <dc:for-each filter="$hws_kind=3"> | 1260 |
1278 <hws factory="wmshwslinesfactory" | 1261 <dc:filter expr="$hws_kind=2"> |
1279 ids="{$river_id};{$hws_name}" | 1262 <dc:if test="dc:has-result()"> |
1280 name="{$hws_name}"/> | 1263 <Damm> |
1281 </dc:for-each> | 1264 <dc:call-macro name="hwslines_by_kind_factory"/> |
1282 </Graben> | 1265 </Damm> |
1266 </dc:if> | |
1267 </dc:filter> | |
1268 | |
1269 <dc:filter expr="$hws_kind=3"> | |
1270 <dc:if test="dc:has-result()"> | |
1271 <Graben> | |
1272 <dc:call-macro name="hwslines_by_kind_factory"/> | |
1273 </Graben> | |
1274 </dc:if> | |
1275 </dc:filter> | |
1283 </dc:macro> | 1276 </dc:macro> |
1284 | 1277 |
1285 <dc:macro name="hwslines"> | 1278 <dc:macro name="hwslines"> |
1286 <hws_lines> | 1279 <hws_lines> |
1287 <official> | 1280 <official> |
1377 <dc:macro name="hwspoints_by_kind"> | 1370 <dc:macro name="hwspoints_by_kind"> |
1378 <dc:comment> | 1371 <dc:comment> |
1379 Call from a context where fed_name hws_kind hws_name and river_id is | 1372 Call from a context where fed_name hws_kind hws_name and river_id is |
1380 availble | 1373 availble |
1381 </dc:comment> | 1374 </dc:comment> |
1382 <Durchlass> | 1375 |
1383 <dc:for-each filter="$hws_kind=1"> | 1376 <dc:macro name="hwspoints_by_kind_factory"> |
1377 <dc:for-each> | |
1384 <hws factory="wmshwspointsfactory" | 1378 <hws factory="wmshwspointsfactory" |
1385 ids="{$river_id};{$hws_name}" | 1379 ids="{$river_id};{$hws_name}" |
1386 name="{$hws_name}"/> | 1380 name="{$hws_name}"/> |
1387 </dc:for-each> | 1381 </dc:for-each> |
1388 </Durchlass> | 1382 </dc:macro> |
1389 <Damm> | 1383 |
1390 <dc:for-each filter="$hws_kind=2"> | 1384 <dc:filter expr="$hws_kind=1"> |
1391 <hws factory="wmshwspointsfactory" | 1385 <dc:if test="dc:has-result()"> |
1392 ids="{$river_id};{$hws_name}" | 1386 <Durchlass> |
1393 name="{$hws_name}"/> | 1387 <dc:call-macro name="hwspoints_by_kind_factory"/> |
1394 </dc:for-each> | 1388 </Durchlass> |
1395 </Damm> | 1389 </dc:if> |
1396 <Graben> | 1390 </dc:filter> |
1397 <dc:for-each filter="$hws_kind=3"> | 1391 |
1398 <hws factory="wmshwspointsfactory" | 1392 <dc:filter expr="$hws_kind=2"> |
1399 ids="{$river_id};{$hws_name}" | 1393 <dc:if test="dc:has-result()"> |
1400 name="{$hws_name}"/> | 1394 <Damm> |
1401 </dc:for-each> | 1395 <dc:call-macro name="hwspoints_by_kind_factory"/> |
1402 </Graben> | 1396 </Damm> |
1397 </dc:if> | |
1398 </dc:filter> | |
1399 | |
1400 <dc:filter expr="$hws_kind=3"> | |
1401 <dc:if test="dc:has-result()"> | |
1402 <Graben> | |
1403 <dc:call-macro name="hwspoints_by_kind_factory"/> | |
1404 </Graben> | |
1405 </dc:if> | |
1406 </dc:filter> | |
1403 </dc:macro> | 1407 </dc:macro> |
1404 | 1408 |
1405 <dc:macro name="hwspoints"> | 1409 <dc:macro name="hwspoints"> |
1406 <hws_points> | 1410 <hws_points> |
1407 <official> | 1411 <official> |