This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: How to assign node value to html attribute
- From: "James Fuller" <james dot fuller at o-idev dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Wed, 26 Jun 2002 17:16:24 +0100
- Subject: Re: [xsl] How to assign node value to html attribute
- Organization: o-iDeveloper ltd.
- References: <F783ednHM3SOlbpH71y00000012@hotmail.com>
- Reply-to: xsl-list at lists dot mulberrytech dot com
uhh
use
<td bgcolor= ' {TBD1/TBDC1}" disable-output-escaping="yes" '> foo </td>
notice the nice curly braces
chow, jim fuller
btw: do u really want to use d-o-e ?
----- Original Message -----
From: "Sunny Bro" <sbv_chris@hotmail.com>
To: <xsl-list@lists.mulberrytech.com>
Sent: Wednesday, June 26, 2002 4:12 PM
Subject: [xsl] How to assign node value to html attribute
> Hello,
> I'm working on a small project for my university and I'd like to use xml
and
> xsl in my servlets so that the presentation logic can be seperated from
the
> business logic. When I tried to assign the value of a node to an html
> attribute (bgcolor) using xsl, I ran into problems.
>
> <td bgcolor= ' <xsl:value-of select="TBD1/TBDC1"
> disable-output-escaping="yes" '> foo </td>
>
> The parser didn't like this and gave the following SAXParseException:
> The value of attribute "bgcolor" must not contain the '<' character.
>
> As this isn't allowed is there a workaround so that i could still make use
> of the color values in the dom or do i have to adulterate the dom by
> embedding the required html at the servlet level.
>
> Thanks a ton,
> Sunny.
>
> _________________________________________________________________
> Join the world's largest e-mail service with MSN Hotmail.
> http://www.hotmail.com
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list