jeffliu | 50adadc | 2005-10-14 07:07:21 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?> |
| 2 | <xsl:stylesheet version="1.0" |
| 3 | xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
| 4 | |
| 5 | <xsl:template match="/"> |
| 6 | <html> |
| 7 | <body> |
| 8 | <table border="0" cellpadding="2" cellspacing="5" width="100%"> |
| 9 | <tr> |
| 10 | <td align="left" width="60%"> |
| 11 | <font style="font-size: x-large;; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold">API Compatibility Summary</font> |
| 12 | </td> |
| 13 | <td width="40%"> |
| 14 | <img src="Idea.jpg" align="middle" height="86" hspace="50" width="120"/> |
| 15 | </td> |
| 16 | </tr> |
| 17 | </table> |
| 18 | <table border="0" cellpadding="2" cellspacing="5" width="100%"> |
| 19 | <tr> |
| 20 | <td ALIGN="LEFT" VALIGN="TOP" COLSPAN="2" BGCOLOR="#0080C0"><b><font color="#FFFFFF" face="Arial,Helvetica">API violation summary</font></b></td> |
| 21 | </tr> |
| 22 | </table> |
| 23 | <br/> |
| 24 | <table border="1" width="80%"> |
| 25 | <tr> |
| 26 | <th>Name</th> |
| 27 | <th>Removed methods</th> |
| 28 | <th>Removed fields</th> |
| 29 | <th>New methods</th> |
| 30 | <th>New fields</th> |
| 31 | </tr> |
| 32 | <xsl:for-each select="root/api-comp"> |
| 33 | <xsl:sort select="@file"/> |
| 34 | <xsl:variable name="report" select="document(@file)"/> |
| 35 | <xsl:apply-templates select="$report/api-compatibility"/> |
| 36 | <xsl:if test="$report/api-compatibility/new-apis/package-api/class-api or $report/api-compatibility/removed-apis/package-api/class-api"> |
| 37 | <tr> |
| 38 | <td><a href="{concat(substring(@file, 0, string-length(@file) - 3), '.html')}"><xsl:value-of select="substring(@file, 0, string-length(@file) - 12)"/></a></td> |
| 39 | <td><xsl:value-of select="count($report/api-compatibility/removed-apis/package-api/class-api/method-api)"/></td> |
| 40 | <td><xsl:value-of select="count($report/api-compatibility/removed-apis/package-api/class-api/field-api)"/></td> |
| 41 | <td><xsl:value-of select="count($report/api-compatibility/new-apis/package-api/class-api/method-api)"/></td> |
| 42 | <td><xsl:value-of select="count($report/api-compatibility/new-apis/package-api/class-api/field-api)"/></td> |
| 43 | </tr> |
| 44 | </xsl:if> |
| 45 | </xsl:for-each> |
| 46 | </table> |
| 47 | </body> |
| 48 | </html> |
| 49 | </xsl:template> |
| 50 | |
| 51 | </xsl:stylesheet> |