This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Background color problem with dynamic XSL transformations
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Background color problem with dynamic XSL transformations
- From: Bedwell Tom <Tom dot Bedwell at icl dot com>
- Date: Mon, 16 Jul 2001 09:08:48 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
The problem is that the background color does not come through correctly in
either IE or Netscape. Silver comes through as white. This problem occurs
only if the page is generated dynamically. Static pages show the correct
color. Has anyone else seen this behavior? Is there any way to fix it? I
have checked the generated HTML output, and it looks correct.
Are there any sprious new lines in your generated HTML?
For example
<body>
<xsl:attribute name="bgcolor">
Silver
</xsl:attribute>
generates this
<body bgcolor="
Silver
">
This confuses IE so it displays unexpected colours.
Reformatting the XSLT as follows should work
<xsl:attribute name="bgcolor">silver</xsl:attribute>
Tom
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list