3855N/A<?xml version="1.0" encoding="ISO-8859-1"?>
3855N/A<xsl:stylesheet version="1.0"
3855N/Axmlns:xsl="http://www.w3.org/1999/XSL/Transform">
3855N/A<!--
3855N/A ! CDDL HEADER START
3855N/A !
3855N/A ! The contents of this file are subject to the terms of the
3855N/A ! Common Development and Distribution License, Version 1.0 only
3855N/A ! (the "License"). You may not use this file except in compliance
3855N/A ! with the License.
3855N/A !
6982N/A ! You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
6982N/A ! or http://forgerock.org/license/CDDLv1.0.html.
3855N/A ! See the License for the specific language governing permissions
3855N/A ! and limitations under the License.
3855N/A !
3855N/A ! When distributing Covered Code, include this CDDL HEADER in each
6982N/A ! file and include the License file at legal-notices/CDDLv1_0.txt.
6982N/A ! If applicable, add the following below this CDDL HEADER, with the
6982N/A ! fields enclosed by brackets "[]" replaced with your own identifying
6982N/A ! information:
3855N/A ! Portions Copyright [yyyy] [name of copyright owner]
3855N/A !
3855N/A ! CDDL HEADER END
3855N/A !
4458N/A ! Copyright 2008-2009 Sun Microsystems, Inc.
5334N/A ! Portions Copyright 2011 ForgeRock AS
3855N/A ! -->
3855N/A
3855N/A<xsl:output method="html" version="4.0" encoding="iso-8859-1" indent="yes"/>
3855N/A
4711N/A<xsl:template name="br-replace">
4711N/A <xsl:param name="text"/>
4711N/A <xsl:variable name="cr" select="'\n'"/>
4711N/A <xsl:choose>
4711N/A <!-- If the value of the $text parameter
4711N/A contains a carriage return... -->
4711N/A <xsl:when test="contains($text,$cr)">
4711N/A <!-- Return the substring of $text before the carriage return -->
4711N/A <xsl:value-of select="substring-before($text,$cr)"/>
4711N/A <!-- And construct a <br/> element -->
4711N/A <br/>
4711N/A <!--
4711N/A | Then invoke this same br-replace template again, passing the
4711N/A | substring *after* the carriage return as the new "$text" to
4711N/A | consider for replacement
4711N/A +-->
4711N/A <xsl:call-template name="br-replace">
4711N/A <xsl:with-param name="text" select="substring-after($text,$cr)"/>
4711N/A </xsl:call-template>
4711N/A </xsl:when>
4711N/A <xsl:otherwise>
4711N/A <xsl:value-of select="$text"/>
4711N/A </xsl:otherwise>
4711N/A </xsl:choose>
4711N/A</xsl:template>
4711N/A
3855N/A<xsl:template match="/">
3855N/A
3855N/A <xsl:element name="html">
3855N/A
3855N/A <xsl:variable name="group" select="qa/logs/log/@group"/>
3855N/A <xsl:variable name="suite" select="qa/logs/log/@suite"/>
3855N/A <xsl:variable name="parent" select="qa/logs/log/@parent"/>
3855N/A <xsl:variable name="jobid" select="qa/logs/log/@jobid"/>
3855N/A
3855N/A <xsl:element name="head">
3855N/A
3855N/A <style type="text/css">
3855N/A /* <![CDATA[ */
3855N/A @import "/branding/css/tigris.css";
3855N/A @import "/branding/css/inst.css";
3855N/A /* ]]> */
3855N/A </style>
3855N/A <link rel="stylesheet" type="text/css" href="/branding/css/print.css" media="print" />
4458N/A <link rel="stylesheet" href="/reports/opends.css" type="text/css" />
3855N/A
3855N/A <xsl:element name="title">
3855N/A <xsl:value-of select="concat('Logs for ', $suite, ' test suite')"/>
3855N/A </xsl:element>
3855N/A
3855N/A </xsl:element>
3855N/A
3855N/A <table class="tertmasttable" width="100%" cellspacing="0">
3855N/A <tbody>
3855N/A <tr>
3855N/A <td><div class="collectionheader"><xsl:value-of select="concat('Logs for ', $suite, ' test suite')"/></div></td>
5334N/A <td width="10%"><a href="http://www.forgerock.com"><img src="/reports/opendj_logo.png" alt="OpenDJ Logo" width="104" height="33" border="0" align="middle" /></a> </td>
3855N/A </tr>
3855N/A </tbody>
3855N/A </table>
3855N/A
3855N/A <!-- Shaded Line -->
3855N/A <xsl:element name="hr">
3855N/A <xsl:attribute name="noshade">
3855N/A <xsl:value-of select="'noshade'"/>
3855N/A </xsl:attribute>
3855N/A <xsl:attribute name="size">
3855N/A <xsl:value-of select="1"/>
3855N/A </xsl:attribute>
3855N/A </xsl:element>
3855N/A
3855N/A <!-- Baby Table -->
3855N/A <xsl:element name="table">
3855N/A <xsl:attribute name="border">
3855N/A <xsl:value-of select="'1'"/>
3855N/A </xsl:attribute>
3855N/A <xsl:attribute name="cellpadding">
3855N/A <xsl:value-of select="'4'"/>
3855N/A </xsl:attribute>
3855N/A
3855N/A <xsl:element name="tr">
3855N/A <xsl:element name="td">
3855N/A <xsl:element name="b">
3855N/A <xsl:value-of select="'Test Group : '"/>
3855N/A </xsl:element>
3855N/A <xsl:value-of select="$group"/>
3855N/A </xsl:element>
3855N/A <xsl:element name="td">
3855N/A <xsl:element name="b">
3855N/A <xsl:value-of select="'Test Suite : '"/>
3855N/A </xsl:element>
3855N/A <xsl:value-of select="$suite"/>
3855N/A </xsl:element>
3855N/A <xsl:element name="td">
3855N/A <xsl:element name="b">
3855N/A <xsl:value-of select="'ParentID : '"/>
3855N/A </xsl:element>
3855N/A <xsl:value-of select="$parent"/>
3855N/A </xsl:element>
3855N/A <xsl:element name="td">
3855N/A <xsl:element name="b">
3855N/A <xsl:value-of select="'JobID : '"/>
3855N/A </xsl:element>
3855N/A <xsl:value-of select="$jobid"/>
3855N/A </xsl:element>
3855N/A </xsl:element>
3855N/A
3855N/A </xsl:element>
3855N/A
3855N/A <!-- Shaded Line -->
3855N/A <xsl:element name="hr">
3855N/A <xsl:attribute name="noshade">
3855N/A <xsl:value-of select="'noshade'"/>
3855N/A </xsl:attribute>
3855N/A <xsl:attribute name="size">
3855N/A <xsl:value-of select="1"/>
3855N/A </xsl:attribute>
3855N/A </xsl:element>
3855N/A
3855N/A <xsl:element name="body">
3855N/A
3855N/A <xsl:element name="table">
3855N/A <xsl:attribute name="border">
3855N/A <xsl:value-of select="'1'"/>
3862N/A </xsl:attribute>
3855N/A
3855N/A <xsl:element name="tr">
3855N/A <xsl:element name="th">
3855N/A <xsl:value-of select="'Timestamp'"/>
3855N/A </xsl:element>
3855N/A <xsl:element name="th">
3855N/A <xsl:value-of select="'Level'"/>
3855N/A </xsl:element>
3855N/A <xsl:element name="th">
3855N/A <xsl:value-of select="'Message'"/>
3855N/A </xsl:element>
3855N/A </xsl:element>
3855N/A
3855N/A <xsl:variable name="log" select="qa/logs/log"/>
3855N/A
3855N/A <xsl:for-each select="$log/line">
3855N/A
3855N/A <xsl:element name="tr">
3855N/A <xsl:element name="td">
3855N/A <xsl:value-of select="@timestamp"/>
3855N/A </xsl:element>
3855N/A <xsl:element name="td">
3862N/A <xsl:choose>
3862N/A <xsl:when test="@level = 'Start'">
3862N/A <xsl:element name="a">
3862N/A <xsl:attribute name="name">
3862N/A <xsl:value-of select="@tag"/>
3862N/A </xsl:attribute>
3862N/A <xsl:value-of select="@level"/>
3862N/A </xsl:element>
3862N/A </xsl:when>
3862N/A <xsl:otherwise>
3862N/A <xsl:value-of select="@level"/>
3862N/A </xsl:otherwise>
3862N/A </xsl:choose>
3855N/A </xsl:element>
3855N/A <xsl:element name="td">
4711N/A <xsl:call-template name="br-replace">
4711N/A <xsl:with-param name="text" select="@message"/>
4711N/A </xsl:call-template>
3855N/A </xsl:element>
3855N/A </xsl:element>
3855N/A
3855N/A </xsl:for-each>
3855N/A
3855N/A </xsl:element>
3855N/A
3855N/A </xsl:element>
3855N/A
3855N/A </xsl:element>
3855N/A</xsl:template>
3855N/A
3855N/A</xsl:stylesheet>