Mozilla 1.7:error loading stylesheet:(null)

本文介绍了解决Solaris 10系统下Mozilla 1.7浏览器中出现的样式表加载错误问题的方法。通过禁用特定MIME类型的支持并重新配置shared-mime-info包来修复该问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 error loading stylesheet:(null)

recently two days I deal with problem on solaris (sun)10 with mozilla 1.7 browser.
It always said error loading stylesheet:(null). I tried many method,then got the solution.
It is Mozilla support MIME type's problem. there is the package shared-mime-info which installs the file /usr/share/mime/packages/freedesktop.org.xml
Do step as below:
   1. cd  /usr/share/mime/packages
   2. vi  freedesktop.org.xml
  
     in this file there is comments like:
  <mime-type type="text/x-xslt">
    <comment>XSLT stylesheet</comment>
    <comment xml:lang="de">XSLT-Stylesheet</comment>
    <comment xml:lang="fi">XSLT-tyylitiedosto</comment>
    <comment xml:lang="no">XSLT-stilark</comment>
    <glob pattern="*.xslt"/>
    <glob pattern="*.xsl"/>
 </mime-type>
 just comment out that element
 <!--
 <mime-type type="text/x-xslt">
    <comment>XSLT stylesheet</comment>
    <comment xml:lang="de">XSLT-Stylesheet</comment>
    <comment xml:lang="fi">XSLT-tyylitiedosto</comment>
    <comment xml:lang="no">XSLT-stilark</comment>
    <glob pattern="*.xslt"/>
    <glob pattern="*.xsl"/>
  </mime-type>
  -->

   3.run command
   # dpkg-reconfigure shared-mime-info
   if you don't have this command
   run update-mime-database /usr/share/mime
 reference got below: 
http://www.se.eecs.uni-kassel.de/~thm/Linux/mozilla-xml-xsl.html

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值