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 | fdf48ee | 2006-11-30 16:57:34 +0000 | [diff] [blame] | 31 | <h2><a name="{@lead}" id="{@lead}"><xsl:value-of select="@lead"/></a></h2> |
| 32 | <table id="data" border="1" width="80%"> |
| 33 | <tr> |
| 34 | <th width="95%">Plug-in</th> |
| 35 | <th>Internal code usage count</th> |
| 36 | <th>API usage count</th> |
jlanuti | 69395f2 | 2006-12-07 17:56:39 +0000 | [diff] [blame] | 37 | <xsl:for-each select="source"> |
| 38 | <th><xsl:value-of select="@name"/> Internal Count</th> |
| 39 | </xsl:for-each> |
jlanuti | fdf48ee | 2006-11-30 16:57:34 +0000 | [diff] [blame] | 40 | </tr> |
| 41 | <xsl:for-each select="plugin"> |
| 42 | <xsl:apply-templates select="."/> |
| 43 | </xsl:for-each> |
| 44 | </table> |
jeffliu | f49d307 | 2006-08-09 19:33:20 +0000 | [diff] [blame] | 45 | </xsl:for-each> |
| 46 | </body> |
| 47 | </html> |
| 48 | </xsl:template> |
| 49 | |
jeffliu | f49d307 | 2006-08-09 19:33:20 +0000 | [diff] [blame] | 50 | <xsl:template match="plugin"> |
| 51 | <tr> |
| 52 | <td><xsl:value-of select="@id"/></td> |
jeffliu | 2dd7b4d | 2006-08-11 20:27:43 +0000 | [diff] [blame] | 53 | <td><xsl:value-of select="@internal"/></td> |
| 54 | <td><xsl:value-of select="@api"/></td> |
jlanuti | 69395f2 | 2006-12-07 17:56:39 +0000 | [diff] [blame] | 55 | <xsl:for-each select="source"> |
| 56 | <xsl:sort select="@name"/> |
| 57 | <xsl:apply-templates select="."/> |
| 58 | </xsl:for-each> |
jeffliu | f49d307 | 2006-08-09 19:33:20 +0000 | [diff] [blame] | 59 | </tr> |
| 60 | </xsl:template> |
jlanuti | 69395f2 | 2006-12-07 17:56:39 +0000 | [diff] [blame] | 61 | |
| 62 | <xsl:template match="source"> |
| 63 | <td><xsl:value-of select="@internal"/></td> |
| 64 | </xsl:template> |
jeffliu | f49d307 | 2006-08-09 19:33:20 +0000 | [diff] [blame] | 65 | |
| 66 | </xsl:stylesheet> |