473,383 Members | 1,748 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,383 software developers and data experts.

getting data from XML rendering with XSL

I'm newbie to xml
I have an xml grammer file contain image files, i have to display the contents with an

xsl file.
The issue is when i mouseover the images i need to display the corresponding images from

that xml file which i'm not able to get. I'm giving piece of code of xml and xsl files.Could

u please tell me how can I get that work done

my xml file is like this--------------------------------

Expand|Select|Wrap|Line Numbers
  1.  <solutions name ="infrastructure solutions" 
  2.  
  3. icon="icons_C2/logo_infrastructure.gif" >
  4.  
  5. <Product Name="Automation Documentation Home Page" Icon="icons_C2/home/homelogoCAA.gif"/>
  6.  
  7. <Product Name=" Infrastructure User Guide" Icon="icons_C2/home/homelogobas.gif"/>
  8.  
  9. <Product Name="Product Structure" Icon="icons_C2/home/homelogopst.gif"/> 
  10.  
  11. <Product Name="Real Time Rendering" Icon="icons_C2/home/homelogort1.gif"/>
  12. </solutions>
  13.  
  14. <solutions name =" ..............">
  15. </solutions>
  16.  
XSL code for this is

Expand|Select|Wrap|Line Numbers
  1.  <xsl:for-each select="Home/solutions"> 
  2. <tr>
  3. <td><img src="{@icon}" name="{@name}" onmouseover='<xsl:for-each select="Product"/>
  4. <td><img src="{@Icon}"/></td>
  5. </xsl:for-each>;'/></td>
  6. </tr>
  7. </xsl:for-each> 
  8.  


this way or write a javascript function which will do the similar functionality of xsl

transolation(xsl transolation in javascript method is not possible)

Expand|Select|Wrap|Line Numbers
  1.  <xsl:for-each select="Home/solutions"> 
  2. <tr>
  3. <td><img src="{@icon}" name="{@name}" onmouseover='iconVisible()'/> </td>
  4. </tr>
  5.  
  6.  
  7. </xsl:for-each>    
  8.  
  9. <script language="Javascript"
  10. function iconVisible()
  11. {
  12.  
  13. <tr>
  14. <xsl:for-each select="Home/solutions/Product">
  15. <td><img src="{@Icon}"/></td>
  16. </xsl:for-each>
  17. </tr>
  18.  
  19. </script>
  20. -->
  21. }
  22.  
I need to display all the solution icons on the left handside.
When I mouseover those icons i need to display corresponding product icons.
Similarly on mouseout icons should be hidden.
Thanks in advance.
Jan 5 '06 #1
1 2450
Niheel
2,460 Expert Mod 2GB
Moved thread from "Lounge" to "Programming Help". Try to post new topics in relevant forums.
Jan 5 '06 #2

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

Similar topics

6
by: David Opstad | last post by:
I have a question about text rendering I'm hoping someone here can answer. Is there a way of doing linguistically correct rendering of Unicode strings in Python? In simple cases like Latin or...
5
by: Brandons of mass destruction | last post by:
Ok, I work for a small newspaper thats looking to translate our content to the web. XML sounds like a good way to do this, but i'm a little confused. Is it possible to have <b> and <i> tags in...
9
by: Wayfarer | last post by:
Hi, I've been developing in Firebird, so I didn't notice this until today. When I use the <q> tag, IE 6 doesn't put quotes around the quotation. I tried specifically doing it in a stylesheet: ...
2
by: Colin McGuigan | last post by:
This is a translation of an ASP page to ASP.Net. First, the background: The goal is to have a grid of different settings for the application -- think something along the lines of the Property...
9
by: JohnH. | last post by:
I'm looking for general advice on how to approach an application. I want to develop a freeware program that will plot out the positions of about 300,000 stars near earth. This will be a 3D plot...
3
by: Harry Whitehouse | last post by:
Hi! Today I coded a small ASPNET page which accepts a 5 digit ZIP code and will return all the street names in that ZIP code. You can try it out here: ...
0
by: Juan R. | last post by:
Since the idea of encoding mathematics using MathML is being very far from popular due to a number of factors -expensive tools, bad accesibility of generated code, unusual verbosity, lack of...
10
by: crazycooter | last post by:
I found an old thread on this (http://groups.google.com/group/alt.php/ browse_thread/thread/751edb9c723316c4/ea9bf92a9c6b807c?lnk=gst&q=mail() +duplicate&rnum=7#ea9bf92a9c6b807c), but there didnt...
2
by: Simon | last post by:
Hi, I have a table I am populating with data from a DB, and have it sortable on the client side. When the table exceeds around 300 rows, I start running into problems with rendering and sorting...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.