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--------------------------------
- <solutions name ="infrastructure solutions"
-
-
icon="icons_C2/logo_infrastructure.gif" >
-
-
<Product Name="Automation Documentation Home Page" Icon="icons_C2/home/homelogoCAA.gif"/>
-
-
<Product Name=" Infrastructure User Guide" Icon="icons_C2/home/homelogobas.gif"/>
-
-
<Product Name="Product Structure" Icon="icons_C2/home/homelogopst.gif"/>
-
-
<Product Name="Real Time Rendering" Icon="icons_C2/home/homelogort1.gif"/>
-
</solutions>
-
-
<solutions name =" ..............">
-
</solutions>
-
XSL code for this is
- <xsl:for-each select="Home/solutions">
-
<tr>
-
<td><img src="{@icon}" name="{@name}" onmouseover='<xsl:for-each select="Product"/>
-
<td><img src="{@Icon}"/></td>
-
</xsl:for-each>;'/></td>
-
</tr>
-
</xsl:for-each>
-
this way or write a javascript function which will do the similar functionality of xsl
transolation(xsl transolation in javascript method is not possible)
- <xsl:for-each select="Home/solutions">
-
<tr>
-
<td><img src="{@icon}" name="{@name}" onmouseover='iconVisible()'/> </td>
-
</tr>
-
-
-
</xsl:for-each>
-
-
<script language="Javascript"
-
function iconVisible()
-
{
-
-
<tr>
-
<xsl:for-each select="Home/solutions/Product">
-
<td><img src="{@Icon}"/></td>
-
</xsl:for-each>
-
</tr>
-
-
</script>
-
-->
-
}
-
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.