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

RE: How to assign node value to html attribute

Subject: RE: How to assign node value to html attribute
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Wed, 26 Jun 2002 17:08:32 +0100
html assign value
FAQ: use attribute value templates

<td bgcolor="{TBD1/TBDC1}">foo</td>

You can't use disable-output-escaping here, but that's probably just as
well.

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx 

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Sunny Bro
> Sent: 26 June 2002 16:13
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  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


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.