diff artifacts/contrib/list-unused-macros.xsl @ 7340:2ce7bacc940f double-precision

Merged changes from default into double precision branch.
author Tom Gottfried <tom@intevation.de>
date Tue, 15 Oct 2013 18:41:55 +0200
parents 9543b768d740
children
line wrap: on
line diff
--- a/artifacts/contrib/list-unused-macros.xsl	Tue Oct 15 15:32:36 2013 +0200
+++ b/artifacts/contrib/list-unused-macros.xsl	Tue Oct 15 18:41:55 2013 +0200
@@ -7,6 +7,16 @@
   <xsl:output method="text" encoding="UTF-8"/>
 
   <xsl:template match="/">
+    <xsl:text>Duplicate macros:&#xa;</xsl:text>
+    <xsl:for-each select="//dc:macro/@name">
+      <xsl:variable name="mname" select="."/>
+      <xsl:if test="count(//dc:macro[@name=$mname]) &gt; 1">
+        <xsl:text>  </xsl:text>
+        <xsl:value-of select="$mname"/>
+        <xsl:text>&#xa;</xsl:text>
+      </xsl:if>
+    </xsl:for-each>
+
     <xsl:text>Marcos defined but not called:&#xa;</xsl:text>
     <xsl:for-each select="//dc:macro/@name">
       <xsl:variable name="mname" select="."/>

http://dive4elements.wald.intevation.org