3855N/A<?
xml version="1.0" encoding="ISO-8859-1"?>
3855N/A<
xsl:
stylesheet version="1.0" 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 ! You can obtain a copy of the license at 3855N/A ! See the License for the specific language governing permissions 3855N/A ! and limitations under the License. 3855N/A ! When distributing Covered Code, include this CDDL HEADER in each 3855N/A ! file and include the License file at 3855N/A ! add the following below this CDDL HEADER, with the fields enclosed 3855N/A ! by brackets "[]" replaced with your own identifying information: 3855N/A ! Portions Copyright [yyyy] [name of copyright owner] 4458N/A ! Copyright 2008-2009 Sun Microsystems, Inc. 5334N/A ! Portions Copyright 2011 ForgeRock AS 3855N/A<
xsl:
output method="html" version="4.0" encoding="iso-8859-1" indent="yes"/>
4711N/A<
xsl:
template name="br-replace">
4711N/A <
xsl:
variable name="cr" select="'\n'"/>
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 | Then invoke this same br-replace template again, passing the 4711N/A | substring *after* the carriage return as the new "$text" to 4711N/A <
xsl:
call-
template name="br-replace">
4711N/A <
xsl:
with-
param name="text" select="substring-after($text,$cr)"/>
4711N/A <
xsl:
value-
of select="$text"/>
3855N/A <
xsl:
value-
of select="concat('Logs for ', $suite, ' test suite')"/>
3855N/A <
table class="tertmasttable" width="100%" cellspacing="0">
3855N/A <
td><
div class="collectionheader"><
xsl:
value-
of select="concat('Logs for ', $suite, ' test suite')"/></
div></
td>
3855N/A <
xsl:
attribute name="noshade">
3855N/A <
xsl:
value-
of select="'noshade'"/>
3855N/A <
xsl:
attribute name="size">
3855N/A <
xsl:
attribute name="border">
3855N/A <
xsl:
value-
of select="'1'"/>
3855N/A <
xsl:
attribute name="cellpadding">
3855N/A <
xsl:
value-
of select="'4'"/>
3855N/A <
xsl:
value-
of select="'Test Group : '"/>
3855N/A <
xsl:
value-
of select="$group"/>
3855N/A <
xsl:
value-
of select="'Test Suite : '"/>
3855N/A <
xsl:
value-
of select="$suite"/>
3855N/A <
xsl:
value-
of select="'ParentID : '"/>
3855N/A <
xsl:
value-
of select="$parent"/>
3855N/A <
xsl:
value-
of select="'JobID : '"/>
3855N/A <
xsl:
value-
of select="$jobid"/>
3855N/A <
xsl:
attribute name="noshade">
3855N/A <
xsl:
value-
of select="'noshade'"/>
3855N/A <
xsl:
attribute name="size">
3855N/A <
xsl:
attribute name="border">
3855N/A <
xsl:
value-
of select="'1'"/>
3855N/A <
xsl:
value-
of select="'Timestamp'"/>
3855N/A <
xsl:
value-
of select="'Level'"/>
3855N/A <
xsl:
value-
of select="'Message'"/>
3855N/A <
xsl:
value-
of select="@timestamp"/>
3862N/A <
xsl:
when test="@level = 'Start'">
3862N/A <
xsl:
attribute name="name">
3862N/A <
xsl:
value-
of select="@tag"/>
3862N/A <
xsl:
value-
of select="@level"/>
3862N/A <
xsl:
value-
of select="@level"/>
4711N/A <
xsl:
call-
template name="br-replace">
4711N/A <
xsl:
with-
param name="text" select="@message"/>