From bc04df0f692c2fc74451cd9fbe7e4141cdf3a1c1 Mon Sep 17 00:00:00 2001
From: andrug <andrug@localhost>
Date: Wed, 07 May 2008 15:44:20 +0000
Subject: [PATCH] allow xsl to manage instance and step sml nodes

---
 opendj-sdk/opends/tests/system-tests/report/clientDetails.xsl |   27 +++++++++++++++++++++++++--
 1 files changed, 25 insertions(+), 2 deletions(-)

diff --git a/opendj-sdk/opends/tests/system-tests/report/clientDetails.xsl b/opendj-sdk/opends/tests/system-tests/report/clientDetails.xsl
index dec2607..70a5edf 100644
--- a/opendj-sdk/opends/tests/system-tests/report/clientDetails.xsl
+++ b/opendj-sdk/opends/tests/system-tests/report/clientDetails.xsl
@@ -17,25 +17,48 @@
       ( id <xsl:value-of select="@id" /> )
     </h1>
     <p>
-      <ul>
+      <xsl:apply-templates select="instance"/>
       <xsl:apply-templates select="operation"/>
-      </ul>
       <xsl:apply-templates select="message"/>
     </p>
     </body>
     </html>
   </xsl:template>
 
+  <!-- ============= instance node =============== -->
+  <xsl:template match="instance">
+    <xsl:variable name="iName" select="normalize-space(@name)"/>
+    <ul><li>
+      Instance <font color="blue"><b><xsl:value-of select="$iName"/></b></font>
+      <xsl:apply-templates select="step"/>
+      <xsl:apply-templates select="operation"/>
+    </li></ul>
+    <xsl:apply-templates select="message"/>
+  </xsl:template>
+
+  <!-- ============= step node =============== -->
+  <xsl:template match="step">
+    <xsl:variable name="sName" select="normalize-space(@name)"/>
+    <ul><li>
+      Step <b><xsl:value-of select="$sName"/></b><br/>
+      <xsl:apply-templates select="message"/>
+      <xsl:apply-templates select="operation"/>
+    </li></ul>
+  </xsl:template>
+
   <!-- ============= operation node =============== -->
   <xsl:template match="operation">
     <xsl:variable name="opName" select="normalize-space(@name)"/>
     <xsl:variable name="opDate" select="normalize-space(@date)"/>
+    <ul>
     <li>
       <b><xsl:value-of select="$opName"/></b>
          <i>@ <xsl:value-of select="$opDate"/></i><br/>
       <xsl:apply-templates select="message"/>
+      <xsl:apply-templates select="operation"/>
       <xsl:apply-templates select="operationResult"/>
     </li>
+    </ul>
   </xsl:template>
 
 

--
Gitblit v1.10.0