这可能是由于MIME类型问题。请看Mozilla XSLT FAQ中的第一个问题:< http://www.mozilla.org/projects/xslt/faq.html>。 - Raf This is probably due to a MIME type issue. Look at the first question in the Mozilla XSLT FAQ: <http://www.mozilla.org/projects/xslt/faq.html>. -- Raf 我不清楚如何纠正这个问题。 这是' XML文件的标题: <?xml version =" 1.0" encoding =" UTF-8"?> <?xml-stylesheet encoding =" UTF-8" type =" text / xsl" href =" http://dregs.zko.hp.com/db/makehtml.xslt" version =" 1.0"?> < IRDump xmlns:xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation =" girml2.xsd" > 这里是XSLT样式表的标题: <?xml version =" 1.0" encoding =" UTF-8"?> < xsl:stylesheet version =" 1.0" xmlns:xsl =" http:// www .w3.org / 1999 / XSL / Transform" xmlns:xs =" http://www.w3.org/2001/XMLSchema"> 我需要添加一些内容。 我无法让Firefox报告MIME类型,因为它似乎坚持使用 使用一些其他程序来查看XSLT样式表。 IE似乎将它报告为 为type:XSL Transformation。 有没有人有一个两个头文件(XML和XSLT)的例子可以使用 Firefox? 再次感谢, dbI''m unclear as to how to correct this.Here''s the header for the XML file:<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet encoding="UTF-8" type="text/xsl"href="http://dregs.zko.hp.com/db/makehtml.xslt" version="1.0"?><IRDump xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:noNamespaceSchemaLocation="girml2.xsd" >Here''s the header for the XSLT stylesheet:<?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet version="1.0"xmlns:xsl="http://www.w3.org/1999/XSL/Transform"xmlns:xs="http://www.w3.org/2001/XMLSchema">Is there something I need to add.I can''t get Firefox to report the MIME type because it seems to insist onusing some OTHER program to view the XSLT stylesheet. IE seems to report itas "type: XSL Transformation".Does anyone have an example of two headers (XML and XSLT) that work withFirefox?Thanks again,db 作为安全措施,您只能应用来自相同的 来源的样式表XML如果您的XML带有<?xml-stylesheet?>,那么Firefox肯定会加载那个 样式表。也位于 服务器dregs.zko.hp.com。 但是IE和互联网区域的正常安全设置是 $ b $如果您通过http加载XML文档,则没有什么不同。 - Martin Honnen http://JavaScript.FAQTs.com/ 这篇关于Firefox和XSLT(本地样式表工作,基于服务器的样式表失败)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!