Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/xslt/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在Intellij中调试XSL?URIhttp://xml.apache.org/xslt/java 不标识外部Java类_Xml_Xslt_Intellij Idea - Fatal编程技术网

如何在Intellij中调试XSL?URIhttp://xml.apache.org/xslt/java 不标识外部Java类

如何在Intellij中调试XSL?URIhttp://xml.apache.org/xslt/java 不标识外部Java类,xml,xslt,intellij-idea,Xml,Xslt,Intellij Idea,我试图在Intellij中调试XSL,但遇到以下异常: javax.xml.transform.TransformerException: The URI http://xml.apache.org/xslt/java does not identify an external Java class at com.icl.saxon.style.StyleElement.styleError(StyleElement.java:818) at com.icl.saxon.styl

我试图在Intellij中调试XSL,但遇到以下异常:

javax.xml.transform.TransformerException: The URI http://xml.apache.org/xslt/java does not identify an external Java class
    at com.icl.saxon.style.StyleElement.styleError(StyleElement.java:818)
    at com.icl.saxon.style.XSLStyleSheet.process(XSLStyleSheet.java:626)
    at com.icl.saxon.Controller.transformDocument(Controller.java:1121)
    at com.icl.saxon.Controller.transform(Controller.java:994)
    at org.intellij.plugins.xsltDebugger.rt.engine.local.LocalDebugger$1.run(LocalDebugger.java:63)
    at java.lang.Thread.run(Thread.java:745)
如果我运行而不是调试,我会得到以下结果:

[ERROR]: Could not compile stylesheet
[FATAL]: Cannot convert data-type 'java.util.Calendar' to 'reference'.

XSL或我的设置有什么问题吗?

您使用的是Saxon 6.x,这是一个非常奇怪的选择,因为它在大约14年前被取代,它只支持XSLT 1.0,而XSLT 2.0(在当前的Saxon版本中受支持)功能更强大

我怀疑实际的问题是样式表包含使用Xalan的调用约定对Java代码的调用。从XSLT调用Java在XSLT处理器之间不兼容

尽管我一直在使用IntelliJ,但我从未在XSLT开发中使用过它,因此我无法建议您如何选择不同的XSLT处理器