comparison flys-artifacts/doc/conf/meta-data.xml @ 3806:881fcd01e056

merged flys-artifacts/pre2.6-2011-11-04
author Thomas Arendsen Hein <thomas@intevation.de>
date Fri, 28 Sep 2012 12:14:50 +0200
parents 48e9c3a44420
children f68d6dcaea94
comparison
equal deleted inserted replaced
3802:e831dc29e572 3806:881fcd01e056
1 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2 <dc:template xmlns:dc="http://www.intevation.org/2011/Datacage">
3 <datacage>
4 <dc:macro name="load-system">
5 <dc:context connection="system">
6 <dc:statement>
7 SELECT id AS river_id, name as river_name FROM rivers
8 WHERE lower(name) LIKE lower(${river})
9 </dc:statement>
10 <dc:elements>
11 <dc:comment>
12 Base-data macros (mostly data imported from wst-files)
13 </dc:comment>
14 <dc:macro name="basedata_0">
15 <dc:comment comment=" BASEDATA ---------------------------"/>
16 <basedata>
17 <dc:context>
18 <dc:statement>
19 SELECT id AS prot_id,
20 description AS prot_description
21 FROM wsts WHERE kind = 0 AND river_id = ${river_id}
22 </dc:statement>
23 <dc:elements>
24 <basedata>
25 <dc:attribute name="name" value="${prot_description}"/>
26 <dc:context>
27 <dc:statement>
28 SELECT id AS prot_column_id,
29 name AS prot_column_name,
30 position AS prot_rel_pos
31 FROM wst_columns WHERE wst_id = ${prot_id}
32 ORDER by position
33 </dc:statement>
34 <dc:elements>
35 <column>
36 <dc:attribute name="name" value="${prot_column_name}"/>
37 <dc:attribute name="ids" value="base_data-wstv-${prot_rel_pos}-${prot_id}"/>
38 <dc:attribute name="factory" value="staticwkms"/>
39 </column>
40 </dc:elements>
41 </dc:context>
42 </basedata>
43 </dc:elements>
44 </dc:context>
45 </basedata>
46 </dc:macro>
47 <dc:macro name="basedata_1_additionals">
48 <dc:comment comment=".ZUS -------------------------------"/>
49 <addtionals>
50 <dc:context>
51 <dc:statement>
52 SELECT id AS prot_id,
53 description AS prot_description
54 FROM wsts WHERE kind = 1 AND river_id = ${river_id}
55 </dc:statement>
56 <dc:elements>
57 <additional>
58 <dc:attribute name="name" value="${prot_description}"/>
59 <dc:context>
60 <dc:statement>
61 SELECT id AS prot_column_id,
62 name AS prot_column_name,
63 position AS prot_rel_pos
64 FROM wst_columns WHERE wst_id = ${prot_id}
65 ORDER by position
66 </dc:statement>
67 <dc:elements>
68 <column>
69 <dc:attribute name="name" value="${prot_column_name}"/>
70 <dc:attribute name="ids" value="additionals-wstv-${prot_rel_pos}-${prot_id}"/>
71 <dc:attribute name="factory" value="staticwkms"/>
72 </column>
73 </dc:elements>
74 </dc:context>
75 </additional>
76 </dc:elements>
77 </dc:context>
78 </addtionals>
79 </dc:macro>
80 <river>
81 <dc:attribute name="name" value="${river_name}"/>
82 <dc:if test="dc:contains($artifact-outs, 'w_differences')">
83 <annotation>
84 <dc:attribute name="factory" value="annotations"/>
85 <dc:attribute name="ids" value="${river_id}"/>
86 </annotation>
87 </dc:if>
88 <dc:if test="dc:contains($artifact-outs, 'longitudinal_section') or (dc:contains($artifact-outs, 'w_differences'))">
89 <dc:choose>
90 <dc:when test="dc:contains($parameters, 'recommended')">
91 </dc:when>
92 <dc:otherwise>
93 <dc:call-macro name="basedata_0"/>
94 <dc:call-macro name="basedata_1_additionals"/>
95 <dc:comment comment=" FIXATIONS ---------------------------"/>
96 <fixations>
97 <dc:context>
98 <dc:statement>
99 SELECT id AS prot_id,
100 description AS prot_description
101 FROM wsts WHERE kind = 2 AND river_id = ${river_id}
102 </dc:statement>
103 <dc:elements>
104 <fixation>
105 <dc:attribute name="name" value="${prot_description}"/>
106 <dc:context>
107 <dc:statement>
108 SELECT id AS prot_column_id,
109 name AS prot_column_name,
110 position AS prot_rel_pos
111 FROM wst_columns WHERE wst_id = ${prot_id}
112 ORDER by position
113 </dc:statement>
114 <dc:elements>
115 <column>
116 <dc:attribute name="name" value="${prot_column_name}"/>
117 <dc:attribute name="ids" value="fixations-wstv-${prot_rel_pos}-${prot_id}"/>
118 <dc:attribute name="factory" value="staticwkms"/>
119 </column>
120 </dc:elements>
121 </dc:context>
122 </fixation>
123 </dc:elements>
124 </dc:context>
125 </fixations>
126 <dc:comment comment=" HOEHENMARKEN ---------------------------"/>
127 <heightmarks>
128 <dc:context>
129 <dc:statement>
130 SELECT id AS prot_id,
131 description AS prot_description
132 FROM wsts WHERE kind = 4 AND river_id = ${river_id}
133 </dc:statement>
134 <dc:elements>
135 <heightmark>
136 <dc:attribute name="name" value="${prot_description}"/>
137 <dc:context>
138 <dc:statement>
139 SELECT id AS prot_column_id,
140 name AS prot_column_name,
141 position AS prot_rel_pos
142 FROM wst_columns WHERE wst_id = ${prot_id}
143 ORDER by position
144 </dc:statement>
145 <dc:elements>
146 <column>
147 <dc:attribute name="name" value="${prot_column_name}"/>
148 <dc:attribute name="ids" value="heightmarks_points-wstv-${prot_rel_pos}-${prot_id}"/>
149 <dc:attribute name="factory" value="staticwkms"/>
150 </column>
151 </dc:elements>
152 </dc:context>
153 </heightmark>
154 </dc:elements>
155 </dc:context>
156 </heightmarks>
157 </dc:otherwise>
158 </dc:choose>
159 </dc:if>
160
161 <dc:if test="dc:contains($artifact-outs, 'waterlevels')">
162 <flood-protections>
163 <dc:attribute name="id" value="flood-protections-${river_id}"/>
164 <dc:context>
165 <dc:statement>
166 SELECT id AS prot_id,
167 description AS prot_description
168 FROM wsts WHERE kind = 5 AND river_id = ${river_id}
169 </dc:statement>
170 <dc:elements>
171 <flood-protection>
172 <dc:attribute name="name" value="${prot_description}"/>
173 <dc:attribute name="db-id" value="${prot_id}"/>
174 <dc:attribute name="factory" value="staticwkms"/>
175 <columns>
176 <dc:context>
177 <dc:statement>
178 SELECT id AS prot_column_id,
179 name AS prot_column_name,
180 position AS prot_rel_pos
181 FROM wst_columns WHERE wst_id = ${prot_id}
182 ORDER by position
183 </dc:statement>
184 <dc:elements>
185 <column>
186 <dc:attribute name="name" value="${prot_column_name}"/>
187 <dc:attribute name="ids" value="flood_protection-wstv-${prot_rel_pos}-${prot_id}"/>
188 <dc:attribute name="factory" value="staticwkms"/>
189 </column>
190 </dc:elements>
191 </dc:context>
192 </columns>
193 </flood-protection>
194 </dc:elements>
195 </dc:context>
196 </flood-protections>
197 <extra-longitudinal-sections>
198 <dc:attribute name="id" value="extra-longitudinal-sections-${river_id}"/>
199 <dc:context>
200 <dc:statement>
201 SELECT id AS els_id,
202 description AS els_description
203 FROM wsts WHERE kind = 1 AND river_id = ${river_id}
204 </dc:statement>
205 <dc:elements>
206 <extra-longitudinal-section>
207 <dc:attribute name="name" value="${els_description}"/>
208 <dc:attribute name="db-id" value="${els_id}"/>
209 <columns>
210 <dc:context>
211 <dc:statement>
212 SELECT id AS els_column_id,
213 name AS els_column_name,
214 position AS els_rel_pos
215 FROM wst_columns WHERE wst_id = ${els_id}
216 ORDER by position
217 </dc:statement>
218 <dc:elements>
219 <column>
220 <dc:attribute name="name" value="${els_column_name}"/>
221 <dc:attribute name="ids" value="flood_protection-wstv-${els_rel_pos}-${els_id}"/>
222 <dc:attribute name="factory" value="staticwkms"/>
223 </column>
224 </dc:elements>
225 </dc:context>
226 </columns>
227 </extra-longitudinal-section>
228 </dc:elements>
229 </dc:context>
230 </extra-longitudinal-sections>
231 </dc:if>
232 <dc:if test="dc:contains($artifact-outs, 'computed_discharge_curve') and not (dc:contains($parameters, 'recommended'))">
233 <discharge-table-nn>
234 <discharge-table-gauge>
235 <dc:context>
236 <dc:statement>
237 SELECT id AS gauge_id,
238 name AS gauge_name
239 FROM gauges WHERE river_id = ${river_id}
240 </dc:statement>
241 <dc:elements>
242 <gauge>
243 <dc:attribute name="name" value="${gauge_name}"/>
244 <dc:attribute name="db-id" value="${gauge_id}"/>
245 <dc:context>
246 <dc:statement>
247 SELECT description AS gauge_desc,
248 d.id AS discharge_id,
249 ti.start_time AS g_start,
250 ti.stop_time AS g_stop
251 FROM discharge_tables d JOIN time_intervals ti
252 ON d.time_interval_id = ti.id
253 WHERE d.gauge_id = ${gauge_id} AND d.kind = 1
254 </dc:statement>
255 <dc:elements>
256 <historical>
257 <dc:attribute name="name" value="${gauge_desc}"/>
258 <dc:attribute name="from" value="${g_start}"/>
259 <dc:attribute name="to" value="${g_stop}"/>
260 <dc:attribute name="db-id" value="${discharge_id}"/></historical>
261 </dc:elements>
262 </dc:context>
263 </gauge>
264 </dc:elements>
265 </dc:context>
266 </discharge-table-gauge>
267 <fixations>
268 <dc:attribute name="id" value="fixations-${river_id}"/>
269 <dc:context>
270 <dc:statement>
271 SELECT id AS fix_id,
272 description AS fix_description
273 FROM wsts WHERE kind = 2 AND river_id = ${river_id}
274 </dc:statement>
275 <dc:elements>
276 <fixation>
277 <dc:attribute name="name" value="${fix_description}"/>
278 <dc:attribute name="db-id" value="${fix_id}"/>
279 <columns>
280 <dc:context>
281 <dc:statement>
282 SELECT id AS fix_column_id,
283 name AS fix_column_name
284 FROM wst_columns WHERE wst_id = ${fix_id}
285 ORDER by position
286 </dc:statement>
287 <dc:elements>
288 <column>
289 <dc:attribute name="name" value="${fix_column_name}"/>
290 <dc:attribute name="db-id" value="${fix_column_id}"/>
291 </column>
292 </dc:elements>
293 </dc:context>
294 </columns>
295 </fixation>
296 </dc:elements>
297 </dc:context>
298 </fixations>
299 <flood-protections>
300 <dc:attribute name="id" value="flood-protections-${river_id}"/>
301 <dc:context>
302 <dc:statement>
303 SELECT id AS prot_id,
304 description AS prot_description
305 FROM wsts WHERE kind = 5 AND river_id = ${river_id}
306 </dc:statement>
307 <dc:elements>
308 <flood-protection>
309 <dc:attribute name="name" value="${prot_description}"/>
310 <dc:attribute name="db-id" value="${prot_id}"/>
311 <columns>
312 <dc:context>
313 <dc:statement>
314 SELECT id AS prot_column_id,
315 name AS prot_column_name
316 FROM wst_columns WHERE wst_id = ${prot_id}
317 ORDER by position
318 </dc:statement>
319 <dc:elements>
320 <column>
321 <dc:attribute name="name" value="${prot_column_name}"/>
322 <dc:attribute name="db-id" value="${prot_column_id}"/>
323 <dc:attribute name="factory" value="staticwkms"/>
324 </column>
325 </dc:elements>
326 </dc:context>
327 </columns>
328 </flood-protection>
329 </dc:elements>
330 </dc:context>
331 </flood-protections>
332 <flood-water-marks>
333 <dc:attribute name="id" value="flood-water-marks-${river_id}"/>
334 <dc:context>
335 <dc:statement>
336 SELECT id AS fw_id,
337 description AS fw_description
338 FROM wsts WHERE kind = 4 AND river_id = ${river_id}
339 </dc:statement>
340 <dc:elements>
341 <flood-water-mark>
342 <dc:attribute name="name" value="${fw_description}"/>
343 <dc:attribute name="db-id" value="${fw_id}"/>
344 <columns>
345 <dc:context>
346 <dc:statement>
347 SELECT id AS fw_column_id,
348 name AS fw_column_name
349 FROM wst_columns WHERE wst_id = ${fw_id}
350 ORDER by position
351 </dc:statement>
352 <dc:elements>
353 <column>
354 <dc:attribute name="name" value="${fw_column_name}"/>
355 <dc:attribute name="db-id" value="${fw_column_id}"/></column>
356 </dc:elements>
357 </dc:context>
358 </columns>
359 </flood-water-mark>
360 </dc:elements>
361 </dc:context>
362 </flood-water-marks>
363 <water-levels>
364 <dc:attribute name="id" value="water-levels-${river_id}"/>
365 <dc:context>
366 <dc:statement>
367 SELECT id AS wl_id,
368 description AS wl_description
369 FROM wsts WHERE kind = 0 AND river_id = ${river_id}
370 </dc:statement>
371 <dc:elements>
372 <water-level>
373 <dc:attribute name="name" value="${wl_description}"/>
374 <dc:attribute name="db-id" value="${wl_id}"/>
375 <columns>
376 <dc:context>
377 <dc:statement>
378 SELECT id AS wl_column_id,
379 name AS wl_column_name
380 FROM wst_columns WHERE wst_id = ${wl_id}
381 ORDER by position
382 </dc:statement>
383 <dc:elements>
384 <column>
385 <dc:attribute name="name" value="${wl_column_name}"/>
386 <dc:attribute name="db-id" value="${wl_column_id}"/>
387 </column>
388 </dc:elements>
389 </dc:context>
390 </columns>
391 </water-level>
392 </dc:elements>
393 </dc:context>
394 </water-levels>
395 <extra-longitudinal-sections>
396 <dc:attribute name="id" value="extra-longitudinal-sections-${river_id}"/>
397 <dc:context>
398 <dc:statement>
399 SELECT id AS els_id,
400 description AS els_description
401 FROM wsts WHERE kind = 1 AND river_id = ${river_id}
402 </dc:statement>
403 <dc:elements>
404 <extra-longitudinal-section>
405 <dc:attribute name="name" value="${els_description}"/>
406 <dc:attribute name="db-id" value="${els_id}"/>
407 <columns>
408 <dc:context>
409 <dc:statement>
410 SELECT id AS els_column_id,
411 name AS els_column_name
412 FROM wst_columns WHERE wst_id = ${els_id}
413 ORDER by position
414 </dc:statement>
415 <dc:elements>
416 <column>
417 <dc:attribute name="name" value="${els_column_name}"/>
418 <dc:attribute name="db-id" value="${els_column_id}"/>
419 </column>
420 </dc:elements>
421 </dc:context>
422 </columns>
423 </extra-longitudinal-section>
424 </dc:elements>
425 </dc:context>
426 </extra-longitudinal-sections>
427 </discharge-table-nn>
428 </dc:if>
429 <dc:if test="dc:contains($artifact-outs, 'computed_discharge_curve')">
430 <computed-discharge-curve>
431 <!--mainvalue>
432 <dc:attribute name="factory" value="mainvalue"/>
433 <dc:attribute name="db-ids" value="${river_id}"/>
434 </mainvalue-->
435 </computed-discharge-curve>
436 </dc:if>
437 <dc:if test="dc:contains($artifact-outs, 'longitudinal_section')">
438 <longitudinal-section>
439 <dc:call-macro name="longitudinal_section-recommended"/>
440 </longitudinal-section>
441 <dc:macro name="longitudinal_section-recommended">
442 <annotation>
443 <dc:attribute name="factory" value="annotations"/>
444 <dc:attribute name="ids" value="${river_id}"/>
445 </annotation>
446 </dc:macro>
447 </dc:if>
448 <dc:if test="dc:contains($artifact-outs, 'floodmap')">
449 <floodmap>
450 <dc:choose>
451 <dc:when test="dc:contains($parameters, 'recommended')">
452 <dc:call-macro name="flood-map-recommended"/>
453 </dc:when>
454 <dc:when test="dc:contains($parameters, 'dem')">
455 <dc:call-macro name="flood-map-dem"/>
456 </dc:when>
457 <dc:otherwise>
458 <dc:call-macro name="flood-map-complete"/>
459 </dc:otherwise>
460 </dc:choose>
461 </floodmap>
462 <dc:macro name="flood-map-recommended">
463 <dc:comment>
464 FIXME: Following two macros look identical to me.
465 </dc:comment>
466 <kilometrage>
467 <riveraxis>
468 <dc:attribute name="factory" value="riveraxis"/>
469 <dc:attribute name="ids" value="${river_id}"/>
470 </riveraxis>
471 </kilometrage>
472 <rastermap>
473 <background>
474 <dc:attribute name="factory" value="wmsbackground"/>
475 <dc:attribute name="ids" value="${river_id}"/>
476 </background>
477 </rastermap>
478 </dc:macro>
479 <dc:macro name="flood-map-dem">
480 <dems>
481 <dc:context>
482 <dc:statement>
483 SELECT id AS dem_id,
484 lower AS dem_lower,
485 upper AS dem_upper
486 FROM dem WHERE river_id = ${river_id}
487 </dc:statement>
488 <dc:elements>
489 <dem>
490 <dc:attribute name="factory" value="demfactory"/>
491 <dc:attribute name="ids" value="${dem_id}"/>
492 <dc:attribute name="description" value="${dem_lower}-${dem_upper}"/>
493 </dem>
494 </dc:elements>
495 </dc:context>
496 </dems>
497 </dc:macro>
498 <dc:macro name="flood-map-km">
499 <dc:context>
500 <dc:statement>
501 SELECT count(*) as km_exists
502 FROM river_axes_km WHERE river_id = ${river_id}
503 </dc:statement>
504 <dc:elements>
505 <dc:if test="$km_exists>0">
506 <km>
507 <dc:attribute name="factory" value="wmskmfactory"/>
508 <dc:attribute name="ids" value="${river_id}"/>
509 </km>
510 </dc:if>
511 </dc:elements>
512 </dc:context>
513 </dc:macro>
514 <dc:macro name="flood-map-complete">
515 <kilometrage>
516 <riveraxis>
517 <dc:attribute name="factory" value="riveraxis"/>
518 <dc:attribute name="ids" value="${river_id}"/>
519 </riveraxis>
520 <dc:call-macro name="flood-map-km"/>
521 </kilometrage>
522 <rastermap>
523 <background>
524 <dc:attribute name="factory" value="wmsbackground"/>
525 <dc:attribute name="ids" value="${river_id}"/>
526 </background>
527 </rastermap>
528 <dc:call-macro name="flood-map-dem"/>
529 </dc:macro>
530 </dc:if>
531 </river>
532 </dc:elements>
533 </dc:context>
534 </dc:macro>
535
536 <dc:choose>
537 <dc:comment>
538 User specific part
539 ------------------
540 </dc:comment>
541 <dc:when test="dc:contains($parameters, 'user-id')">
542 <dc:comment>
543 Show diffferences if longitudinal sections are there.
544 -----------------------------------------------------
545 </dc:comment>
546 <dc:choose>
547 <dc:when test="dc:contains($artifact-outs, 'longitudinal_section')">
548 <dc:context>
549 <dc:statement>
550 SELECT a.gid as aid, f.id AS fid, f.name AS facet_name, f.num AS facet_num, f.description as facet_description
551 FROM outs as o, facets as f, artifacts as a
552 WHERE f.name = 'w_differences' and f.out_id = o.id and o.artifact_id = a.id;
553 </dc:statement>
554 <dc:elements>
555 <differences>
556 <dc:element name="${facet_name}">
557 <dc:attribute name="description" value="${facet_description}"/>
558 <dc:attribute name="factory" value="winfo"/>
559 <dc:attribute name="artifact-id" value="${aid}"/>
560 <dc:attribute name="ids" value="${aid}"/>
561 <dc:attribute name="out" value="w_differences"/>
562 </dc:element>
563 </differences>
564 </dc:elements>
565 </dc:context>
566 </dc:when>
567 </dc:choose>
568 <old_calculations>
569 <dc:context connection="user">
570 <dc:statement>SELECT u.id AS user_id, c.id AS collection_id, c.name as collection_name
571 FROM collections c JOIN users u ON c.user_id = u.id
572 WHERE u.gid = CAST(${user-id} AS uuid)
573 ORDER BY c.creation DESC
574 </dc:statement>
575 <dc:elements>
576 <dc:comment><!--
577 <hello_collection><dc:attribute name="description" value="Collection: id=${collection_id} name='${collection_name}'"/></hello_collection>
578 --></dc:comment>
579 <dc:context>
580 <dc:statement>SELECT m.id AS a_id, m.state AS a_state, m.gid AS a_gid, m.creation AS a_creation
581 FROM master_artifacts m
582 WHERE m.collection_id = ${collection_id} AND m.gid &lt;&gt; CAST(${artifact-id} AS uuid)
583 AND EXISTS (
584 SELECT id FROM artifact_data ad WHERE ad.artifact_id = m.id AND k = 'river' AND v = ${river})
585 </dc:statement>
586 <dc:elements>
587 <dc:comment><!--
588 <hello_artifact><dc:attribute name="description" value="Artifact UUID: ${a_gid}"/></hello_artifact>
589 --></dc:comment>
590 <dc:choose>
591
592
593 <dc:comment>
594 Import longitudinal sections only if the ${artifact-out} is defined as 'longitudinal_section'
595 ---------------------------------------------------------------------------------------------
596 </dc:comment>
597 <dc:when test="dc:contains($artifact-outs, 'longitudinal_section')">
598 <dc:context>
599 <dc:statement>
600 SELECT id AS out_id
601 FROM outs
602 WHERE artifact_id = ${a_id} AND name = 'longitudinal_section'
603 </dc:statement>
604 <dc:elements>
605 <dc:context>
606 <dc:statement>
607 SELECT name AS facet_name, num as facet_num, description AS facet_description
608 FROM facets
609 WHERE out_id = ${out_id}
610 ORDER BY num ASC, name DESC
611 </dc:statement>
612 <longitudinal_section_columns>
613 <dc:attribute name="description" value="${river} ${a_creation}"/>
614 <dc:elements>
615 <dc:element name="${facet_name}">
616 <dc:attribute name="description" value="${facet_description}"/>
617 <dc:attribute name="ids" value="${facet_num}"/>
618 <dc:attribute name="factory" value="winfo"/>
619 <dc:attribute name="artifact-id" value="${a_gid}"/>
620 <dc:attribute name="out" value="longitudinal_section"/>
621 </dc:element>
622 </dc:elements>
623 </longitudinal_section_columns>
624 </dc:context>
625 </dc:elements>
626 </dc:context>
627 </dc:when>
628 <dc:comment>
629 Import of longitudinal sections finished
630 </dc:comment>
631
632
633 <dc:comment>
634 Import Waterlevels only if the ${artifact-out} is defined as 'waterlevels'
635 --------------------------------------------------------------------------
636 </dc:comment>
637 <dc:when test="dc:contains($artifact-outs, 'waterlevels')">
638 <dc:context>
639 <dc:statement>
640 SELECT id AS out_id
641 FROM outs
642 WHERE artifact_id = ${a_id} AND name = 'longitudinal_section'
643 </dc:statement>
644 <dc:elements>
645 <dc:context>
646 <dc:statement>
647 SELECT name AS facet_name, num as facet_num, description AS facet_description
648 FROM facets
649 WHERE out_id = ${out_id} and name = 'longitudinal_section.w'
650 ORDER BY num ASC, name DESC
651 </dc:statement>
652 <waterlevels>
653 <dc:attribute name="description" value="${river} ${a_creation} ${collection_name}"/>
654 <dc:elements>
655 <dc:element name="${facet_name}">
656 <dc:attribute name="description" value="${facet_description}"/>
657 <dc:attribute name="ids" value="${facet_num}"/>
658 <dc:attribute name="factory" value="winfo"/>
659 <dc:attribute name="artifact-id" value="${a_gid}"/>
660 <dc:attribute name="out" value="longitudinal_section"/>
661 </dc:element>
662 </dc:elements>
663 </waterlevels>
664 </dc:context>
665 </dc:elements>
666 </dc:context>
667 </dc:when>
668 <dc:comment>
669 Import of waterlevels finished
670 </dc:comment>
671
672 </dc:choose>
673 </dc:elements>
674 </dc:context>
675 </dc:elements>
676 </dc:context>
677 </old_calculations>
678
679
680 <dc:comment>
681 Include System specific part when 'load-system' is in parameters.
682 -----------------------------------------------------------------
683 </dc:comment>
684 <dc:choose>
685 <dc:when test="dc:contains($parameters,'load-system')">
686 <dc:call-macro name="load-system"/>
687 </dc:when>
688 </dc:choose>
689 </dc:when>
690
691
692 <dc:comment>
693 Include System specific part only if no user ID is given.
694 ---------------------------------------------------------
695 </dc:comment>
696 <dc:otherwise>
697 <dc:call-macro name="load-system"/>
698 </dc:otherwise>
699 </dc:choose>
700 </datacage>
701 </dc:template>

http://dive4elements.wald.intevation.org