blob: a73aae51c7d74cb0818810a2ca1e8e1e75f9ba76 [file] [log] [blame]
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<body>
<table border="0" cellpadding="2" cellspacing="5" width="100%">
<tr>
<td align="left" width="60%">
<font style="font-size: x-large;; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold">API Violation Summary</font>
</td>
<td width="40%">
<img src="Idea.jpg" align="middle" height="86" hspace="50" width="120"/>
</td>
</tr>
</table>
<table border="0" cellpadding="2" cellspacing="5" width="100%">
<tr>
<td ALIGN="LEFT" VALIGN="TOP" COLSPAN="2" BGCOLOR="#0080C0"><b><font color="#FFFFFF" face="Arial,Helvetica">API violation summary</font></b></td>
</tr>
</table>
<br/>
<table border="1" width="80%">
<tr>
<th>Name</th>
<th>Violation count</th>
</tr>
<xsl:for-each select="root/violation">
<xsl:sort select="@file"/>
<xsl:variable name="report" select="document(@file)"/>
<xsl:apply-templates select="$report/component-use"/>
<xsl:if test="$report/component-use/source">
<tr>
<td><a href="{concat(substring(@file, 0, string-length(@file) - 3), '.html')}"><xsl:value-of select="substring(@file, 0, string-length(@file) - 17)"/></a></td>
<xsl:variable name="x" select="count($report/component-use/source/class-use/method-use) + count($report/component-use/source/class-use/field-use)"/>
<xsl:choose>
<xsl:when test="$x &gt; 0">
<td><xsl:value-of select="$x"/></td>
</xsl:when>
<xsl:otherwise>
<td><xsl:value-of select="count($report/component-use/source/class-use)"/></td>
</xsl:otherwise>
</xsl:choose>
</tr>
</xsl:if>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>