View Full Version : displaying xml in firefox

12 Sep 2005, 06:15 PM
I hope someone can help me on this. I am still learning XML. I am building a product availability catalog page. It's very basic. I am using an external XML file to store the data and I'm trying to import this into HTML. Now, in IE I have no problems. I can view the data. But in Firefox I cannot. Here is my "proof on concept" page: http://www.grfxlab.net/xml/proof.html. The XML file is http://www.grfxlab.net/xml/proof.xml, and there is a CSS file http://www.grfxlab.net/xml/proof.css. How can I get this to display in Firefox?

13 Sep 2005, 03:41 PM
I've been reading about XML for a while now, but I'm a little confused as to what you've tried to do here. I understand that you've got the raw data stored in an XML file, and you want that data to be displayed in an HTML page.

The way you would do this is by using XSL (eXtensible Stylesheet Language). XSL is divided into two groups: XSLT (Transformations) and XSL-FO (Formatting Objects). XSLT is what you use to turn one XML document into another, in this case, you want it to turn your XML data document into HTML (or XHTML really).

What XSLT does is use template rules to turn your XML code into XHTML code that can be styled by your stylesheet and displayed by your browser. There is more information about XML and XSLT over at the W3C website: HERE (http://www.w3schools.com/xsl/).

Hope that helps a bit.