This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Selectively displaying numbers
- To: xsl-list at mulberrytech dot com
- Subject: RE: Selectively displaying numbers
- From: mnaughto at amadeus dot net
- Date: Tue, 29 Aug 2000 17:29:21 +0100
- Reply-To: xsl-list at mulberrytech dot com
Mickey Bradshaw has done all the hard work:
<xsl:choose>
<xsl:when test="@lineID mod 5 = 0">
<td>
<xsl:value-of select="@lineID"/>
</td>
</xsl:when>
<xsl:otherwise>
<td></td>
</xsl:otherwise>
<xsl:choose>
As a minor enhancement, if your table has borders or a
background, you may consider inserting a non-breaking
space ( ) when you do not output a line number:
<xsl:choose>
<xsl:when test="@lineID mod 5 = 0">
<td>
<xsl:value-of select="@lineID"/>
</td>
</xsl:when>
<xsl:otherwise>
<td> </td>
</xsl:otherwise>
<xsl:choose>
Martin
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list