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

RE: Xsl colour attributes.

Subject: RE: Xsl colour attributes.
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Tue, 22 May 2001 10:35:50 +0100
xsl colours
You are very confused. If you generate <script>, that's part of the target
HTML page. Within that script you've got a literal, and within that literal
you've got <xsl:attribute>. You seem to be expecting the <xsl:attribute>
instruction to execute at run-time, when the script executes. In fact it
will execute at transformation time, when generating the HTML, and will
produce an error because there is no element to attach the attribute to.

Mike Kay
Software AG

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Daniel
> Rodriguez
> Sent: 22 May 2001 00:27
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  Xsl colour attributes.
>
>
> I'm trying to contstruct dynamic atbles is a stylesheet using
> javascript. I can get this to work, the problem is that when
> I try to set the colour attribute for the table or data
> fields within it, it doesn't work. Here is a sample bit of
> code I'm trying to get to work.
>
> <body scroll = "auto" leftmargin="0" topmargin="0"
> rightmargin="0" bottommargin="0">
> <SCRIPT>
> <![CDATA[
> document.writeln("<table cellpadding='0' cellspacing='0'
> border='0' width='100%' height='100%'>")
> document.writeln("<tr>")
> document.writeln("<td>")
> document.writeln("<xsl:attribute name='bgcolor'><xsl:value-of
> select='$fgcolor' /></xsl:attribute>")
> document.writeln("blah blah ")
> document.writeln("</td>")
> document.writeln("</tr>")
> document.writeln("</table>")
> ]]>
> </SCRIPT>
>
> </body>
>
> The table gets drawn, blah blah gets put in, but the table
> will not display any colours.
> Any ideas anyone.
> Thanks
> Daniel
>
>
>  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.