blob: c3c5475564c88f01eacf11085099bab903440db7 [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"/>
jlanutiae7f2ee2006-11-15 14:52:57 +000031 <xsl:apply-templates select=".">
32 <xsl:sort select="@internal" order="descending"/>
33 </xsl:apply-templates>
jeffliuf49d3072006-08-09 19:33:20 +000034 </xsl:for-each>
35 </body>
36 </html>
37 </xsl:template>
38
39 <xsl:template match="team">
jlanutic838c0c2006-11-30 16:49:57 +000040 <h2><a name="{@lead}" id="{@lead}"><xsl:value-of select="@lead"/></a></h2>
jeffliuf49d3072006-08-09 19:33:20 +000041 <table id="data" border="1" width="80%">
42 <tr>
43 <th width="95%">Package name</th>
jeffliu2dd7b4d2006-08-11 20:27:43 +000044 <th>Internal code usage count</th>
45 <th>API usage count</th>
jeffliuf49d3072006-08-09 19:33:20 +000046 </tr>
47 <xsl:for-each select="package">
jeffliuf49d3072006-08-09 19:33:20 +000048 <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>
jeffliu2dd7b4d2006-08-11 20:27:43 +000056 <td><xsl:value-of select="@internal"/></td>
57 <td><xsl:value-of select="@api"/></td>
jeffliuf49d3072006-08-09 19:33:20 +000058 </tr>
59 </xsl:template>
60
61</xsl:stylesheet>