PDA

View Full Version : Firefox and XML


camel
08 Apr 2005, 13:43
i have been on the trail to do this

have an XML producing web engine (works)
have a xsl that transforms the XML into HTML (works)
it works fine in ie on the client side, what needs to be done to get it working client side in firefox (i know i can do it server side, but i want the option)?

anyone done it in firefox?

Shrimp
08 Apr 2005, 13:56
Hmm, never used much XML stuff, but what's your output's DOCTYPE tag?

Firefox seems very sensitive to the DOCTYPE and actually obeys the specs to the letter. IE seems to look at the page in genral and try to decide what it is, so maybe that's why it's working in IE and not FF...

Otherwise I dunno ;)

camel
08 Apr 2005, 14:21
naw, my tag says text/xml, which is right, and ie happens to obey that 1, if u tell it that xml is html, it definetly comes up wrong.

oh well, back to google :(

hai2u
12 Apr 2005, 20:56
Your doctype as in

<?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 xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

camel
13 Apr 2005, 08:20
did that, but now i get an error,

"XML Parsing Error: no element found"

well, thx karny, its a step in the right direction, i'll try playing with it till it decides to work.

hai2u
16 Apr 2005, 10:05
the xhtml headers might be breaking your XSL parser, insert them afterwards into the HTML?