5713N/A<?xml version="1.0"?>
0N/A<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
0N/A<xsl:output method="html" indent="yes" encoding="US-ASCII"/>
0N/A<!--
809N/A Licensed to the Apache Software Foundation (ASF) under one or more
809N/A contributor license agreements. See the NOTICE file distributed with
809N/A this work for additional information regarding copyright ownership.
809N/A The ASF licenses this file to You under the Apache License, Version 2.0
809N/A (the "License"); you may not use this file except in compliance with
809N/A the License. You may obtain a copy of the License at
809N/A
809N/A http://www.apache.org/licenses/LICENSE-2.0
809N/A
809N/A Unless required by applicable law or agreed to in writing, software
809N/A distributed under the License is distributed on an "AS IS" BASIS,
809N/A WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
809N/A See the License for the specific language governing permissions and
809N/A limitations under the License.
0N/A
0N/A-->
0N/A
0N/A<!--
0N/A
0N/A The purpose have this XSL is to provide a nice way to look at the output
0N/A from the Ant XmlLogger (ie: ant -listener org.apache.tools.ant.XmlLogger )
0N/A
0N/A @author <a href="mailto:sbailliez@apache.org">Stephane Bailliez</a>
0N/A
0N/A-->
0N/A<xsl:decimal-format decimal-separator="." grouping-separator="," />
0N/A
0N/A<xsl:template match="/">
0N/A<html>
0N/A <head>
0N/A <style type="text/css">
0N/A .bannercell {
0N/A border: 0px;
0N/A padding: 0px;
0N/A }
0N/A body {
0N/A margin: 0;
0N/A font:normal 100% arial,helvetica,sanserif;
0N/A background-color:#FFFFFF;
0N/A color:#000000;
0N/A }
0N/A table.status {
0N/A font:bold 80% arial,helvetica,sanserif;
0N/A background-color:#525D76;
0N/A color:#ffffff;
0N/A }
0N/A table.log tr td, tr th {
0N/A font-size: 80%;
0N/A }
0N/A .error {
0N/A color:red;
0N/A }
0N/A .warn {
0N/A color:brown;
0N/A }
0N/A .info {
0N/A color:gray;
0N/A }
0N/A .debug{
0N/A color:gray;
0N/A }
0N/A .failed {
0N/A font-size:80%;
0N/A background-color: red;
0N/A color:#FFFFFF;
0N/A font-weight: bold
0N/A }
0N/A .complete {
0N/A font-size:80%;
0N/A background-color: #525D76;
0N/A color:#FFFFFF;
0N/A font-weight: bold
0N/A }
0N/A .a td {
0N/A background: #efefef;
0N/A }
0N/A .b td {
0N/A background: #fff;
0N/A }
0N/A th, td {
0N/A text-align: left;
0N/A vertical-align: top;
0N/A }
0N/A th {
0N/A background: #ccc;
0N/A color: black;
0N/A }
0N/A table, th, td {
0N/A border: none
0N/A }
0N/A h3 {
0N/A font:bold 80% arial,helvetica,sanserif;
0N/A background: #525D76;
0N/A color: white;
0N/A text-decoration: none;
0N/A padding: 5px;
0N/A margin-right: 2px;
0N/A margin-left: 2px;
0N/A margin-bottom: 0;
0N/A }
0N/A </style>
0N/A </head>
0N/A <body>
0N/A <!-- jakarta logo -->
0N/A <table border="0" cellpadding="0" cellspacing="0" width="100%">
0N/A <tr>
0N/A <td valign="top" class="bannercell">
0N/A <a href="http://jakarta.apache.org/">
0N/A <img src="http://jakarta.apache.org/images/jakarta-logo.gif" alt="http://jakarta.apache.org" align="left" border="0"/>
0N/A </a>
0N/A </td>
0N/A <td style="text-align:right;vertical-align:bottom">
809N/A <a href="http://ant.apache.org/">Apache Ant</a>
0N/A </td>
0N/A </tr>
0N/A </table>
0N/A
0N/A <table border="0" width="100%">
0N/A <tr><td><hr noshade="yes" size="1"/></td></tr>
0N/A </table>
0N/A
0N/A <xsl:apply-templates select="build"/>
0N/A
0N/A </body>
0N/A</html>
0N/A</xsl:template>
0N/A
0N/A<xsl:template match="build">
0N/A <!-- build status -->
0N/A <table width="100%">
0N/A <xsl:attribute name="class">
0N/A <xsl:if test="@error">failed</xsl:if>
0N/A <xsl:if test="not(@error)">complete</xsl:if>
0N/A </xsl:attribute>
0N/A <tr>
0N/A <xsl:if test="@error">
0N/A <td nowrap="yes">Build Failed</td>
0N/A </xsl:if>
0N/A <xsl:if test="not(@error)">
0N/A <td nowrap="yes">Build Complete</td>
0N/A </xsl:if>
0N/A <td style="text-align:right" nowrap="yes">Total Time: <xsl:value-of select="@time"/></td>
0N/A </tr>
0N/A <tr>
0N/A <td colspan="2">
0N/A <xsl:if test="@error">
0N/A <tt><xsl:value-of select="@error"/></tt><br/>
0N/A <i style="font-size:80%">See the <a href="#stacktrace" alt="Click for details">stacktrace</a>.</i>
0N/A </xsl:if>
0N/A </td>
0N/A </tr>
0N/A </table>
0N/A <table border="1" cellspacing="2" cellpadding="3" width="100%" style="font-size:80%">
0N/A <tr class="a"><td width="1">ant.file</td><td><xsl:value-of select="substring-after(//message[contains(text(),'ant.file')], '->')"/></td></tr>
0N/A <tr class="b"><td width="1">ant.version</td><td><xsl:value-of select="substring-after(//message[contains(text(),'ant.version')], '->')"/></td></tr>
0N/A <tr class="a"><td width="1">java.version</td><td><xsl:value-of select="substring-after(//message[contains(text(),'java.vm.version')], '->')"/></td></tr>
0N/A <tr class="b"><td width="1">os.name</td><td><xsl:value-of select="substring-after(//message[contains(text(),'os.name')], '->')"/></td></tr>
0N/A </table>
0N/A <!-- build information -->
0N/A <h3>Build events</h3>
0N/A <table class="log" border="1" cellspacing="2" cellpadding="3" width="100%">
0N/A <tr>
0N/A <th nowrap="yes" align="left" width="1%">target</th>
0N/A <th nowrap="yes" align="left" width="1%">task</th>
0N/A <th nowrap="yes" align="left">message</th>
0N/A </tr>
0N/A <xsl:apply-templates select=".//message[@priority != 'debug']"/>
0N/A </table>
0N/A <p>
0N/A <!-- stacktrace -->
0N/A <xsl:if test="stacktrace">
0N/A <a name="stacktrace"/>
0N/A <h3>Error details</h3>
0N/A <table width="100%">
0N/A <tr><td>
0N/A <pre><xsl:value-of select="stacktrace"/></pre>
0N/A </td></tr>
0N/A </table>
0N/A </xsl:if>
0N/A </p>
0N/A</xsl:template>
0N/A
0N/A<!-- report every message but those with debug priority -->
0N/A<xsl:template match="message[@priority!='debug']">
0N/A <tr valign="top">
0N/A <!-- alternated row style -->
0N/A <xsl:attribute name="class">
0N/A <xsl:if test="position() mod 2 = 1">a</xsl:if>
0N/A <xsl:if test="position() mod 2 = 0">b</xsl:if>
0N/A </xsl:attribute>
0N/A <td nowrap="yes" width="1%"><xsl:value-of select="../../@name"/></td>
0N/A <td nowrap="yes" style="text-align:right" width="1%">[ <xsl:value-of select="../@name"/> ]</td>
0N/A <td class="{@priority}" nowrap="yes">
0N/A <xsl:value-of select="text()"/>
0N/A </td>
0N/A </tr>
0N/A</xsl:template>
0N/A
0N/A</xsl:stylesheet>