You are viewing a plain text version of this content. The canonical link for it is here.
Posted to alexandria-dev@jakarta.apache.org by jm...@apache.org on 2001/04/09 13:58:52 UTC
cvs commit: jakarta-alexandria/src/xsl blog.xsl
jmartin 01/04/09 04:58:52
Modified: src/xsl blog.xsl
Log:
Echoes should be greeen not red
Revision Changes Path
1.3 +73 -63 jakarta-alexandria/src/xsl/blog.xsl
Index: blog.xsl
===================================================================
RCS file: /home/cvs/jakarta-alexandria/src/xsl/blog.xsl,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- blog.xsl 2000/11/16 16:06:38 1.2
+++ blog.xsl 2001/04/09 11:58:52 1.3
@@ -1,73 +1,83 @@
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
- <xsl:output indent="yes"/>
+ <xsl:output indent="yes"/>
- <xsl:template match="/">
+ <xsl:template match="/">
- <html>
- <head>
- <link rel="stylesheet" type="text/css" href="../../../../html/javadoc.css" title="Style"></link>
- </head>
- <body bgcolor="white">
- <h1>Build Log</h1>
- <h2><script>document.write(document.lastModified)</script></h2>
- <xsl:apply-templates/>
- </body>
- </html>
-
- </xsl:template>
-
- <xsl:template match="build">
- <table width="100%" border="0" cellpadding="5" cellspacing="2" bgcolor="black">
- <xsl:apply-templates/>
- </table>
- </xsl:template>
- <xsl:template match="target">
- <tr>
- <td bgcolor="white">
- <b>Target: <xsl:value-of select="@name"/></b>
- </td>
- </tr>
- <tr>
- <td bgcolor="white">
- <table width="100%" border="0" cellpadding="5" cellspacing="2" bordercolor="white">
- <xsl:apply-templates/>
- </table>
- </td>
- </tr>
- </xsl:template>
- <xsl:template match="task">
+ <html>
+ <head>
+ <link rel="stylesheet" type="text/css" href="../../../../html/javadoc.css" title="Style"></link>
+ </head>
+ <body bgcolor="white">
+ <h1>Build Log</h1>
+ <h2><script>document.write(document.lastModified)</script></h2>
+ <xsl:apply-templates/>
+ </body>
+ </html>
+
+ </xsl:template>
+
+ <xsl:template match="build">
+ <table width="100%" border="0" cellpadding="5" cellspacing="2" bgcolor="black">
+ <xsl:apply-templates/>
+ </table>
+ </xsl:template>
+
+ <xsl:template match="target">
+ <tr>
+ <td bgcolor="white">
+ <b>Target: <xsl:value-of select="@name"/></b>
+ </td>
+ </tr>
+ <tr>
+ <td bgcolor="white">
+ <table width="100%" border="0" cellpadding="5" cellspacing="2" bordercolor="white">
+ <xsl:apply-templates/>
+ </table>
+ </td>
+ </tr>
+ </xsl:template>
+
+ <xsl:template match="task">
+ <tr>
+ <td bgcolor="white">
+ <b>Task: <xsl:value-of select="@name"/></b>
+ </td>
+ </tr>
+ <tr>
+ <td bgcolor="white">
+ <table width="100%" border="0" cellpadding="5" cellspacing="0" bordercolor="white">
+ <xsl:apply-templates/>
+ </table>
+ </td>
+ </tr>
+ </xsl:template>
+
+ <xsl:template match="message">
+ <xsl:choose>
+ <xsl:when test="@priority='warn' and ../@name!='Echo'">
<tr>
- <td bgcolor="white">
- <b>Task: <xsl:value-of select="@name"/></b>
- </td>
- </tr>
- <tr>
- <td bgcolor="white">
- <table width="100%" border="0" cellpadding="5" cellspacing="0" bordercolor="white">
- <xsl:apply-templates/>
- </table>
- </td>
- </tr>
- </xsl:template>
- <xsl:template match="message">
- <xsl:choose>
- <xsl:when test="@priority='warn'">
+ <td bgcolor="red">
+ <xsl:apply-templates/>
+ </td>
+ </tr>
+ </xsl:when>
+ <xsl:when test="@priority='warn' and ../@name='Echo'">
<tr>
- <td bgcolor="red">
- <xsl:apply-templates/>
- </td>
- </tr>
- </xsl:when>
- <xsl:when test="@priority='info'">
+ <td bgcolor="#00CC00">
+ <xsl:apply-templates/>
+ </td>
+ </tr>
+ </xsl:when>
+ <xsl:when test="@priority='info'">
<tr>
- <td bgcolor="#00CC00">
- <xsl:apply-templates/>
- </td>
- </tr>
- </xsl:when>
- </xsl:choose>
- </xsl:template>
+ <td bgcolor="#00CC00">
+ <xsl:apply-templates/>
+ </td>
+ </tr>
+ </xsl:when>
+ </xsl:choose>
+ </xsl:template>
</xsl:stylesheet>
---------------------------------------------------------------------
To unsubscribe, e-mail: alexandria-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: alexandria-dev-help@jakarta.apache.org