Go Back   CodingForums.com > :: Client side development > XML

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-18-2003, 08:02 PM   PM User | #1
zduck
New Coder

 
Join Date: Aug 2002
Location: Tulsa, OK
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
zduck is an unknown quantity at this point
<xsl:value-of> problem in attributes

Here is what I'm trying to get to work in an XSL stylesheet.

<element attribute="<xsl:value-of select="whatever">"/>

it doesn't work but its what I need done. any help would be appreciated.

-Joshua David
zduck is offline   Reply With Quote
Old 01-18-2003, 08:42 PM   PM User | #2
jkd
Senior Coder

 
jkd's Avatar
 
Join Date: May 2002
Location: metro DC
Posts: 3,163
Thanks: 1
Thanked 18 Times in 18 Posts
jkd will become famous soon enough
<element attribute="{whatever}"/>
__________________
jasonkarldavis.com
jkd is offline   Reply With Quote
Old 01-18-2003, 08:48 PM   PM User | #3
zduck
New Coder

 
Join Date: Aug 2002
Location: Tulsa, OK
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
zduck is an unknown quantity at this point
thanks

thanks i figured it out. here's how I did it if anyone else has this problem.


<element>
<xsl:attribute name="attribute">
<xsl:value-of select=""/>
</xsl:attribute>
</element>

RETURNS:-------------

<element attribute="">
zduck is offline   Reply With Quote
Old 01-18-2003, 08:58 PM   PM User | #4
jkd
Senior Coder

 
jkd's Avatar
 
Join Date: May 2002
Location: metro DC
Posts: 3,163
Thanks: 1
Thanked 18 Times in 18 Posts
jkd will become famous soon enough
What I showed is a syntactic shortcut for exactly the same thing. Just put the XPath selector in between {} inside the attribute value.
__________________
jasonkarldavis.com
jkd is offline   Reply With Quote
Old 01-18-2003, 09:01 PM   PM User | #5
zduck
New Coder

 
Join Date: Aug 2002
Location: Tulsa, OK
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
zduck is an unknown quantity at this point
okay thanks. that is easier
zduck is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:18 PM.


Advertisement
Log in to turn off these ads.