473,406 Members | 2,710 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Set Div ID value = ttip_<xsl:value-of select='@name' />

200 100+
Hi, I'm using this HTML code to set my tooltip.

I get it working in HTML then i incorporated it in xslt.
I got it to work for only the first field value then i realized i was not changing the "DIV ID" value to point to the ttip_<xsl:value-of select='@name' />

This is the HTML example:

Expand|Select|Wrap|Line Numbers
  1. <a href="http://www.dynamicdrive.com/style/" rel="balloon1">??</a> 
  2. <div id="balloon1" class="balloonstyle">Test</div> 
  3.  
The rel="balloon1" is equal to the div id="balloon1"
I get the Rel in the xslt going but can't connect with the DIV ID as it moans about the code in bold!

Expand|Select|Wrap|Line Numbers
  1. <a> 
  2. <xsl:attribute name='href'>ajax.htm</xsl:attribute> 
  3. <xsl:attribute name='rel'>ttip_<xsl:value-of select='@name' /></xsl:attribute>?? 
  4. </a> 
  5.  
  6. <div id="ttip_<xsl:value-of select='@name'/>"  class="balloonstyle"> 
  7. <xsl:value-of select="Tooltip" /> 
  8. </div> 
  9.  
  10.  
Please Assist!
Jan 15 '08 #1
2 4402
jkmyoung
2,057 Expert 2GB
Expand|Select|Wrap|Line Numbers
  1. <div class="baloonstyle">
  2.   <xsl:attribute name="id"><xsl:value-of select="@name"/></xsl:attribute>
  3.  
Another possible way, but does not work for all programs:
Expand|Select|Wrap|Line Numbers
  1. <div id="ttip_{@name}'/>" class="balloonstyle"> 
  2.  
Better improvement on the previous:
Expand|Select|Wrap|Line Numbers
  1. <div id="{concat('ttip_',@name)}" class="balloonstyle"> 
  2.  
Jan 15 '08 #2
ismailc
200 100+
Thank You very much - Great stuff !!!

My search to fix the tooltip has come to an end:

i have no experience in xslt - just recently started looking into making changes to the file. As I'm coding in Flowcentric which uses xslt as stylesheet & users wanted changes to the app. So i started playing with the xslt file.

This did solve my problem to fix the tooltip!

<a href="ajax.htm" rel="ttip_<xsl:value-of select='@name' /><a>

<div id="{concat('ttip_',@name)}" class="balloonstyle">
<xsl:value-of select="Tooltip" />
</div>


Thank You for your kindness & patience!!!

Regards
Jan 16 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Figo 775 | last post by:
Hi, I have an xml document which is as below: <?xml version="1.0" encoding="UTF-8"?> <fragment name="htmlPart"> <value>&lt;table&gt; &lt;tr&gt;&lt;td&gt;&lt;b&gt;Feature&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;b &gt;Benefit&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;...
1
by: Slav | last post by:
Hi, I trying to process an XML file using a XSL but am getting a Sablotron error ("...mismatched tag") when I entered an accented letter such as "é". I tried to play around with the encoding...
4
by: Invalidlastname | last post by:
Hi, I have an XML document, created from ADO DataSet, which contains XML data in some nodes shown below: <NewDataSet> <Table> <field_name>My Selection</field_name>...
4
by: dwa | last post by:
Is it legal to use a parameter in a <template match> ? If I do the following: <xsl:template match="/ContentRoot/Content/Categories/Category"> ....everything works as expected. But if I...
8
by: ajc308 | last post by:
I am using C# to transform an XML document which actually outputs another XML document using XslCompiledTransform and an XmlTextWriter. The code I am using is: XslCompiledTransform myXslTrans...
3
by: go4gator | last post by:
I'm a newbie, and I have an XML data file with Book data. I'm trying to replace a value with a string. Specifically trying to test for "if value is less than 5.00 than replace value with the string...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.