| Subject: RE: Selectively displaying numbers From: mnaughto@xxxxxxxxxxx Date: Tue, 29 Aug 2000 17:29:21 +0100 | 
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
| Current Thread | 
|---|
| 
 | 
| <- Previous | Index | Next -> | 
|---|---|---|
| RE: Selectively displaying numbers, Mickey Bradshaw | Thread | XML _TO_ Spreadsheet??, John Robert Gardner | 
| Re: XML _TO_ Spreadsheet??, Tangi Vass | Date | Re: HELP: value-of question, David Carlisle | 
| Month |