[xsl] Problem substituting a value in the bgcolor attribute of the body tag

Subject: [xsl] Problem substituting a value in the bgcolor attribute of the body tag
From: Bruce Perryman <bperryman_us@xxxxxxxxx>
Date: Wed, 10 Dec 2003 12:57:57 -0800 (PST)
Hello,

Can you clear up a question for me?

I'm using the cocoon development framework which
returns to me the value of a session variable with the
following syntax:

 <session:getxml context="usrstuff" path="/bcolr"/>

I want to substitute this value into the body tag in
my stylesheet. To do this I use the following syntax:

<html>
 <body>
   <xsl:attribute name="bgcolor">
     <session:getxml context="usrstuff"
path="/bcolr"/>
   </xsl:attribue>
 </body>
</html>

This yields:
<html>
 <body bgcolor=""/>
</html>

I added an additional 

<bc>
 <session:getxml context="usrstuff" path="/bcolr"/>
</bc>

tag and session request before the above body tag just
to see what would happen. The result was:

<html>
 <bc>
   blue
 </bc>
 <body bgcolor=""/>
</html>

Can you please explain to me why the value is not
substituted in the bgcolor attribute? I tried using
"normalize-space()" to see if it was a spacing issue,
but "normalize-space(" was substituted into the
attribute.

Thank you.

__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread