comparison artifacts/doc/conf/meta-data.xml @ 8307:60212ed56023

Put all macros for wst-data in one place and reduce code duplications.
author "Tom Gottfried <tom@intevation.de>"
date Tue, 23 Sep 2014 10:11:52 +0200
parents 33d90858b2dc
children b5e63ad6d307
comparison
equal deleted inserted replaced
8306:33d90858b2dc 8307:60212ed56023
82 <dc:call-macro name="basedata_3_officials_wq"/> 82 <dc:call-macro name="basedata_3_officials_wq"/>
83 </dc:when> 83 </dc:when>
84 <dc:when test="$out = 'computed_discharge_curve'"> 84 <dc:when test="$out = 'computed_discharge_curve'">
85 <dc:call-macro name="mainvalues"/> 85 <dc:call-macro name="mainvalues"/>
86 <dc:call-macro name="basedata_3_officials_wq"/> 86 <dc:call-macro name="basedata_3_officials_wq"/>
87 <dc:call-macro name="basedata_2_fixations_wqkms"/> 87 <dc:call-macro name="basedata_2_fixations_wq"/>
88 </dc:when> 88 </dc:when>
89 <dc:when test="$out = 'fix_wq_curve'"> 89 <dc:when test="$out = 'fix_wq_curve'">
90 <dc:call-macro name="mainvalues"/> 90 <dc:call-macro name="mainvalues"/>
91 <dc:call-macro name="qsectors"/> 91 <dc:call-macro name="qsectors"/>
92 </dc:when> 92 </dc:when>
1072 </dc:call-macro> 1072 </dc:call-macro>
1073 </waterlevels_discharge> 1073 </waterlevels_discharge>
1074 </dc:if> 1074 </dc:if>
1075 </dc:filter> 1075 </dc:filter>
1076 </dc:macro> 1076 </dc:macro>
1077
1078
1077 <!-- Macros to load system data --> 1079 <!-- Macros to load system data -->
1078 1080
1079 <dc:macro name="annotations"> 1081 <dc:macro name="annotations">
1080 <annotation factory="annotations" ids="{$river_id}" target_out="{$out}" /> 1082 <annotation factory="annotations" ids="{$river_id}" target_out="{$out}" />
1081 </dc:macro> 1083 </dc:macro>
1125 </dc:for-each> 1127 </dc:for-each>
1126 </dc:context> 1128 </dc:context>
1127 </hyks> 1129 </hyks>
1128 </dc:macro> 1130 </dc:macro>
1129 1131
1132
1133 <!-- wst-data -->
1134
1135 <!-- model-waterlevels -->
1136 <dc:macro name="basedata_0_macro">
1137 <dc:filter expr="$kind = 0">
1138 <dc:if test="dc:has-result()">
1139 <basedata>
1140 <dc:group expr="$wst_description">
1141 <basedata name="{dc:group-key()}">
1142 <dc:for-each>
1143 <dc:macro-body/>
1144 </dc:for-each>
1145 </basedata>
1146 </dc:group>
1147 </basedata>
1148 </dc:if>
1149 </dc:filter>
1150 </dc:macro>
1151
1152 <dc:macro name="basedata_0">
1153 <dc:call-macro name="basedata_0_macro">
1154 <column name="{$wst_column_name}"
1155 ids="base_data-wstv-{$wst_column_position}-{$wst_id}"
1156 factory="staticwqkms" target_out="{$out}"
1157 info="{$info} [km {$deffrom} - {$defto}]"/>
1158 </dc:call-macro>
1159 </dc:macro>
1160
1161 <dc:macro name="basedata_0_wq">
1162 <dc:call-macro name="basedata_0_macro">
1163 <column name="{$wst_column_name}"
1164 ids="base_data-wstv-{$wst_column_position}-{$wst_id}"
1165 factory="wqinterpol" target_out="{$out}"
1166 info="{$info} [km {$deffrom} - {$defto}]"/>
1167 </dc:call-macro>
1168 </dc:macro>
1169
1170 <!-- additional longitudinal sections -->
1171 <dc:macro name="basedata_1_additionals_macro">
1172 <dc:filter expr="$kind=1">
1173 <dc:if test="dc:has-result()">
1174 <additionals>
1175 <dc:group expr="dc:replace($wst_description, 'Zus.Längsschnitte/', '')">
1176 <additional name="{dc:group-key()}">
1177 <dc:for-each>
1178 <dc:macro-body/>
1179 </dc:for-each>
1180 </additional>
1181 </dc:group>
1182 </additionals>
1183 </dc:if>
1184 </dc:filter>
1185 </dc:macro>
1186
1187 <dc:macro name="basedata_1_additionals">
1188 <dc:call-macro name="basedata_1_additionals_macro">
1189 <column name="{$wst_column_name}"
1190 ids="additionals-wstv-{$wst_column_position}-{$wst_id}"
1191 factory="staticwqkms" target_out="{$out}"
1192 info="{$info} [km {$deffrom} - {$defto}]"/>
1193 </dc:call-macro>
1194 </dc:macro>
1195
1196 <dc:macro name="basedata_1_additionals_wq">
1197 <dc:call-macro name="basedata_1_additionals_macro">
1198 <column name="{$wst_column_name}"
1199 ids="base_data-wstv-{$wst_column_position}-{$wst_id}"
1200 factory="wqinterpol" target_out="{$out}"
1201 info="{$info} [km {$deffrom} - {$defto}]"/>
1202 </dc:call-macro>
1203 </dc:macro>
1204
1205 <dc:macro name="basedata_1_additionals-relative_point">
1206 <dc:call-macro name="basedata_1_additionals_macro">
1207 <column name="{$wst_column_name}"
1208 ids="additionals-wstv-{$wst_column_position}-{$wst_id}"
1209 factory="staticwkms" target_out="{$out}"
1210 info="{$info} [km {$deffrom} - {$defto}]"/>
1211 </dc:call-macro>
1212 </dc:macro>
1213
1214 <!-- fixations -->
1130 <dc:macro name="fixings-macro"> 1215 <dc:macro name="fixings-macro">
1131 <dc:filter expr="$kind=2"> 1216 <dc:filter expr="$kind=2">
1132 <dc:if test="dc:has-result()"> 1217 <dc:if test="dc:has-result()">
1133 <fixations> 1218 <fixations>
1134 <dc:group expr="dc:replace($wst_description, 'Fixierungen/', '')"> 1219 <dc:group expr="dc:replace($wst_description, 'Fixierungen/', '')">
1141 </fixations> 1226 </fixations>
1142 </dc:if> 1227 </dc:if>
1143 </dc:filter> 1228 </dc:filter>
1144 </dc:macro> 1229 </dc:macro>
1145 1230
1146 <dc:macro name="basedata_2_fixations_wqkms">
1147 <dc:call-macro name="fixings-macro">
1148 <column name="{$wst_column_name}"
1149 ids="fixations-wstv-{$wst_column_position}-{$wst_id}"
1150 factory="wqinterpol" target_out="{$out}"
1151 info="{$info} [km {$deffrom} - {$defto}]"/>
1152 </dc:call-macro>
1153 </dc:macro>
1154
1155 <dc:macro name="basedata_2_fixations"> 1231 <dc:macro name="basedata_2_fixations">
1156 <dc:call-macro name="fixings-macro"> 1232 <dc:call-macro name="fixings-macro">
1157 <column name="{$wst_column_name}" 1233 <column name="{$wst_column_name}"
1158 ids="fixations-wstv-{$wst_column_position}-{$wst_id}" 1234 ids="fixations-wstv-{$wst_column_position}-{$wst_id}"
1159 factory="staticwqkms" target_out="{$out}" 1235 factory="staticwqkms" target_out="{$out}"
1160 info="{$info} [km {$deffrom} - {$defto}]"/> 1236 info="{$info} [km {$deffrom} - {$defto}]"/>
1161 </dc:call-macro> 1237 </dc:call-macro>
1162 </dc:macro> 1238 </dc:macro>
1163 1239
1164 <dc:macro name="basedata_3_officials"> 1240 <dc:macro name="basedata_2_fixations_wq">
1241 <dc:call-macro name="fixings-macro">
1242 <column name="{$wst_column_name}"
1243 ids="fixations-wstv-{$wst_column_position}-{$wst_id}"
1244 factory="wqinterpol" target_out="{$out}"
1245 info="{$info} [km {$deffrom} - {$defto}]"/>
1246 </dc:call-macro>
1247 </dc:macro>
1248
1249 <dc:macro name="basedata_2_fixations_relative_point">
1250 <dc:call-macro name="fixings-macro">
1251 <column name="{$wst_column_name}"
1252 ids="fixations-wstv-{$wst_column_position}-{$wst_id}"
1253 factory="staticwkms" target_out="{$out}"
1254 info="{$info} [km {$deffrom} - {$defto}]"/>
1255 </dc:call-macro>
1256 </dc:macro>
1257
1258 <!-- official lines -->
1259 <dc:macro name="basedata_3_macro">
1165 <dc:filter expr="$kind=3"> 1260 <dc:filter expr="$kind=3">
1166 <dc:if test="dc:has-result()"> 1261 <dc:if test="dc:has-result()">
1167 <officiallines> 1262 <officiallines>
1168 <dc:group expr="$wst_description"> 1263 <dc:group expr="$wst_description">
1169 <official name="{dc:group-key()}"> 1264 <official name="{dc:group-key()}">
1170 <dc:for-each> 1265 <dc:for-each>
1171 <column name="{$wst_column_name}" 1266 <dc:macro-body/>
1172 ids="additionals-wstv-{$wst_column_position}-{$wst_id}"
1173 factory="staticwqkms"
1174 target_out="{$out}"
1175 info="{$info} [km {$deffrom} - {$defto}]"/>
1176 </dc:for-each> 1267 </dc:for-each>
1177 </official> 1268 </official>
1178 </dc:group> 1269 </dc:group>
1179 </officiallines> 1270 </officiallines>
1180 </dc:if> 1271 </dc:if>
1181 </dc:filter> 1272 </dc:filter>
1182 </dc:macro> 1273 </dc:macro>
1183 1274
1275 <dc:macro name="basedata_3_officials">
1276 <dc:call-macro name="basedata_3_macro">
1277 <column name="{$wst_column_name}"
1278 ids="additionals-wstv-{$wst_column_position}-{$wst_id}"
1279 factory="staticwqkms"
1280 target_out="{$out}"
1281 info="{$info} [km {$deffrom} - {$defto}]"/>
1282 </dc:call-macro>
1283 </dc:macro>
1284
1184 <dc:macro name="basedata_3_officials_wq"> 1285 <dc:macro name="basedata_3_officials_wq">
1185 <dc:filter expr="$kind=3"> 1286 <dc:call-macro name="basedata_3_macro">
1186 <dc:if test="dc:has-result()"> 1287 <column name="{$wst_column_name}"
1187 <officiallines> 1288 ids="officials_wq-wstv-{$wst_column_position}-{$wst_id}"
1188 <dc:group expr="$wst_description"> 1289 factory="wqinterpol"
1189 <official name="{dc:group-key()}"> 1290 target_out="{$out}"
1190 <dc:for-each> 1291 info="{$info} [km {$deffrom} - {$defto}]"/>
1191 <column name="{$wst_column_name}" 1292 </dc:call-macro>
1192 ids="officials_wq-wstv-{$wst_column_position}-{$wst_id}" 1293 </dc:macro>
1193 factory="wqinterpol" 1294
1194 target_out="{$out}" 1295 <!-- flood marks -->
1195 info="{$info} [km {$deffrom} - {$defto}]"/> 1296 <dc:macro name="basedata_4_macro">
1196 </dc:for-each>
1197 </official>
1198 </dc:group>
1199 </officiallines>
1200 </dc:if>
1201 </dc:filter>
1202 </dc:macro>
1203
1204 <dc:macro name="basedata_4_heightmarks-points">
1205 <dc:filter expr="$kind=4"> 1297 <dc:filter expr="$kind=4">
1206 <dc:if test="dc:has-result()"> 1298 <dc:if test="dc:has-result()">
1207 <heightmarks> 1299 <heightmarks>
1208 <dc:group expr="dc:replace($wst_description, 'HW-Marken/', '')"> 1300 <dc:group expr="dc:replace($wst_description, 'HW-Marken/', '')">
1209 <heightmark name="{dc:group-key()}"> 1301 <heightmark name="{dc:group-key()}">
1210 <dc:for-each> 1302 <dc:for-each>
1211 <column name="{$wst_column_name}" 1303 <dc:macro-body/>
1212 ids="heightmarks_points-wstv-{$wst_column_position}-{$wst_id}"
1213 factory="staticwkms" target_out="{$out}"
1214 info="{$info} [km {$deffrom} - {$defto}]"/>
1215 </dc:for-each> 1304 </dc:for-each>
1216 </heightmark> 1305 </heightmark>
1217 </dc:group> 1306 </dc:group>
1218 </heightmarks> 1307 </heightmarks>
1219 </dc:if> 1308 </dc:if>
1220 </dc:filter> 1309 </dc:filter>
1221 </dc:macro> 1310 </dc:macro>
1222 1311
1312 <dc:macro name="basedata_4_heightmarks-points">
1313 <dc:call-macro name="basedata_4_macro">
1314 <column name="{$wst_column_name}"
1315 ids="heightmarks_points-wstv-{$wst_column_position}-{$wst_id}"
1316 factory="staticwkms" target_out="{$out}"
1317 info="{$info} [km {$deffrom} - {$defto}]"/>
1318 </dc:call-macro>
1319 </dc:macro>
1320
1321 <dc:macro name="basedata_4_heightmarks-points_wq">
1322 <dc:call-macro name="basedata_4_macro">
1323 <column name="{$wst_column_name}"
1324 ids="heightmarks_points-wstv-{$wst_column_position}-{$wst_id}"
1325 factory="wqinterpol" target_out="{$out}"
1326 info="{$info} [km {$deffrom} - {$defto}]"/>
1327 </dc:call-macro>
1328 </dc:macro>
1329
1223 <dc:macro name="basedata_4_heightmarks-points-relative_points"> 1330 <dc:macro name="basedata_4_heightmarks-points-relative_points">
1224 <dc:filter expr="$kind=4"> 1331 <dc:call-macro name="basedata_4_macro">
1225 <dc:if test="dc:has-result()"> 1332 <column name="{$wst_column_name}"
1226 <heightmarks> 1333 ids="heightmarks_points-wstv-{$wst_column_position}-{$wst_id}"
1227 <dc:group expr="dc:replace($wst_description, 'HW-Marken/', '')"> 1334 factory="staticwkms" target_out="{$out}"
1335 info="{$info} [km {$deffrom} - {$defto}]"/>
1336 </dc:call-macro>
1337 </dc:macro>
1338
1339 <!-- flood protection structures -->
1340 <dc:macro name="basedata_5_macro">
1341 <dc:filter expr="$kind=5">
1342 <dc:if test="dc:has-result()">
1343 <flood_protections>
1344 <dc:group expr="dc:replace($wst_description, 'HW-Schutzanlagen/', '')">
1345 <flood_protection name="{dc:group-key()}">
1346 <dc:for-each>
1347 <dc:macro-body/>
1348 </dc:for-each>
1349 </flood_protection>
1350 </dc:group>
1351 </flood_protections>
1352 </dc:if>
1353 </dc:filter>
1354 </dc:macro>
1355
1356 <dc:macro name="basedata_5_flood-protections">
1357 <dc:call-macro name="basedata_5_macro">
1358 <column name="{$wst_column_name}"
1359 ids="flood_protection-wstv-{$wst_column_position}-{$wst_id}"
1360 factory="staticwkms" target_out="{$out}"
1361 info="{$info} [km {$deffrom} - {$defto}]"/>
1362 </dc:call-macro>
1363 </dc:macro>
1364
1365 <dc:macro name="basedata_5_flood-protections_wq">
1366 <dc:call-macro name="basedata_5_macro">
1367 <column name="{$wst_column_name}"
1368 ids="flood_protection-wstv-{$wst_column_position}-{$wst_id}"
1369 factory="wqinterpol" target_out="{$out}"
1370 info="{$info} [km {$deffrom} - {$defto}]"/>
1371 </dc:call-macro>
1372 </dc:macro>
1373
1374 <dc:macro name="basedata_5_flood-protections_relative_points">
1375 <dc:call-macro name="basedata_5_macro">
1376 <column name="{$wst_column_name}"
1377 ids="flood_protection-wstv-{$wst_column_position}-{$wst_id}"
1378 factory="staticwkms" target_out="{$out}"
1379 info="{$info} [km {$deffrom} - {$defto}]"/>
1380 </dc:call-macro>
1381 </dc:macro>
1382
1383 <!-- waterlevel differences imported from CSV-files for M-INFO -->
1384 <dc:macro name="basedata_6_delta_w">
1385 <dc:filter expr="$kind=6">
1386 <dc:if test="dc:has-result()">
1387 <delta_w>
1388 <delta_w_cm>
1389 <dc:filter expr="contains($wst_description, 'cm.csv')">
1390 <dc:group expr="dc:replace($wst_description, 'CSV/', '')">
1391 <relativepoint name="{dc:group-key()}">
1392 <dc:for-each>
1393 <column name="{$wst_column_name}"
1394 ids="delta_w-wstv-{$wst_column_position}-{$wst_id}"
1395 factory="staticwkms"
1396 target_out="{$out}"
1397 info="{$info} [km {$deffrom} - {$defto}]"/>
1398 </dc:for-each>
1399 </relativepoint>
1400 </dc:group>
1401 </dc:filter>
1402 </delta_w_cm>
1403 <delta_w_cma>
1404 <dc:filter expr="contains($wst_description, 'cm-a.csv')">
1405 <dc:group expr="dc:replace($wst_description, 'CSV/', '')">
1406 <relativepoint name="{dc:group-key()}">
1407 <dc:for-each>
1408 <column name="{$wst_column_name}"
1409 ids="delta_w_cma-wstv-{$wst_column_position}-{$wst_id}"
1410 factory="staticwkms" target_out="{$out}"
1411 info="{$info} [km {$deffrom} - {$defto}]"/>
1412 </dc:for-each>
1413 </relativepoint>
1414 </dc:group>
1415 </dc:filter>
1416 </delta_w_cma>
1417 </delta_w>
1418 </dc:if>
1419 </dc:filter>
1420 </dc:macro>
1421
1422 <!-- waterlevels imported from CSV-files for M-INFO -->
1423 <dc:macro name="basedata_7_macro">
1424 <dc:filter expr="$kind=7">
1425 <dc:if test="dc:has-result()">
1426 <wlevel>
1427 <dc:group expr="dc:replace($wst_description, 'CSV/', '')">
1228 <relativepoint name="{dc:group-key()}"> 1428 <relativepoint name="{dc:group-key()}">
1229 <dc:for-each> 1429 <dc:for-each>
1230 <column name="{$wst_column_name}" 1430 <dc:macro-body/>
1231 ids="heightmarks_points-wstv-{$wst_column_position}-{$wst_id}"
1232 factory="staticwkms" target_out="{$out}"
1233 info="{$info} [km {$deffrom} - {$defto}]"/>
1234 </dc:for-each> 1431 </dc:for-each>
1235 </relativepoint> 1432 </relativepoint>
1236 </dc:group> 1433 </dc:group>
1237 </heightmarks> 1434 </wlevel>
1238 </dc:if> 1435 </dc:if>
1239 </dc:filter> 1436 </dc:filter>
1240 </dc:macro> 1437 </dc:macro>
1241 1438
1439 <dc:macro name="basedata_7_waterlevels">
1440 <dc:call-macro name="basedata_7_macro">
1441 <column name="{$wst_column_name}"
1442 ids="additionals-wstv-{$wst_column_position}-{$wst_id}"
1443 factory="staticwqkms" target_out="{$out}"
1444 info="{$info} [km {$deffrom} - {$defto}]"/>
1445 </dc:call-macro>
1446 </dc:macro>
1447
1448 <dc:macro name="basedata_7_waterlevels_wq">
1449 <dc:call-macro name="basedata_7_macro">
1450 <column name="{$wst_column_name}"
1451 ids="additionals-wstv-{$wst_column_position}-{$wst_id}"
1452 factory="wqinterpol" target_out="{$out}"
1453 info="{$info} [km {$deffrom} - {$defto}]"/>
1454 </dc:call-macro>
1455 </dc:macro>
1456
1457
1458 <!-- prototypes -->
1242 1459
1243 <!-- discharge curve prototype --> 1460 <!-- discharge curve prototype -->
1244 <dc:macro name="discharge-curve-prototype"> 1461 <dc:macro name="discharge-curve-prototype">
1245 <computed_discharge_curve> 1462 <computed_discharge_curve>
1246 <dc:call-macro name="discharge_table_gauge"/> 1463 <dc:call-macro name="discharge_table_gauge"/>
1247 <dc:call-macro name="mainvalues"/> 1464 <dc:call-macro name="mainvalues"/>
1248 </computed_discharge_curve> 1465 </computed_discharge_curve>
1249 <dc:call-macro name="historical_discharge_curve"/> 1466 <dc:call-macro name="historical_discharge_curve"/>
1250 <dc:call-macro name="basedata_0_wq"/> 1467 <dc:call-macro name="basedata_0_wq"/>
1251 <dc:call-macro name="basedata_1_additionals_wq"/> 1468 <dc:call-macro name="basedata_1_additionals_wq"/>
1252 <dc:call-macro name="basedata_2_fixations_wqkms"/> 1469 <dc:call-macro name="basedata_2_fixations_wq"/>
1253 <dc:call-macro name="basedata_3_officials_wq"/> 1470 <dc:call-macro name="basedata_3_officials_wq"/>
1254 <dc:call-macro name="basedata_4_heightmarks-points"/> 1471 <dc:call-macro name="basedata_4_heightmarks-points_wq"/>
1255 <dc:call-macro name="basedata_5_flood-protections"/> 1472 <dc:call-macro name="basedata_5_flood-protections_wq"/>
1256 <minfo> 1473 <minfo>
1257 <dc:call-macro name="sqrelations"/> 1474 <dc:call-macro name="sqrelations"/>
1258 <!-- add MINFO-Fixation-Data here --> 1475 <dc:call-macro name="basedata_7_waterlevels_wq"/>
1259 <!-- basedata_6_...-->
1260 <!-- basedata_7_...-->
1261 </minfo> 1476 </minfo>
1262 </dc:macro> 1477 </dc:macro>
1263 1478
1264 <dc:macro name="longitudinal-section-prototype"> 1479 <dc:macro name="longitudinal-section-prototype">
1265 <dc:call-macro name="basedata_0"/> 1480 <dc:call-macro name="basedata_0"/>
1300 <dc:call-macro name="bedquality"/> 1515 <dc:call-macro name="bedquality"/>
1301 <dc:call-macro name="flow-velocity"/> 1516 <dc:call-macro name="flow-velocity"/>
1302 <dc:call-macro name="sediment-load"/> 1517 <dc:call-macro name="sediment-load"/>
1303 </dc:macro> 1518 </dc:macro>
1304 1519
1520
1521 <!-- porosities -->
1305 <dc:macro name="porosities"> 1522 <dc:macro name="porosities">
1306 <porosities> 1523 <porosities>
1307 <dc:context> 1524 <dc:context>
1308 <dc:statement> 1525 <dc:statement>
1309 SELECT DISTINCT 1526 SELECT DISTINCT
1365 </dc:if> 1582 </dc:if>
1366 </dc:context> 1583 </dc:context>
1367 </densities> 1584 </densities>
1368 </dc:macro> 1585 </dc:macro>
1369 1586
1587 <!-- sediment load -->
1370 <dc:macro name="load"> 1588 <dc:macro name="load">
1371 <year description="{$timespan}" 1589 <year description="{$timespan}"
1372 factory="sedimentload" 1590 factory="sedimentload"
1373 target_out="{$out}" 1591 target_out="{$out}"
1374 info="{$info}" 1592 info="{$info}"
1518 </dc:context> 1736 </dc:context>
1519 </sediment_load_ls> 1737 </sediment_load_ls>
1520 </sedimentloads> 1738 </sedimentloads>
1521 </dc:macro> 1739 </dc:macro>
1522 1740
1523 1741 <!-- annotations -->
1524 <dc:macro name="basedata_5_flood-protections">
1525 <dc:filter expr="$kind=5">
1526 <dc:if test="dc:has-result()">
1527 <flood_protections>
1528 <dc:group expr="dc:replace($wst_description, 'HW-Schutzanlagen/', '')">
1529 <flood_protection name="{dc:group-key()}">
1530 <dc:for-each>
1531 <column name="{$wst_column_name}"
1532 ids="flood_protection-wstv-{$wst_column_position}-{$wst_id}"
1533 factory="staticwkms" target_out="{$out}"
1534 info="{$info} [km {$deffrom} - {$defto}]"/>
1535 </dc:for-each>
1536 </flood_protection>
1537 </dc:group>
1538 </flood_protections>
1539 </dc:if>
1540 </dc:filter>
1541 </dc:macro>
1542
1543 <dc:macro name="annotations_per_type"> 1742 <dc:macro name="annotations_per_type">
1544 <annotations> 1743 <annotations>
1545 <dc:context> 1744 <dc:context>
1546 <all_annotations factory="annotations" ids="{$river_id}" target_out="{$out}" /> 1745 <all_annotations factory="annotations" ids="{$river_id}" target_out="{$out}" />
1547 <dc:statement> 1746 <dc:statement>
1572 factory="annotations" target_out="{$out}" 1771 factory="annotations" target_out="{$out}"
1573 ids="{$river_id}:{$anno_description}"/> 1772 ids="{$river_id}:{$anno_description}"/>
1574 </dc:for-each> 1773 </dc:for-each>
1575 </dc:context> 1774 </dc:context>
1576 </sources_sinks> 1775 </sources_sinks>
1577 </dc:macro>
1578
1579 <dc:macro name="basedata_2_fixations_relative_point">
1580 <dc:filter expr="$kind=2">
1581 <dc:if test="dc:has-result()">
1582 <fixations>
1583 <dc:group expr="dc:replace($wst_description, 'Fixierungen/', '')">
1584 <relativepoint name="{dc:group-key()}">
1585 <dc:for-each>
1586 <column name="{$wst_column_name}"
1587 ids="fixations-wstv-{$wst_column_position}-{$wst_id}"
1588 factory="staticwkms" target_out="{$out}"
1589 info="{$info} [km {$deffrom} - {$defto}]"/>
1590 </dc:for-each>
1591 </relativepoint>
1592 </dc:group>
1593 </fixations>
1594 </dc:if>
1595 </dc:filter>
1596 </dc:macro>
1597
1598 <dc:macro name="basedata_5_flood-protections_relative_points">
1599 <dc:filter expr="$kind=5">
1600 <dc:if test="dc:has-result()">
1601 <flood_protections>
1602 <dc:group expr="$wst_description">
1603 <relativepoint name="{dc:group-key()}">
1604 <dc:for-each>
1605 <column name="{$wst_column_name}"
1606 ids="flood_protection-wstv-{$wst_column_position}-{$wst_id}"
1607 factory="staticwkms" target_out="{$out}"
1608 info="{$info} [km {$deffrom} - {$defto}]"/>
1609 </dc:for-each>
1610 </relativepoint>
1611 </dc:group>
1612 </flood_protections>
1613 </dc:if>
1614 </dc:filter>
1615 </dc:macro>
1616
1617 <dc:macro name="basedata_1_additionals-relative_point">
1618 <dc:filter expr="$kind=1">
1619 <dc:if test="dc:has-result()">
1620 <additionals>
1621 <dc:group expr="$wst_description">
1622 <relativepoint name="{dc:group-key()}">
1623 <dc:for-each>
1624 <column name="{$wst_column_name}"
1625 ids="additionals-wstv-{$wst_column_position}-{$wst_id}"
1626 factory="staticwkms" target_out="{$out}"
1627 info="{$info} [km {$deffrom} - {$defto}]"/>
1628 </dc:for-each>
1629 </relativepoint>
1630 </dc:group>
1631 </additionals>
1632 </dc:if>
1633 </dc:filter>
1634 </dc:macro>
1635
1636
1637 <dc:macro name="basedata_7_waterlevels">
1638 <dc:filter expr="$kind=7">
1639 <dc:if test="dc:has-result()">
1640 <wlevel>
1641 <dc:group expr="dc:replace($wst_description, 'CSV/', '')">
1642 <relativepoint name="{dc:group-key()}">
1643 <dc:for-each>
1644 <column name="{$wst_column_name}"
1645 ids="additionals-wstv-{$wst_column_position}-{$wst_id}"
1646 factory="staticwqkms" target_out="{$out}"
1647 info="{$info} [km {$deffrom} - {$defto}]"/>
1648 </dc:for-each>
1649 </relativepoint>
1650 </dc:group>
1651 </wlevel>
1652 </dc:if>
1653 </dc:filter>
1654 </dc:macro>
1655
1656
1657 <dc:macro name="basedata_6_delta_w">
1658 <dc:filter expr="$kind=6">
1659 <dc:if test="dc:has-result()">
1660 <delta_w>
1661 <delta_w_cm>
1662 <dc:filter expr="contains($wst_description, 'cm.csv')">
1663 <dc:group expr="dc:replace($wst_description, 'CSV/', '')">
1664 <relativepoint name="{dc:group-key()}">
1665 <dc:for-each>
1666 <column name="{$wst_column_name}"
1667 ids="delta_w-wstv-{$wst_column_position}-{$wst_id}"
1668 factory="staticwkms"
1669 target_out="{$out}"
1670 info="{$info} [km {$deffrom} - {$defto}]"/>
1671 </dc:for-each>
1672 </relativepoint>
1673 </dc:group>
1674 </dc:filter>
1675 </delta_w_cm>
1676 <delta_w_cma>
1677 <dc:filter expr="contains($wst_description, 'cm-a.csv')">
1678 <dc:group expr="dc:replace($wst_description, 'CSV/', '')">
1679 <relativepoint name="{dc:group-key()}">
1680 <dc:for-each>
1681 <column name="{$wst_column_name}"
1682 ids="delta_w_cma-wstv-{$wst_column_position}-{$wst_id}"
1683 factory="staticwkms" target_out="{$out}"
1684 info="{$info} [km {$deffrom} - {$defto}]"/>
1685 </dc:for-each>
1686 </relativepoint>
1687 </dc:group>
1688 </dc:filter>
1689 </delta_w_cma>
1690 </delta_w>
1691 </dc:if>
1692 </dc:filter>
1693 </dc:macro> 1776 </dc:macro>
1694 1777
1695 <dc:macro name="discharge_table_gauge"> 1778 <dc:macro name="discharge_table_gauge">
1696 <dc:context> 1779 <dc:context>
1697 <dc:statement> 1780 <dc:statement>
2091 </dc:group> 2174 </dc:group>
2092 </dc:filter> 2175 </dc:filter>
2093 </sq_relations> 2176 </sq_relations>
2094 </dc:if> 2177 </dc:if>
2095 </dc:context> 2178 </dc:context>
2096 </dc:macro>
2097
2098 <dc:macro name="basedata_0_macro">
2099 <dc:filter expr="$kind = 0">
2100 <dc:if test="dc:has-result()">
2101 <basedata>
2102 <dc:group expr="$wst_description">
2103 <basedata name="{dc:group-key()}">
2104 <dc:for-each>
2105 <dc:macro-body/>
2106 </dc:for-each>
2107 </basedata>
2108 </dc:group>
2109 </basedata>
2110 </dc:if>
2111 </dc:filter>
2112 </dc:macro>
2113
2114 <dc:macro name="basedata_0">
2115 <dc:call-macro name="basedata_0_macro">
2116 <column name="{$wst_column_name}"
2117 ids="base_data-wstv-{$wst_column_position}-{$wst_id}"
2118 factory="staticwqkms" target_out="{$out}"
2119 info="{$info} [km {$deffrom} - {$defto}]"/>
2120 </dc:call-macro>
2121 </dc:macro>
2122
2123 <dc:macro name="basedata_0_wq">
2124 <dc:call-macro name="basedata_0_macro">
2125 <column name="{$wst_column_name}"
2126 ids="base_data-wstv-{$wst_column_position}-{$wst_id}"
2127 factory="wqinterpol" target_out="{$out}"
2128 info="{$info} [km {$deffrom} - {$defto}]"/>
2129 </dc:call-macro>
2130 </dc:macro>
2131
2132 <dc:macro name="basedata_1_additionals_macro">
2133 <dc:filter expr="$kind=1">
2134 <dc:if test="dc:has-result()">
2135 <additionals>
2136 <dc:group expr="dc:replace($wst_description, 'Zus.Längsschnitte/', '')">
2137 <additional name="{dc:group-key()}">
2138 <dc:for-each>
2139 <dc:macro-body/>
2140 </dc:for-each>
2141 </additional>
2142 </dc:group>
2143 </additionals>
2144 </dc:if>
2145 </dc:filter>
2146 </dc:macro>
2147
2148 <dc:macro name="basedata_1_additionals">
2149 <dc:call-macro name="basedata_1_additionals_macro">
2150 <column name="{$wst_column_name}"
2151 ids="additionals-wstv-{$wst_column_position}-{$wst_id}"
2152 factory="staticwqkms" target_out="{$out}"
2153 info="{$info} [km {$deffrom} - {$defto}]"/>
2154 </dc:call-macro>
2155 </dc:macro>
2156
2157 <dc:macro name="basedata_1_additionals_marks">
2158 <dc:call-macro name="basedata_1_additionals_macro">
2159 <column name="{$wst_column_name}"
2160 ids="additionalsmarks-wstv-{$wst_column_position}-{$wst_id}"
2161 factory="staticwkms" target_out="{$out}"
2162 info="{$info} [km {$deffrom} - {$defto}]"/>
2163 </dc:call-macro>
2164 </dc:macro>
2165
2166 <dc:macro name="basedata_1_additionals_wq">
2167 <dc:call-macro name="basedata_1_additionals_macro">
2168 <column name="{$wst_column_name}"
2169 ids="base_data-wstv-{$wst_column_position}-{$wst_id}"
2170 factory="wqinterpol" target_out="{$out}"
2171 info="{$info} [km {$deffrom} - {$defto}]"/>
2172 </dc:call-macro>
2173 </dc:macro> 2179 </dc:macro>
2174 2180
2175 <!-- Floodmap part --> 2181 <!-- Floodmap part -->
2176 <dc:macro name="flood-map-complete"> 2182 <dc:macro name="flood-map-complete">
2177 <dc:call-macro name="flood-map-buildings"/> 2183 <dc:call-macro name="flood-map-buildings"/>

http://dive4elements.wald.intevation.org