Will this simple code work in Firefox? it does work in IE6

admin

Administrator
Staff member
Hi,

I have a query in regards to some code i've been trying to display data in a table. I can get the site to display the data in the table using Internet Explorer 6 however in Firefox 1 it woint display? :confused:

I have read that Netscape 6 and 7 don't support xml - is this true.

Is there anything I can do to alter the code so it works in both browsers'?

The code is:


<xml id="produce" src=http://www.webdeveloper.com/forum/archive/index.php/"../xml/produce.xml"></xml>

<table align="center" style="width: 500px;" datasrc="#produce" border="1" cellpadding="3" cellspacing="2" summary="Joe's Product Listing">
<thead>
<th>Item</th>
<th>Price</th>
</tr>
<thead> <tbody>
<tr>
<td><span datafld="item"></span></td>
<td><span datafld="price"></span></td>
<tr>
</tbody>
</table>

and this is linked to a xml file which contains the data:

<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- <?xml-stylesheet type="text/css" href=http://www.webdeveloper.com/forum/archive/index.php/"../css/produce_xml.css"?> -->
<STOCK>
<PRODUCE>
<ITEM>Alfalfa Sprouts</ITEM>
<PRICE>$1.50 per punnet</PRICE>
</PRODUCE>


Now I have applied CSS styles and appears to be working in IE6 fine,

Css is:

PRODUCE {display:table-row;}
ITEM {display:table-cell;
font-weight:bold;
padding-left:20px;
padding-right:20px;}
PRICE {display:table-cell;}

Please let me know if this will not work in Firefox or if it can and how?

regards
Adrian..
 
Back
Top