From ba62d7868f5fceb574f3631804af1c61e7f21f8b Mon Sep 17 00:00:00 2001
From: andrug <andrug@localhost>
Date: Tue, 06 May 2008 16:30:33 +0000
Subject: [PATCH] allow report to display links + add a new xsl to parse client details log

---
 opends/tests/system-tests/report/result.xsl |   20 +++++++++++++++-----
 1 files changed, 15 insertions(+), 5 deletions(-)

diff --git a/opends/tests/system-tests/report/result.xsl b/opends/tests/system-tests/report/result.xsl
index d1c9884..1ef66d8 100755
--- a/opends/tests/system-tests/report/result.xsl
+++ b/opends/tests/system-tests/report/result.xsl
@@ -24,8 +24,10 @@
  !
  !      Copyright 2008 Sun Microsystems, Inc.
  ! -->
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                xmlns:xlink="http://www.w3.org/1999/xlink"
+                exclude-result-prefixes="xlink"           
+                version="1.0">
 <xsl:output 
   method="html"
   encoding="ISO-8859-1"
@@ -456,7 +458,7 @@
   * <a href="#summary"> Move up to Summary</a>
   <br/>
   * <a onclick="ShowHideListElement('{$phaseName}')">
-    <span class="showLink"> Clic me to show/hide details</span>
+    <span class="showLink"> Click me to show/hide details</span>
   </a>
   <p id="{$phaseName}" style="display: none">
     <ul>
@@ -517,7 +519,7 @@
     </ul>
     
   * <a onclick="ShowHideListElement('{$phaseName}')">
-    <span class="showLink">Clic me to show/hide details</span>
+    <span class="showLink">Click me to show/hide details</span>
   </a><br/>
   * <a href="#summary">Move up to Summary</a>
   </p>
@@ -707,7 +709,15 @@
 
 <!-- ================= Manage message node     ================ -->
 <xsl:template name="displayMessage">
-  <xsl:value-of select="." /> <br/>
+  <xsl:choose>
+    <xsl:when test="@xlink:href">
+      <a href="{@xlink:href}"><xsl:value-of select="." /></a>
+    </xsl:when>
+      <xsl:otherwise>
+        <xsl:value-of select="." />
+      </xsl:otherwise>
+    </xsl:choose>
+   <br/>
   <xsl:call-template name="parseChildPhase" />
 </xsl:template>
 

--
Gitblit v1.10.0