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);
高分悬赏,重谢!