Jump to content
  • Advertisement
Sign in to follow this  
manuelb

xml & XSLT report

This topic is 4731 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
Advertisement
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  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!