jeffliu | f49d307 | 2006-08-09 19:33:20 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?> |
jlanuti | ae7f2ee | 2006-11-15 14:52:57 +0000 | [diff] [blame] | 2 | <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
jeffliu | f49d307 | 2006-08-09 19:33:20 +0000 | [diff] [blame] | 3 | |
| 4 | <xsl:template match="/"> |
| 5 | <html> |
jeffliu | f49d307 | 2006-08-09 19:33:20 +0000 | [diff] [blame] | 6 | <body> |
| 7 | <table border="0" cellpadding="2" cellspacing="5" width="100%"> |
| 8 | <tr> |
| 9 | <td align="left" width="60%"> |
| 10 | <font style="font-size: x-large;; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold"> |
jeffliu | 2dd7b4d | 2006-08-11 20:27:43 +0000 | [diff] [blame] | 11 | Code Usage Report |
jeffliu | f49d307 | 2006-08-09 19:33:20 +0000 | [diff] [blame] | 12 | </font> |
| 13 | </td> |
| 14 | </tr> |
| 15 | </table> |
| 16 | <table border="0" cellpadding="2" cellspacing="5" width="100%"> |
| 17 | <tr> |
| 18 | <td ALIGN="LEFT" VALIGN="TOP" COLSPAN="2" BGCOLOR="#0080C0"><b><font color="#FFFFFF" face="Arial,Helvetica"> |
jeffliu | 2dd7b4d | 2006-08-11 20:27:43 +0000 | [diff] [blame] | 19 | Code usage summary |
jeffliu | f49d307 | 2006-08-09 19:33:20 +0000 | [diff] [blame] | 20 | </font></b></td> |
| 21 | </tr> |
| 22 | </table> |
jlanuti | c838c0c | 2006-11-30 16:49:57 +0000 | [diff] [blame^] | 23 | <u><h5> |
| 24 | <xsl:for-each select="root/team"> |
| 25 | <xsl:sort select="@lead"/> |
| 26 | <a href="#{@lead}"><xsl:value-of select="@lead"/></a><br /> |
| 27 | </xsl:for-each> |
| 28 | </h5></u> |
jeffliu | f49d307 | 2006-08-09 19:33:20 +0000 | [diff] [blame] | 29 | <xsl:for-each select="root/team"> |
| 30 | <xsl:sort select="@lead"/> |
jlanuti | ae7f2ee | 2006-11-15 14:52:57 +0000 | [diff] [blame] | 31 | <xsl:apply-templates select="."> |
| 32 | <xsl:sort select="@internal" order="descending"/> |
| 33 | </xsl:apply-templates> |
jeffliu | f49d307 | 2006-08-09 19:33:20 +0000 | [diff] [blame] | 34 | </xsl:for-each> |
| 35 | </body> |
| 36 | </html> |
| 37 | </xsl:template> |
| 38 | |
| 39 | <xsl:template match="team"> |
jlanuti | c838c0c | 2006-11-30 16:49:57 +0000 | [diff] [blame^] | 40 | <h2><a name="{@lead}" id="{@lead}"><xsl:value-of select="@lead"/></a></h2> |
jeffliu | f49d307 | 2006-08-09 19:33:20 +0000 | [diff] [blame] | 41 | <table id="data" border="1" width="80%"> |
| 42 | <tr> |
| 43 | <th width="95%">Package name</th> |
jeffliu | 2dd7b4d | 2006-08-11 20:27:43 +0000 | [diff] [blame] | 44 | <th>Internal code usage count</th> |
| 45 | <th>API usage count</th> |
jeffliu | f49d307 | 2006-08-09 19:33:20 +0000 | [diff] [blame] | 46 | </tr> |
| 47 | <xsl:for-each select="package"> |
jeffliu | f49d307 | 2006-08-09 19:33:20 +0000 | [diff] [blame] | 48 | <xsl:apply-templates select="."/> |
| 49 | </xsl:for-each> |
| 50 | </table> |
| 51 | </xsl:template> |
| 52 | |
| 53 | <xsl:template match="package"> |
| 54 | <tr> |
| 55 | <td><xsl:value-of select="@name"/></td> |
jeffliu | 2dd7b4d | 2006-08-11 20:27:43 +0000 | [diff] [blame] | 56 | <td><xsl:value-of select="@internal"/></td> |
| 57 | <td><xsl:value-of select="@api"/></td> |
jeffliu | f49d307 | 2006-08-09 19:33:20 +0000 | [diff] [blame] | 58 | </tr> |
| 59 | </xsl:template> |
| 60 | |
| 61 | </xsl:stylesheet> |