You must get clear in your mind how the process works:
- You load XML
- You load an XSLT
- The XML is transformed by the XSLT to HTML
At this point the HTML has no knowledge of how it came to be; there's no point creating conditional logic in the XSLT to guide the HTML.
You need to produce the HTML, by hand, that gives you what you want, then go backwards a step and try to produce that given your source XML.
If you show a sample of the image and rollover you want and the relevant portion of the source XML we can probably help.
--
Joe (
Microsoft MVP - XML)