[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Background color problem with dynamic XSL transfor

Subject: RE: Background color problem with dynamic XSL transformations
From: Bedwell Tom <Tom.Bedwell@xxxxxxx>
Date: Mon, 16 Jul 2001 09:08:48 +0100
xml background color problem

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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.