Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
| Search | Today's Posts | Mark Forums Read
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old February 18th, 2007, 09:54 AM
Authorized User
Points: 235, Level: 4
Points: 235, Level: 4 Points: 235, Level: 4 Points: 235, Level: 4
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2007
Location: , , .
Posts: 51
Thanks: 3
Thanked 0 Times in 0 Posts
Default Problem with <span> tag

Hello,
I am trying to use <span> to create dynamic hovering test when mouse-overing list items. In general I get it to work when I use:


<li>
<span title="FLOATING TEXT HERE">
<xsl:value-of select="substring-after(@xsi:type, ':')"/>: <xsl:value-of select="@name"/>
</span>
</li>

The problem is that I cannot figure out how, in the title=, I can submit a node attribute, or a param or variable. Any help is greatly appreciated. Thanks

  #2 (permalink)  
Old February 18th, 2007, 11:05 AM
Friend of Wrox
Points: 1,676, Level: 16
Points: 1,676, Level: 16 Points: 1,676, Level: 16 Points: 1,676, Level: 16
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2006
Location: , , .
Posts: 430
Thanks: 28
Thanked 5 Times in 5 Posts
Send a message via Yahoo to bonekrusher
Default

Code:
<li>
<span title="{attribute-here}">
<xsl:value-of select="substring-after(@xsi:type, ':')"/>: <xsl:value-of select="@name"/>
</span>
</li>
You can use curly brackets....



  #3 (permalink)  
Old February 18th, 2007, 03:48 PM
Authorized User
Points: 235, Level: 4
Points: 235, Level: 4 Points: 235, Level: 4 Points: 235, Level: 4
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2007
Location: , , .
Posts: 51
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Thanks, that works peachie!



Similar Threads
Thread Thread Starter Forum Replies Last Post
<img Tag problem> sen321x .NET Framework 2.0 1 October 30th, 2007 07:47 AM
problem while using <logic:iterate> tag be_sandip Struts 4 April 26th, 2007 11:27 PM
<a> tag in XML sani723 XSLT 5 March 27th, 2007 04:16 AM
problem while using <logic:iterate> tag be_sandip BOOK: Professional Jakarta Struts 0 November 13th, 2006 08:05 AM
a problem in book<<beginning asp.net using vb>> luoware ASP.NET 1.0 and 1.1 Basics 3 December 8th, 2003 09:32 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.