Added link to the test file
authorPhilippe Le Hégaret <plh@w3.org>
Thu, 20 Nov 2008 21:52:16 +0000
changeset 8 44de7a2f05f1
parent 7 022254d82fbb
child 9 2d791918f67b
Added link to the test file
testsuite/Report/report.xslt
--- a/testsuite/Report/report.xslt	Thu Nov 20 21:31:13 2008 +0000
+++ b/testsuite/Report/report.xslt	Thu Nov 20 21:52:16 2008 +0000
@@ -29,6 +29,7 @@
     </style>
     </head>
     <body>
+      <xsl:variable name='files' select='/files/file'/>
       <xsl:variable name='tests'>
 	<xsl:for-each select='/files/file'>
 	  <xsl:apply-templates select='document(text())' mode='copy'/>
@@ -45,7 +46,14 @@
 </tr>
 </thead>
 <tbody>
-  <xsl:apply-templates select='$tests/tt:tt'/>
+  <xsl:for-each select='$tests/tt:tt'>
+    <xsl:variable name='doc_number' select='position()'/>
+    <xsl:variable name='doc' select='$files[position()=$doc_number]'/>
+    <tr>
+      <th><a href='{concat("../", $doc)}'><xsl:value-of select='tt:head/tt:metadata/ttm:title'/></a></th>
+      <td><xsl:value-of select='tt:head/tt:metadata/ttm:descr'/></td>	
+    </tr>
+  </xsl:for-each>
 </tbody>
 </table>
 
@@ -1249,13 +1257,6 @@
 </html>
     </xsl:template>
 
-    <xsl:template match="tt:tt">
-      <tr>
-	<th><xsl:value-of select='tt:head/tt:metadata/ttm:title'/></th>
-	<td><xsl:value-of select='tt:head/tt:metadata/ttm:descr'/></td>	
-      </tr>
-    </xsl:template>
-
     <xsl:template match="@*|node()">
       <xsl:copy>
 	<xsl:apply-templates select="@*|node()"/>