View Full Version : Firefox and XML
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?
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 ;)
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 :(
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">
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.
the xhtml headers might be breaking your XSL parser, insert them afterwards into the HTML?
vBulletin® v3.8.2, Copyright ©2000-2010, Jelsoft Enterprises Ltd.