1 <?xml version="1.0"?>
\r
3 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
\r
5 <xsl:template match="/">
\r
8 <title>Sun Coding Style Violations</title>
\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
16 <tr bgcolor="#CCF3D0">
\r
17 <td>Total files checked</td>
\r
18 <td><xsl:number level="any" value="count(descendant::file)"/></td>
\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
24 <tr bgcolor="#CCF3D0">
\r
25 <td>Total errors</td>
\r
26 <td><xsl:number level="any" value="count(descendant::error)"/></td>
\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
33 <hr align="left" width="95%" size="1"/>
\r
34 <p>The following are violations of the Sun Coding-Style Standards:</p>
\r
36 <xsl:apply-templates/>
\r
41 <xsl:template match="file[error]">
\r
42 <table bgcolor="#AFFFFF" width="95%" border="1" cellspacing="0" cellpadding="2">
\r
46 <xsl:value-of select="@name"/>
\r
50 <table bgcolor="#DFFFFF" width="95%" border="1" cellspacing="0" cellpadding="2">
\r
52 <th> Line Number </th>
\r
53 <th> Error Message </th>
\r
55 <xsl:apply-templates select="error"/>
\r
60 <xsl:template match="error">
\r
63 <xsl:value-of select="@line"/>
\r
66 <xsl:value-of select="@message"/>
\r