diff artifacts/doc/conf/meta-data.xml @ 6073:f0417a8e4c39

meta-data.xml: dc:has-result()-guard additionals and basedata.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Thu, 23 May 2013 11:59:01 +0200
parents 8320eb8ed8c8
children b121b865907d
line wrap: on
line diff
--- 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">

http://dive4elements.wald.intevation.org