Author: gnichols
Date: 2011-02-15 15:59:28 +0000 (Tue, 15 Feb 2011)
New Revision: 783
Modified:
trunk/test-env/www/cgi/xsl/summary.xsl
Log:
XSLT processing of results.xml prototype
Modified: trunk/test-env/www/cgi/xsl/summary.xsl
===================================================================
--- trunk/test-env/www/cgi/xsl/summary.xsl 2011-02-15 15:58:45 UTC (rev 782)
+++ trunk/test-env/www/cgi/xsl/summary.xsl 2011-02-15 15:59:28 UTC (rev 783)
@@ -40,9 +40,10 @@
<table class="navigation">
<tr><td>See Also:</td>
- <td><a href="v7xml.py?sheet=summary">test summary</a></td>
+ <td><a href="/v7/">Home</a></td>
+ <td><a href="v7xml.py?sheet=summary&content=html">Summary</a></td>
- <td><a href="v7xml.py?sheet=device">device details</a></td>
+ <td><a href="v7xml.py?sheet=device">Devices</a></td>
</tr>
</table>
@@ -73,7 +74,25 @@
<xsl:value-of select="@name"/>
</a>
</td>
- <td><xsl:text disable-output-escaping="yes"><![CDATA[ ]]></xsl:text><xsl:value-of select="@logical-device"/></td>
+ <td>
+ <xsl:text disable-output-escaping="yes"><![CDATA[ ]]></xsl:text>
+ <xsl:if test="@logical-device != ''">
+ <xsl:choose>
+ <xsl:when test="@udi != ''">
+ <a>
+ <xsl:attribute name="href">
+ <xsl:text>v7xml.py?sheet=device&udi=</xsl:text><xsl:value-of select="@udi"/>
+
+ </xsl:attribute>
+ <xsl:value-of select="@logical-device"/>
+ </a>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="@logical-device"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:if>
+ </td>
<xsl:call-template name="runTableRow">
<xsl:with-param name="currentRunNumber" select="1"/>