[Dive4elements-commits] [PATCH] meta-data.xml: dc:has-result()-guard additionals and basedata

Wald Commits scm-commit at wald.intevation.org
Thu May 23 11:50:24 CEST 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1369303141 -7200
# Node ID f0417a8e4c398367a9648eaeac58b3142c5bdf03
# Parent  8320eb8ed8c8447675e9b42c8b3e52e115a490b8
meta-data.xml: dc:has-result()-guard additionals and basedata.

diff -r 8320eb8ed8c8 -r f0417a8e4c39 artifacts/doc/conf/meta-data.xml
--- a/artifacts/doc/conf/meta-data.xml	Thu May 23 11:23:54 2013 +0200
+++ b/artifacts/doc/conf/meta-data.xml	Thu May 23 11:59:01 2013 +0200
@@ -1604,17 +1604,19 @@
     </dc:macro>
 
     <dc:macro name="basedata_0_macro">
-      <basedata>
-        <dc:filter expr="$kind = 0">
-          <dc:group expr="$wst_description">
-            <basedata name="{dc:group-key()}">
-              <dc:for-each>
-                <dc:macro-body/>
-              </dc:for-each>
-            </basedata>
-          </dc:group>
-        </dc:filter>
-      </basedata>
+      <dc:filter expr="$kind = 0">
+        <dc:if test="dc:has-result()">
+          <basedata>
+            <dc:group expr="$wst_description">
+              <basedata name="{dc:group-key()}">
+                <dc:for-each>
+                  <dc:macro-body/>
+                </dc:for-each>
+              </basedata>
+            </dc:group>
+          </basedata>
+        </dc:if>
+      </dc:filter>
     </dc:macro>
 
     <dc:macro name="basedata_0">
@@ -1636,15 +1638,17 @@
     </dc:macro>
 
     <dc:macro name="basedata_1_additionals_macro">
-      <additionals>
-        <dc:filter expr="$kind=1">
-          <dc:group expr="dc:replace($wst_description, 'Zus.Längsschnitte/', '')">
-            <additional name="{dc:group-key()}">
-              <dc:macro-body/>
-            </additional>
-          </dc:group>
-        </dc:filter>
-      </additionals>
+      <dc:filter expr="$kind=1">
+        <dc:if test="dc:has-result()">
+          <additionals>
+            <dc:group expr="dc:replace($wst_description, 'Zus.Längsschnitte/', '')">
+              <additional name="{dc:group-key()}">
+                <dc:macro-body/>
+              </additional>
+            </dc:group>
+          </additionals>
+        </dc:if>
+      </dc:filter>
     </dc:macro>
 
     <dc:macro name="basedata_1_additionals">


More information about the Dive4elements-commits mailing list