Property files are now being read by the property component
[utils] / build / checkstyle-simple.xsl
1 <?xml version="1.0"?>\r
2 \r
3 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">\r
4 \r
5 <xsl:template match="/">\r
6   <html>\r
7     <head>\r
8     <title>Sun Coding Style Violations</title>\r
9     </head>\r
10     <body bgcolor="#FFFFEF">\r
11     <p><b>Coding Style Check Results</b></p>\r
12     <table border="1" cellspacing="0" cellpadding="2">\r
13         <tr bgcolor="#CC9966">\r
14             <th colspan="2"><b>Summary</b></th>\r
15         </tr>\r
16         <tr bgcolor="#CCF3D0">\r
17             <td>Total files checked</td>\r
18             <td><xsl:number level="any" value="count(descendant::file)"/></td>\r
19         </tr>\r
20         <tr bgcolor="#F3F3E1">\r
21             <td>Files with errors</td>\r
22             <td><xsl:number level="any" value="count(descendant::file[error])"/></td>\r
23         </tr>\r
24         <tr bgcolor="#CCF3D0">\r
25             <td>Total errors</td>\r
26             <td><xsl:number level="any" value="count(descendant::error)"/></td>\r
27         </tr>\r
28         <tr bgcolor="#F3F3E1">\r
29             <td>Errors per file</td>\r
30             <td><xsl:number level="any" value="count(descendant::error) div count(descendant::file)"/></td>\r
31         </tr>\r
32     </table>\r
33     <hr align="left" width="95%" size="1"/>\r
34     <p>The following are violations of the Sun Coding-Style Standards:</p>\r
35     <p/>\r
36         <xsl:apply-templates/>\r
37     </body>\r
38   </html>\r
39 </xsl:template>\r
40 \r
41 <xsl:template match="file[error]">\r
42     <table bgcolor="#AFFFFF" width="95%" border="1" cellspacing="0" cellpadding="2">\r
43         <tr>\r
44             <th> File: </th>\r
45             <td>\r
46                 <xsl:value-of select="@name"/>\r
47             </td>\r
48         </tr>\r
49     </table>\r
50     <table bgcolor="#DFFFFF" width="95%" border="1" cellspacing="0" cellpadding="2">\r
51         <tr>\r
52             <th> Line Number </th>\r
53             <th> Error Message </th>\r
54         </tr>\r
55         <xsl:apply-templates select="error"/>\r
56     </table>\r
57     <p/>\r
58 </xsl:template>\r
59 \r
60 <xsl:template match="error">\r
61     <tr>\r
62         <td>\r
63             <xsl:value-of select="@line"/>\r
64         </td>\r
65         <td>\r
66             <xsl:value-of select="@message"/>\r
67         </td>\r
68     </tr>\r
69 </xsl:template>\r
70 \r
71 </xsl:stylesheet>\r