Sign in to follow this  

xml & XSLT report

This topic is 4482 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I'm doing a report (C# vosual studio.net 2003), winforms application, using xml and xslt. It's a html report. Some colors of the tables' backgroud have to be dynamic, acording to information on the XML. My xslt is not dynamic, it's embedded in the resource. I tried to do this follish thing <TD bgColor= <xsl:value-of select="cor"/> rowSpan="1"> and of couse it dind't work. Is there any way to do this without having to do dynamic xslt? Than'k a lot.

Share this post


Link to post
Share on other sites
IIRC, you have to use xsl:attribute for this.


<TD rowSpan="1">
<xsl:attribute name="bgColor">
<xsl:value-of select="cor" />
</xsl:attribute>

...

</TD>

Share this post


Link to post
Share on other sites
Quote:
Original post by SamLowry
IIRC, you have to use xsl:attribute for this.


<TD rowSpan="1">
<xsl:attribute name="bgColor">
<xsl:value-of select="cor" />
</xsl:attribute>

...

</TD>

mmm... I'd never found any utility for atributes, but now I know why they exist.
Thank's a lot, and rate++.

Share this post


Link to post
Share on other sites
Sign in to follow this