D
David Blickstein
I have some XML documents that I want to open in a web browser and be
automatically translated to HTML via XSLT. I'm using an xml-stylesheet
processing command in a file called "girml.xml".
This all works in Internet Explorer, but doesn't work with Firefox.
In both IE and Firefox this works:
<?xml-stylesheet type="text/xsl" encoding="UTF-8" href="makehtml.xslt"
version="1.0"?>
The following works with IE and fails with Firefox (the server is WindowsXP
btw):
<?xml-stylesheet type="text/xsl" encoding="UTF-8"
href="http://dregs.zko.hp.com/db/makehtml.xslt" version="1.0"?>
The difference is whether or not the stylesheet comes from a server or a
local file.
Another interesting datapoint is that I get different results depending on
whether I try to open girml.xml as a local file ("Open File") or as a
web-served file ("Open Location"). When I open it locally I just get a
blank screen. When I try to open it from the server, I get:
"Error loading stylesheet: (null)"
http://dregs.zko.hp.com/db/makehtml.xslt
I can load the stylesheet from that URL with IE. When I try to load it with
Firefox it asks me what program I want to use to open it. But clearly the
file is there, and accessible.
Thanks,
Dave Blickstein
p.s. Unfortunately, my server (dregs.zko.hp.com) is behind a firewall so you
won't be able to access it.
automatically translated to HTML via XSLT. I'm using an xml-stylesheet
processing command in a file called "girml.xml".
This all works in Internet Explorer, but doesn't work with Firefox.
In both IE and Firefox this works:
<?xml-stylesheet type="text/xsl" encoding="UTF-8" href="makehtml.xslt"
version="1.0"?>
The following works with IE and fails with Firefox (the server is WindowsXP
btw):
<?xml-stylesheet type="text/xsl" encoding="UTF-8"
href="http://dregs.zko.hp.com/db/makehtml.xslt" version="1.0"?>
The difference is whether or not the stylesheet comes from a server or a
local file.
Another interesting datapoint is that I get different results depending on
whether I try to open girml.xml as a local file ("Open File") or as a
web-served file ("Open Location"). When I open it locally I just get a
blank screen. When I try to open it from the server, I get:
"Error loading stylesheet: (null)"
http://dregs.zko.hp.com/db/makehtml.xslt
I can load the stylesheet from that URL with IE. When I try to load it with
Firefox it asks me what program I want to use to open it. But clearly the
file is there, and accessible.
Thanks,
Dave Blickstein
p.s. Unfortunately, my server (dregs.zko.hp.com) is behind a firewall so you
won't be able to access it.