搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Why cannot FF5 display xml file (with its xsl file)?

  • 5 回覆
  • 24 有這個問題
  • 1 次檢視
  • 最近回覆由 žełvik

more options

With FireFox 3.6, Mozilla 1.7.13 and IE 6 I can view my xml report files utilizing their xsl files. I recently upgraded to FireFox 5 and lost that capability!

I have developed several applications for nonprofit use that depend on viewing and printing reports via web browsers.

I choose this approach because nonprofit organizations would all have web browsers on their PCs.

My xml report files each have their xsl stylesheet files FireFox has been my default browser since it superseded Mozilla 1.7.

I will sincerely appreciate your help.

With FireFox 3.6, Mozilla 1.7.13 and IE 6 I can view my xml report files utilizing their xsl files. I recently upgraded to FireFox 5 and lost that capability! I have developed several applications for nonprofit use that depend on viewing and printing reports via web browsers. I choose this approach because nonprofit organizations would all have web browsers on their PCs. My xml report files each have their xsl stylesheet files FireFox has been my default browser since it superseded Mozilla 1.7. I will sincerely appreciate your help.

被選擇的解決方法

This:

If the file to be loaded is in a subdirectory of the codebase…

and Bug 402983

switching security.fileuri.strict_origin_policy in about:config solves the problem but a better solution is to navigate to your file from a common ancestor, in which case the style sheet will be considered native too.

從原來的回覆中察看解決方案 👍 1

所有回覆 (5)

more options

I'm on an Intel Mac OS 10.5.8 using Firefox 5. I found that when trying to open an xml or xsl file in Firefox 5, these file types are greyed out and I'm not able to select them. Nor does Firefox appear as a possible program with which to open these file types. I know that Firefox CAN open these files as I have been able to display them by dragging the file icon into a Firefox window. I have coworkers running the same configuration and it works fine. Is there a preference in FF?

Thanks for the help, as well.

more options

Thank you.

You are correct. I can drag and drop to display the xml file.

How ever, I need to open the xml file in FireFox from within a VB6 application using:

Declare Function FindExecutable Lib "shell32.dll" _

  Alias "FindExecutableA" (ByVal lpFile As String, _
  ByVal lpDirectory As String, _
  ByVal lpResult As String) As Long

and: Function Shell(PathName, [WindowStyle As VbAppWinStyle = vbMinimizedFocus]) As Double

由 anderci 於 修改

more options

Is someone working on a solution? I much prefer being able to use FireFox to display my .xml reports than IE.

more options

I was finally getting FireFox 5.0 to display xml files using their xsl stylesheets on my desktop PC. I tried to upgrade my laptop PC from Firefox 3 to 5.0 but it insisted on upgrading to 6.02 Now FireFox 6.02 refuses to display the xml files using their xsl stylesheets, What is wrong?

more options

選擇的解決方法

This:

If the file to be loaded is in a subdirectory of the codebase…

and Bug 402983

switching security.fileuri.strict_origin_policy in about:config solves the problem but a better solution is to navigate to your file from a common ancestor, in which case the style sheet will be considered native too.

由 žełvik 於 修改