blob: 48fa26321ab1abd6edee21b992f731ea27531e48 [file] [log] [blame]
jeffliu2555d962006-08-02 19:57:46 +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">
3
jeffliu2555d962006-08-02 19:57:46 +00004 <xsl:template match="/">
5 <html>
jeffliu2555d962006-08-02 19:57:46 +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
jeffliu2555d962006-08-02 19:57:46 +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
jeffliu2555d962006-08-02 19:57:46 +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%">Class 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="class">
42 <xsl:apply-templates select="."/>
43 </xsl:for-each>
44 </table>
jeffliuf49d3072006-08-09 19:33:20 +000045 </xsl:for-each>
jeffliu2555d962006-08-02 19:57:46 +000046 </body>
47 </html>
48 </xsl:template>
49
jeffliuf49d3072006-08-09 19:33:20 +000050 <xsl:template match="class">
51 <tr>
jlanuti0fb58132006-12-08 20:16:37 +000052 <td><b><xsl:value-of select="@name"/></b></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>
jlanuti0fb58132006-12-08 20:16:37 +000060 <xsl:for-each select="method">
61 <xsl:sort select="@name"/>
62 <xsl:apply-templates select="."/>
63 </xsl:for-each>
64 <xsl:for-each select="field">
65 <xsl:sort select="@name"/>
66 <xsl:apply-templates select="."/>
67 </xsl:for-each>
jeffliuf49d3072006-08-09 19:33:20 +000068 </xsl:template>
jlanuti69395f22006-12-07 17:56:39 +000069
70 <xsl:template match="source">
71 <td><xsl:value-of select="@internal"/></td>
72 </xsl:template>
jlanuti0fb58132006-12-08 20:16:37 +000073
74 <xsl:template match="method">
75 <tr>
76 <td>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Method : <xsl:value-of select="@name"/>(...)</td>
77 <td><xsl:value-of select="@internal"/></td>
78 <td> &#160;</td>
79 </tr>
80 </xsl:template>
81
82 <xsl:template match="field">
83 <tr>
84 <td>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Field : <xsl:value-of select="@name"/></td>
85 <td><xsl:value-of select="@internal"/></td>
86 <td> &#160;</td>
87 </tr>
88 </xsl:template>
jeffliuf49d3072006-08-09 19:33:20 +000089
jeffliu2555d962006-08-02 19:57:46 +000090</xsl:stylesheet>