assets/index.xsl in cobench-0.0.39 vs assets/index.xsl in cobench-0.0.40
- old
+ new
@@ -332,18 +332,28 @@
</xsl:for-each>
</td>
</tr>
</xsl:template>
<xsl:template match="m">
+ <xsl:variable name="value">
+ <xsl:choose>
+ <xsl:when test="@hideZero and .='0'">
+ <!-- nothing -->
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="."/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
<xsl:variable name="body">
<xsl:choose>
<xsl:when test="@href">
<a href="{@href}">
- <xsl:value-of select="."/>
+ <xsl:value-of select="$value"/>
</a>
</xsl:when>
<xsl:otherwise>
- <xsl:value-of select="."/>
+ <xsl:value-of select="$value"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<td class="num">
<xsl:choose>