[Dive4elements-commits] [PATCH 2 of 2] Call official lines macro in system context and fixed the macro

Wald Commits scm-commit at wald.intevation.org
Wed Jun 26 22:31:29 CEST 2013


# HG changeset patch
# User Raimund Renkert <rrenkert at intevation.de>
# Date 1372278522 -7200
# Node ID 0624d3a0a63ec5b88982e7fdc9e51c73d14bb1ab
# Parent  201d90f56d9843dbeba83357b38092b1e51f019d
Call official lines macro in system context and fixed the macro.

diff -r 201d90f56d98 -r 0624d3a0a63e artifacts/doc/conf/meta-data.xml
--- a/artifacts/doc/conf/meta-data.xml	Wed Jun 26 22:23:57 2013 +0200
+++ b/artifacts/doc/conf/meta-data.xml	Wed Jun 26 22:28:42 2013 +0200
@@ -50,6 +50,7 @@
                   </dc:when>
                   <dc:when test="$out = 'discharge_longitudinal_section'">
                     <dc:call-macro name="annotations"/>
+                    <dc:call-macro name="officiallines_user"/>
                   </dc:when>
                   <dc:when test="$out = 'historical_discharge_wq'">
                     <dc:call-macro name="mainvalues"/>
@@ -78,6 +79,7 @@
                   </dc:when>
                   <dc:when test="$out = 'longitudinal_section'">
                     <dc:call-macro name="annotations"/>
+                    <dc:call-macro name="officiallines_user"/>
                   </dc:when>
                   <dc:when test="$out = 'fix_longitudinal_section_curve'">
                     <dc:call-macro name="annotations"/>
@@ -2322,19 +2324,15 @@
         <dc:container-context container="official-lines">
           <dc:properties>
             <dc:property name="name" alias="olname"/>
-            <dc:property name="wst" alias="wstid"/>
+            <dc:property name="wstId" alias="wstid"/>
             <dc:property name="columnPos" alias="wstcolpos"/>
           </dc:properties>
           <dc:if test="dc:has-result()">
             <officiallines>
               <dc:for-each>
-                <dc:element name="${olname}">
-                  <dc:attribute name="name" value="${olname}"/>
-                  <dc:attribute name="ids" value="additionals-wstv-${wstcolpos}-${wstid}"/>
-                  <dc:attribute name="factory" value="staticwkms"/>
-                  <dc:attribute name="target_out" value="${out}"/>
-                  <dc:attribute name="out" value="${out}"/>
-                </dc:element>
+                <column name="{$olname}"
+                      ids="additionals-wstv-{$wstcolpos}-{$wstid}"
+                      factory="staticwqkms" target_out="{$out}"/>
               </dc:for-each>
             </officiallines>
           </dc:if>


More information about the Dive4elements-commits mailing list