|
Subject: Re: [xsl] Variables in HTML tags From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx> Date: Sat, 16 Feb 2002 08:00:17 +0000 |
Hi Noam,
> The problem is in the last line. The CellColor variable is not
> replaced by the value of the variable. Rather, I just get the string
> "$GetColor".
You've just forgotten the {}s to make it an attribute value template:
<td bgcolor="{$CellColor}" colspan="2">
Most attribute values are interpreted literally. It's only if you
include {}s that the XSLT processor knows that it's supposed to
evaluate whatever you put in the attribute value rather than simply
give the expression as the attribute value.
Cheers,
Jeni
---
Jeni Tennison
http://www.jenitennison.com/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] Variables in HTML tags, noam | Thread | RE: [xsl] Variables in HTML tags, Michael Kay |
| [xsl] Variables in HTML tags, noam | Date | Re: [xsl] How to access to a node c, Jeni Tennison |
| Month |