-- 作者:jiangeb
-- 发布时间:6/12/2010 1:16:00 PM
-- xslt 不能进行减法运算 ,着急
我写了一个xslt,但是在里面不能进行减法运算,我贴一段代码和错误信息,麻烦帮我看看,谢谢! <xsl:param name="all" select="10"/> <xsl:param name="part" select="1"/> x=<xsl:value-of select="($all-$part)"/> - 就是减号的转义 错误:““($all-$part)”中的语法错误。” 致命错误:“无法编译样式表” 2010-6-12 13:11:15 org.apache.solr.common.SolrException log 严重: java.lang.RuntimeException: getTransformer fails in getContentType at org.apache.solr.request.XSLTResponseWriter.getContentType(XSLTResponseWriter.java:68) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:250) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:873) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689) at java.lang.Thread.run(Thread.java:595) Caused by: java.io.IOException: Unable to initialize Templates 'my.xsl' at org.apache.solr.util.xslt.TransformerProvider.getTemplates(TransformerProvider.java:106) at org.apache.solr.util.xslt.TransformerProvider.getTransformer(TransformerProvider.java:76) at org.apache.solr.request.XSLTResponseWriter.getTransformer(XSLTResponseWriter.java:117) at org.apache.solr.request.XSLTResponseWriter.getContentType(XSLTResponseWriter.java:65) ... 15 more Caused by: javax.xml.transform.TransformerConfigurationException: 无法编译样式表 at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:830) at org.apache.solr.util.xslt.TransformerProvider.getTemplates(TransformerProvider.java:103) ... 18 more
|