I had hoped to do something like this, but can someone tell me the
proper way to do this
<xsl:choose>
<xsl:when test="cvs2cl:author='op'">
<td bgcolor='xxxx'>
</xsl:when>
<xsl:otherwise>
<td>
</xsl:otherwise>
</xsl:choose>
-----------------------------------
..................
<xsl:for-each select="cvs2cl:entry">
<tr>
<td>
<xsl:value-of select="cvs2cl:date"/>
</td>
<td> <---- Looking to have code change this <td> tag
<xsl:value-of select="cvs2cl:author"/>
</td>
<td>
<xsl:for-each select="cvs2cl:file">
<table>
<tr>
<td>
<xsl:value-of select="cvs2cl:name"/>
<xsl:text> - v</xsl:text>
<xsl:value-of select="cvs2cl:revision"/>
</td>
</tr>
</table>
</xsl:for-each>
</td>
<td>
<xsl:value-of select="cvs2cl:msg"/>
</td>
</tr>
</xsl:for-each>
...............
---------------------------------------
> I had hoped to do something like this, but can someone tell me the
> proper way to do this
>
> <xsl:choose>
> <xsl:when test="cvs2cl:author='op'">
> <td bgcolor='xxxx'>
> </xsl:when>
> <xsl:otherwise>
> <td>
> </xsl:otherwise>
> </xsl:choose>
So you want the td element in any case and then you want to
conditionally add the attribute:
<td>
<xsl:if test="...">
<xsl:attribute name="bgcolor">xxxx</xsl:attribute>
</xsl:if>
...
</td>
--
Martin Honnen --- MVP XML
http://msmvps.com/blogs/martin_honnen/