我试图从Web服务器提供动态生成的XML页面,并从同一Web服务器提供自定义静态XSLT,以便将处理卸载到客户端Web浏览器中。
直到最近,在Firefox 2、3、IE5、6和Chrome中都可以正常工作。但最近,Firefox 3似乎发生了一些变化,现在仅显示源代码中的文本元素。
页面源代码如下:
直到最近,在Firefox 2、3、IE5、6和Chrome中都可以正常工作。但最近,Firefox 3似乎发生了一些变化,现在仅显示源代码中的文本元素。
页面源代码如下:
<?xml version="1.0" encoding="UTF-8"?>
<!-- Firefox 2.0 and Internet Explorer 7 use simplistic feed sniffing to override desired presentation behavior for this feed, and thus we are obliged to insert this comment, a bit of a waste of bandwidth, unfortunately. This should ensure that the following stylesheet processing instruction is honored by these new browser versions. For some more background you might want to visit the following bug report: https://bugzilla.mozilla.org/show_bug.cgi?id=338621 -->
<?xml-stylesheet type="text/xsl" href="/WebObjects/SantaPreview.woa/Contents/WebServerResources/Root.xsl"?>
<wrapper xmlns="http://www.bbc.co.uk/ContentInterface/Content" xmlns:cont="http://www.bbc.co.uk/ContentInterface/Content" sceneId="T2a_INDEX" serviceName="DSat_T2">
....
Firebug显示Root.xsl文件正在被加载,并且它的响应头包含以下行:
Content-Type text/xml
我已经尝试将Content-Type设置为application/xml,但没有任何区别 :-(
Web开发者扩展程序也显示了正确的生成源代码,如果您保存并在Firefox中加载该页面,则会正确显示。
显示问题的Firefox版本为3.0.3
有什么想法我可能做错了什么?