|
|||||||
| XML Discussion and technical support for using and deploying XML applications and websites. |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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? 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="../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="../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.. |
|
#2
|
|||
|
|||
|
well first off FF is not as forgiving as IE, you need to check your tags which some closing tags are missing.. I can get the ALFALFA Sprouts $1.50 per punnet displayed in FF but not the tables, it's been a while since I have played around with XML
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|