Last change
on this file since 21804 was 15584, checked in by rcernoch, 15 years ago |
CzechAddress: Now 0.2.0 is really almost ready
|
File size:
2.0 KB
|
Line | |
---|
1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
2 | <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
---|
3 | <xsl:template match="/">
|
---|
4 | <html>
|
---|
5 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
---|
6 | <body>
|
---|
7 | <table border="1">
|
---|
8 | <tr bgcolor="#9acd32">
|
---|
9 | <th>Date</th>
|
---|
10 | <th>Level</th>
|
---|
11 | <th>Message</th>
|
---|
12 | <th>Method</th>
|
---|
13 | <th>Param</th>
|
---|
14 | </tr>
|
---|
15 | <xsl:for-each select="log/record">
|
---|
16 | <tr>
|
---|
17 | <td><font size="-3"><xsl:value-of select="date"/></font></td>
|
---|
18 | <xsl:choose>
|
---|
19 | <xsl:when test="level = 'FINEST'">
|
---|
20 | <td><font color='#AAAAAA'><i><xsl:value-of select="level"/></i></font></td>
|
---|
21 | <td><i><xsl:value-of select="message"/></i></td>
|
---|
22 | </xsl:when>
|
---|
23 | <xsl:when test="level = 'FINER'">
|
---|
24 | <td><font color='#999999'><xsl:value-of select="level"/></font></td>
|
---|
25 | <td><xsl:value-of select="message"/></td>
|
---|
26 | </xsl:when>
|
---|
27 | <xsl:when test="level = 'FINE'">
|
---|
28 | <td><font color='#444444'><b><xsl:value-of select="level"/></b></font></td>
|
---|
29 | <td><b><xsl:value-of select="message"/></b></td>
|
---|
30 | </xsl:when>
|
---|
31 | <xsl:when test="level = 'INFO'">
|
---|
32 | <td><font color='black'><b><xsl:value-of select="level"/></b></font></td>
|
---|
33 | <td><b><xsl:value-of select="message"/></b></td>
|
---|
34 | </xsl:when>
|
---|
35 | <xsl:when test="level = 'WARNING'">
|
---|
36 | <td><font color='red'><b><xsl:value-of select="level"/></b></font></td>
|
---|
37 | <td><b><xsl:value-of select="message"/></b></td>
|
---|
38 | </xsl:when>
|
---|
39 | <xsl:otherwise>
|
---|
40 | <td><xsl:value-of select="level"/></td>
|
---|
41 | </xsl:otherwise>
|
---|
42 | </xsl:choose>
|
---|
43 | <td><tt><xsl:value-of select="method"/></tt></td>
|
---|
44 | <td><xsl:value-of select="param"/></td>
|
---|
45 | </tr>
|
---|
46 | </xsl:for-each>
|
---|
47 | </table>
|
---|
48 | </body>
|
---|
49 | </html>
|
---|
50 | </xsl:template>
|
---|
51 | </xsl:stylesheet>
|
---|
52 |
|
---|
53 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.