<?xml version="1.0" encoding="ISO-8859-1"?>


<!--
Remove empty classes from the XML report
version $Date: 2003/11/23 21:28:46 $

This stylesheet eliminates from the XML report any class that has no
count (line-count or what have you).  Thanks to Keith Ackley for pointing
out that the inner "if" needs a copy wrapper.


 @author Matt Albrecht (mailto:groboclown@users.sourceforge.net)
 @author Keith Ackley (kackley at users.sourceforge.net)
-->


<xsl:stylesheet xmlns:xsl='http://www.w3.org/1999/XSL/Transform' version='1.0'>
    <xsl:output method="xml" indent="no" />
    
    <xsl:template match="classcoverage">
        <xsl:if test="cover/@total!='0'">
            <xsl:copy>
                <xsl:apply-templates select="@*|node()" />
            </xsl:copy>
        </xsl:if>
        <!-- else ignore the classcoverage tag -->
    </xsl:template>
    
    <!-- Copy anything that doesn't match the above template -->
    <xsl:template match="@*|node()" >
        <xsl:copy>
            <xsl:apply-templates select="@*|node()" />
        </xsl:copy>
    </xsl:template>
</xsl:stylesheet>
