outputting values instead of applying formatting

Subject: outputting values instead of applying formatting
From: "alex chang" <shortestpath@xxxxxxxxxxx>
Date: Sun, 11 Jun 2000 23:15:35 EDT
Hi, I'm experimenting with xml and xsl and....

My testTable.xml looks like this:

<?xml version="1.0" ?>
<?xml:stylesheet type="text/xsl" href="aTable.xsl"?>

and my testTable.xsl looks like this:

<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="1.0">

<xsl:template match="/">
 <xsl:apply-templates />

<xsl:template match="grid">
   <xsl:attribute name="BGCOLOR">#003399</xsl:attribute>
   <xsl:attribute name="style">color: white;</xsl:attribute>
   My Title


I bring up testTable.xml in IE5 and get:

#003399 color: white; My Title

... which is what I didn't expect.

However, if I change the <TD> in my testTable.xsl to this:

<TD BGCOLOR="#003399" style="color: white;">My Title</TD>

I get what I want, the words My Title in white and the td background blue. Can someone explain to me why the first thing I tried didn't work?

Thanks in advance,
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list

Current Thread