Log in

View Full Version : XML Isnt Showing Up.....



boxxertrumps
09-17-2006, 09:06 PM
Hello to The More Experinced XML writers, I am Having A problem And i Have No idea whats Wrong......


<?xml version="1.0" encoding="ISO-8859-1"?><!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xsl:version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii"/>
<title>BoxxerTrumps</title>
<link rel="stylesheet" type="text/css" href="css.css"/>
</head><body><xml id="note" id="xmldso" src="XML junk/info.xml"></xml>
<table><tbody>
<xsl:for-each select="post">
<tr><td>

<div datasrc="#xmldso" datafld="header"></div>
</td><td>
<div datasrc="#xmldso" datafld="date"></div>
</td></tr><tr><td colspan="2">
<div datasrc="#xmldso" datafld="note"></div>
</td></tr><tr><td colspan="2">
<div datasrc="#xmldso" datafld="link"></div>
</td></tr>
</xsl:for-each>

</tbody></table></body></html>
</body></html>

and as for the actual xml ...

<?xml version="1.0" encoding="ISO-8859-1"?>
<post>
<header>Blog XML test</header>
<date>07/17/06</date>
<note>Basic Entry</note>
<link>www.google.ca</link>
</post>

It is being dificult and is refiusing to be displayed....

the-disturbed
10-16-2006, 10:28 PM
not showing in IE or FF, i can't get xml to showup in FF at all, works great in IE, the code you have looks fine though

boxxertrumps
10-17-2006, 02:51 PM
that junk is whak. thanks... firefox must not support xml....(First flaw to firefox that exists. it will most likely be the last.)

Twey
10-17-2006, 04:52 PM
I would think that unlikely. Do you have a demo page?

boxxertrumps
10-17-2006, 08:28 PM
here is the XSL page...
http://www.freewebs.com/boxxersgames/style.xsl
And the XML one...
http://www.freewebs.com/boxxersgames/info.xml

the-disturbed
10-18-2006, 02:56 AM
OH BURN, lmao, thought FF was the superman of the internet, lol, i cant beleive it doesnt support XML of all things, XML is supported on everything, i laugh at mozilla

tech_support
10-18-2006, 05:47 AM
(First flaw to firefox that exists. it will most likely be the last.)

Shut up. If you are a web developer, then you would know that FireFox is up to browser standards.

boxxertrumps
10-18-2006, 02:41 PM
Back on topic, my xml isnt working. I Know that Mozzilla is the best one but i was told the code was fine.... it doesnt work in IE either, and those are the only web browsers on my comp...
and i asked this question back in june....odd.

Twey
10-18-2006, 07:20 PM
I don't know what you're using there, but [Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.8.0.7) Gecko/20061001 Firefox/1.5.0.7] does exactly what I'd expect it to do with an unknown XML document, which is to display the parse tree, on both of those files.
Shut up. If you are a web developer, then you would know that FireFox is up to browser standards.Hey, calm down -- it's just a browser :) Firefox does have flaws too, you know.

the-disturbed
10-18-2006, 11:11 PM
HTML:

<xml id="news" src="data.xml"></xml>

<table datasrc="#news">
<thead align="left">
<tr>

<th>#</th>
<th>Date</th>
<th>Title</th>
<th>Details</th>
<th>Link</th>

</tr>
</thead>


<td valign="top"><span datafld="NUMB"></span></td>
<td valign="top"><span datafld="DATE"></span></td>
<td valign="top"><span datafld="HEAD"></span></td>
<td valign="top"><span datafld="TEXT"></span></td>
<td valign="top"><span datafld="LINK"></span></td>

XML:

<?xml version="1.0" encoding="ISO-8859-1" ?>
<NEWS>
<ENTRY>
<NUMB>1</NUMB>
<DATE>09/21/06</DATE>
<HEAD>BLAH</HEAD>
<TEXT>BLAH BLAH</TEXT>
<LINK>na</LINK>
</ENTRY>
<ENTRY>
<NUMB>2</NUMB>
<DATE>10/1/06</DATE>
<HEAD>BLAH</HEAD>
<TEXT>BLAH BLAH</TEXT>
<LINK>na</LINK>
</ENTRY>
</NEWS>

this stuff is pulled straight off my website, which works great in IE, but not in FF

mwinter
10-19-2006, 12:56 PM
The general approach is flawed: client-side XSLT should be avoided entirely. If you want to take this route, process it server-side.

As for not working in Gecko browsers, I don't see why it should: as far as I'm aware, both the xml element, and the datasrc and datafld attributes are proprietary - invented by Microsoft.

I don't know how Mozilla propose to do this in their browsers (try looking through the relevant MDC (http://developer.mozilla.org/) documentation), but as I wrote, you shouldn't try on the Web.

Mike

boxxertrumps
10-19-2006, 03:01 PM
apperentally, I put a link for the info into the stlye doc. instead of putting a link to the style in the info doc. Now i just have to apply CSS then im set.
heres the updated pages, not styled or anything.

XML
http://www.freewebs.com/boxxersgames/info.xml
XSL
http://www.freewebs.com/boxxersgames/style.xsl