xsl-list
[Top] [All Lists]

RE: converting empty nodes to col/rowspan values

2004-04-13 14:07:47
-----Original Message-----
From: Reece, Michael Clark [mailto:REECEM(_at_)MAIL(_dot_)ECU(_dot_)EDU]

Hi,

Try:
<xsl:template match="cell[not(.='')]">
      <td colspan="{1+count(following-sibling::cell[.=''])}">
        <xsl:value-of select="."/>
      </td>
</xsl:template>


Hope this helps!

Cheers,

Andreas




<Prev in Thread] Current Thread [Next in Thread>