[Yanel-commits] rev 22383 - in public/yanel/trunk/src/realms/test/yanel: data/xslt rti

josias at wyona.com josias at wyona.com
Fri Feb 2 10:50:18 CET 2007


Author: josias
Date: 2007-02-02 10:50:16 +0100 (Fri, 02 Feb 2007)
New Revision: 22383

Added:
   public/yanel/trunk/src/realms/test/yanel/data/xslt/results-archive.xsl
Modified:
   public/yanel/trunk/src/realms/test/yanel/data/xslt/global.xsl
   public/yanel/trunk/src/realms/test/yanel/rti/test-results-archive.yanel-rti
Log:
added menu entry to see the old test results. fixes bug #5161, thanks to simon

Modified: public/yanel/trunk/src/realms/test/yanel/data/xslt/global.xsl
===================================================================
--- public/yanel/trunk/src/realms/test/yanel/data/xslt/global.xsl	2007-02-02 09:48:45 UTC (rev 22382)
+++ public/yanel/trunk/src/realms/test/yanel/data/xslt/global.xsl	2007-02-02 09:50:16 UTC (rev 22383)
@@ -86,6 +86,7 @@
   <xsl:template name="navigation">
     <b><a href="{$yarep.back2realm}">Testing</a></b>
     <br/> &#160;<a href="{$yarep.back2realm}testing-control.html">Testing&#160;Control</a>
+    <br/> &#160;<a href="{$yarep.back2realm}test-results-archive/">Test&#160;Results&#160;Archive</a>
     <br/> &#160;<a href="{$yarep.back2realm}testing-times.html">Time&#160;Analyze</a>
     <br/> &#160;<a href="{$yarep.back2realm}use-cases.html">Use&#160;Cases</a>
     <br/>

Added: public/yanel/trunk/src/realms/test/yanel/data/xslt/results-archive.xsl
===================================================================
--- public/yanel/trunk/src/realms/test/yanel/data/xslt/results-archive.xsl	2007-02-02 09:48:45 UTC (rev 22382)
+++ public/yanel/trunk/src/realms/test/yanel/data/xslt/results-archive.xsl	2007-02-02 09:50:16 UTC (rev 22383)
@@ -0,0 +1,27 @@
+<?xml version="1.0"?>
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+  xmlns="http://www.w3.org/1999/xhtml"
+  xmlns:xhtml="http://www.w3.org/1999/xhtml"
+  xmlns:dir="http://apache.org/cocoon/directory/2.0" xmlns:yanel="http://www.wyona.org/yanel/resource/directory/1.0">
+  <xsl:output method="xhtml"/>
+  <xsl:template match="/">
+    <html xmlns="http://www.w3.org/1999/xhtml">
+      <head>
+        <title>Results Archive</title>
+      </head>
+      <body>
+          <h1>Test Results Archive:</h1>
+        <p>
+          <xsl:apply-templates select="//xhtml:a[@title='file']"/>
+        </p>
+      </body>
+    </html>
+  </xsl:template>
+  <xsl:template match="xhtml:a[@title='file']"> 
+    Test: 
+    <a href="../testing-control.html?archived-results={.}">
+      <xsl:value-of select="substring-before(@href,'-test')"/>
+    </a>
+    <br/>
+  </xsl:template>
+</xsl:stylesheet>


Property changes on: public/yanel/trunk/src/realms/test/yanel/data/xslt/results-archive.xsl
___________________________________________________________________
Name: svn:eol-style
   + native

Modified: public/yanel/trunk/src/realms/test/yanel/rti/test-results-archive.yanel-rti
===================================================================
--- public/yanel/trunk/src/realms/test/yanel/rti/test-results-archive.yanel-rti	2007-02-02 09:48:45 UTC (rev 22382)
+++ public/yanel/trunk/src/realms/test/yanel/rti/test-results-archive.yanel-rti	2007-02-02 09:50:16 UTC (rev 22383)
@@ -1 +1,2 @@
 <{http://www.wyona.org/yanel/resource/1.0}directory/>
+xslt:/xslt/results-archive.xsl,/xslt/global.xsl




More information about the Yanel-commits mailing list