weixin_43117892 2018-09-02 12:44 采纳率: 0%
浏览 740
已结题

Ie9下 利用 XSL 格式化的XML(JAVA代码写的),前端IE无法显示。

IE9 以下显示正常,IE9报 XSLT8690: XSLT 处理失败。
但IE9 以下版本正常。
代码如下:
xsl 头 : <?xml version="1.0" encoding="UTF-8"?>

<!-- 
 Pagefooter是列印出公用按钮,检索,分页字体的标签
 传入参数是按钮部分需要,格式1@2@3,1-删除;2-修改;3-增写;4-运行;5-停止;6-故障;7-查看履历 
 -->
<xsl:include href="../Pagefooter"/>
<xsl:include href="../Page.xsl"/>
<xsl:template match="/">




:::BESTSOFTWAY:SPC:::!

JAVA代码:
StreamResult sr= new StreamResult(response.getOutputStream());
TransformerFactory tf = TransformerFactory.newInstance();

                 String  classPath=Dom.class.getResource("/").getPath();
                 classPath=classPath.substring(1,classPath.indexOf("WEB-INF"));
                  File xlsFile=new File(classPath+path);
                         Source xslSource = new StreamSource( xlsFile ); 
                         Transformer t = tf.newTransformer(  );
                            t.setOutputProperty("encoding", "UTF-8");
                            t.transform(doms, sr);  

                            高分悬赏,重谢!
  • 写回答

2条回答

  • threenewbee 2018-09-02 14:32
    关注

    https://stackoverflow.com/questions/10529999/why-xslt8690-xslt-processing-failed-when-processing-local-xml-xslt

    在ie的设置里勾选 Allow active content to run in files on My computer

    评论

报告相同问题?

悬赏问题

  • ¥15 shape_predictor_68_face_landmarks.dat
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料
  • ¥15 使用R语言marginaleffects包进行边际效应图绘制