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

Problem substituting a value in the bgcolor attribute

Subject: 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)
session getxml
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

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.