Click to See Complete Forum and Search --> : XML - Hyper link and image won't display in Firefox?


webdev077
05-13-2007, 02:00 AM
Hello everyone:

I am learing XML. I tried to use embeded html tags in one xml to display Hyper link and an image. The code works in IE7, but in Firefox, the link showed as pure text and image won't display at all.

I did some online search Firefox does support XML. I couldn't figure out what is the cause of my problem. Please look at my code and give me some suggestion. Thanks!


<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet href="image_display.css" type="text/css"?>
<student xmlns:html="http://www.w3.org/TR/REC-html40">
<link><html:a href="http://www.google.com">GOOGLE LINK</html:a></link>
<picture><html:img src="hunter.jpg" width="441" height="600"/></picture>
</student>


webdev077
5-12-07

webdev077
05-16-2007, 02:13 AM
hello everyone:

I found a cure for the issue. I replaced <student xmlns:html="http://www.w3.org/TR/REC-html40"> with new name space
<student xmlns:html="http://www.w3.org/1999/xhtml">

The hyper link and image displaed in Firefox browser. I still not sure what's the root cause for my issue. Maybe due to namespace FF doesn't support http://www.w3.org/TR/REC-html40 type?

webdev077
5-14-07