blob: a806cd8af23c3cca7681b76ab9aa7a2bce588b73 [file] [log] [blame]
jeffliuf49d3072006-08-09 19:33:20 +00001<?xml version="1.0" encoding="ISO-8859-1"?>
jlanutiae7f2ee2006-11-15 14:52:57 +00002<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
jeffliuf49d3072006-08-09 19:33:20 +00003
4 <xsl:template match="/">
5 <html>
jeffliuf49d3072006-08-09 19:33:20 +00006 <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">
jeffliu2dd7b4d2006-08-11 20:27:43 +000011 Code Usage Report
jeffliuf49d3072006-08-09 19:33:20 +000012 </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">
jeffliu2dd7b4d2006-08-11 20:27:43 +000019 Code usage summary
jeffliuf49d3072006-08-09 19:33:20 +000020 </font></b></td>
21 </tr>
22 </table>
jlanutic838c0c2006-11-30 16:49:57 +000023 <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>
jeffliuf49d3072006-08-09 19:33:20 +000029 <xsl:for-each select="root/team">
30 <xsl:sort select="@lead"/>
jlanutifdf48ee2006-11-30 16:57:34 +000031 <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%">Package name</th>
35 <th>Internal code usage count</th>
36 <th>API usage count</th>
jlanuti69395f22006-12-07 17:56:39 +000037 <xsl:for-each select="source">
38 <th><xsl:value-of select="@name"/> Internal Count</th>
39 </xsl:for-each>
jlanutifdf48ee2006-11-30 16:57:34 +000040 </tr>
41 <xsl:for-each select="package">
42 <xsl:apply-templates select="."/>
43 </xsl:for-each>
44 </table>
jeffliuf49d3072006-08-09 19:33:20 +000045 </xsl:for-each>
46 </body>
47 </html>
48 </xsl:template>
49
jeffliuf49d3072006-08-09 19:33:20 +000050 <xsl:template match="package">
51 <tr>
52 <td><xsl:value-of select="@name"/></td>
jeffliu2dd7b4d2006-08-11 20:27:43 +000053 <td><xsl:value-of select="@internal"/></td>
54 <td><xsl:value-of select="@api"/></td>
jlanuti69395f22006-12-07 17:56:39 +000055 <xsl:for-each select="source">
56 <xsl:sort select="@name"/>
57 <xsl:apply-templates select="."/>
58 </xsl:for-each>
jeffliuf49d3072006-08-09 19:33:20 +000059 </tr>
60 </xsl:template>
jlanuti69395f22006-12-07 17:56:39 +000061
62 <xsl:template match="source">
63 <td><xsl:value-of select="@internal"/></td>
64 </xsl:template>
jeffliuf49d3072006-08-09 19:33:20 +000065
66</xsl:stylesheet>