Thursday, March 1, 2007

Information from Data

In CCNet results when displaying a table of data only display the cell if it's different to the cell above.

For example in the modifications.xsl of cc.net's webdashboard you could write:

<td class="section-data" valign="top">
<xsl:choose>
<xsl:when test="preceding-sibling::modification[1]/comment=comment"></xsl:when>
<xsl:otherwise>
<xsl:value-of select="comment"/>
</xsl:otherwise>
</xsl:choose>
</td>

to not repeat the comments for each file.

No comments: