comparison 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
comparison
equal deleted inserted replaced
7334:f7d3fc619976 7340:2ce7bacc940f
5 version="1.0"> 5 version="1.0">
6 6
7 <xsl:output method="text" encoding="UTF-8"/> 7 <xsl:output method="text" encoding="UTF-8"/>
8 8
9 <xsl:template match="/"> 9 <xsl:template match="/">
10 <xsl:text>Duplicate macros:&#xa;</xsl:text>
11 <xsl:for-each select="//dc:macro/@name">
12 <xsl:variable name="mname" select="."/>
13 <xsl:if test="count(//dc:macro[@name=$mname]) &gt; 1">
14 <xsl:text> </xsl:text>
15 <xsl:value-of select="$mname"/>
16 <xsl:text>&#xa;</xsl:text>
17 </xsl:if>
18 </xsl:for-each>
19
10 <xsl:text>Marcos defined but not called:&#xa;</xsl:text> 20 <xsl:text>Marcos defined but not called:&#xa;</xsl:text>
11 <xsl:for-each select="//dc:macro/@name"> 21 <xsl:for-each select="//dc:macro/@name">
12 <xsl:variable name="mname" select="."/> 22 <xsl:variable name="mname" select="."/>
13 <xsl:if test="count(//dc:call-macro[@name=$mname]) = 0"> 23 <xsl:if test="count(//dc:call-macro[@name=$mname]) = 0">
14 <xsl:text> </xsl:text> 24 <xsl:text> </xsl:text>

http://dive4elements.wald.intevation.org