Mercurial > dive4elements > river
changeset 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 | 7022982a6ae5 |
files | artifacts/doc/conf/meta-data.xml |
diffstat | 1 files changed, 24 insertions(+), 20 deletions(-) [+] |
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">