RE: [xsl] Xsl colour attributes.

Subject: RE: [xsl] Xsl colour attributes.
From: "Chris Bayes" <Chris@xxxxxxxxxxx>
Date: Tue, 22 May 2001 02:24:08 +0100
Daniel,
I don't think you need to use JavaScript to do this. If you do and it is
simple document.writelines then don't put it in a cdata section.
You might want to look at
http://www.bayes.co.uk/xml/index.xml?/xml/tutorial/gradients.xml
it uses <div but that could easily be a table and <tds

Ciao Chris

XML/XSL Portal
http://www.bayes.co.uk/xml


>-----Original Message-----
>From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
>[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Daniel
>Rodriguez
>Sent: 22 May 2001 01:47
>To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
>Subject: Re: [xsl] Xsl colour attributes.
>
>
>That's not the code I'm using, I thought I'd save everyone the
>trouble of looking through many lines of code and show basically
>what I want. All I want to do is make a javascript that will draw
>these patterns with differenet color fields.
>
>document.writeln("<xsl:attribute name='bgcolor'><xsl:value-of
>select='$fgcolor' /></xsl:attribute>")
>
>I'm trying to create color patterns with table data fields is a
>style sheet. I need to embed by come with <![CDATA[[]> tags so
>that it runs in my application. The problem is that the colour
>attributes don't get recognized.
>Thanks
>Daniel
>
>
>
>
>---------- Original Message ----------------------------------
>From: Alex Black <enigma@xxxxxxxxxxxxxxxx>
>Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
>Date: Mon, 21 May 2001 17:32:43 -0700
>
>>> Daniel,
>>> That has to be the weirdest bit of code I have ever seen.
>>> What is wrong with
>>> ....
>>> No! I can't even begin to imagine what you expect to happen here.
>>>
>>> I nominate this bit of code to the LFAQ/MBAQ
>>>
>>> Can you explain it a bit more.
>>
>>I was going to write that but decided I didn't have enough xslt
>seniority to
>>say it :)
>>
>>ok daniel:
>>
>>    -a: you cannot embed xslt tags in cdata and expect them to be
>processed
>>    -also, you are not inside an element because you're within javascript.
>>
>>you need to create variables for your colors, and key them in:
>>
>><table color="{$color1}"> etc.
>>
>>_a
>>
>>
>>--
>>alex black, ceo
>>enigma@xxxxxxxxxxxxxxxx
>>
>>the turing studio, inc.
>>http://www.turingstudio.com
>>
>>vox+510.666.0074
>>fax+510.666.0093
>>
>>
>>
>> XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>>
>>
>
> 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