dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #15089
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 5311: subway cleaning
------------------------------------------------------------
revno: 5311
committer: Jo Størset <storset@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2011-12-06 18:38:17 +0100
message:
subway cleaning
modified:
dhis-2/dhis-web/dhis-web-api/src/main/resources/templates/xslt/map.xsl
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-api/src/main/resources/templates/xslt/map.xsl'
--- dhis-2/dhis-web/dhis-web-api/src/main/resources/templates/xslt/map.xsl 2011-12-06 15:53:31 +0000
+++ dhis-2/dhis-web/dhis-web-api/src/main/resources/templates/xslt/map.xsl 2011-12-06 17:38:17 +0000
@@ -4,15 +4,23 @@
<xsl:template match="d:map">
<div class="map">
- <h2>Map: <xsl:value-of select="@name"/></h2>
+ <h2><xsl:value-of select="@name"/></h2>
<a href="{@link}.png"><img src="{@link}.png" style="border-style:solid; border-width: 1px; padding: 5px;" /></a>
+ <h3>Details</h3>
+
<table border="1">
<xsl:for-each select="attribute::*">
<tr><td><xsl:value-of select="local-name()"/></td><td><xsl:value-of select="."/></td></tr>
</xsl:for-each>
<xsl:for-each select="child::*">
- <tr><td><xsl:value-of select="local-name()"/></td><td><xsl:value-of select="@name"/></td></tr>
+ <tr><td><xsl:value-of select="local-name()"/></td><td>
+ <xsl:choose>
+ <xsl:when test="@name"><a href="{@link}"><xsl:value-of select="@name"/></a>
+ </xsl:when>
+ <xsl:otherwise><xsl:value-of select="."/></xsl:otherwise>
+ </xsl:choose>
+ </td></tr>
</xsl:for-each>
</table>
</div>