Re: xslt-process and saxon 6.5
Brought to you by:
ovidiu
From: Ovidiu P. <ov...@xe...> - 2001-12-04 08:07:25
|
Hi Ben, Unfortunately Saxon's internal APIs keep changing quite often, with no backward compatibility. Which is OK, as a normal program is not supposed to use those low-level, processor specific, APIs, but instead use the JAXP API. However XSLT-process is no usual program, and relies on very intimate details of the processor. When these change, the code breaks or doesn't work anymore. I noticed the problem starting with 6.4, but didn't have time to investigate more. Any suggestion of what has changed is welcome. Of course, a patch would really be great ;-) Regards, Ovidiu On Tue, 04 Dec 2001 09:43:44 +0100, Benjamin Peter <bp...@ze...> wrote: > Hi, > > is there a way to get xslt-process to work with anything else than saxon > 6.3? Well, apart from the debugger, everything is ok, but then that's > what's great about xslt-process ;-) > > To be more detailed: saxon 6.3, which is supplied with xslt-process ahs > a show-stopper bug for me. It will return true on a test for a > non-existant attribute. > > I have dropped in saxon 6.5 by simply changing the classpath list in > xslt-process.el (and of course placed the jar file in the java dir). > > (defvar xslt-process-external-java-libraries > (mapcar (lambda (f) > (concat (xslt-process-find-xslt-data-directory) > "java" xslt-process-dir-separator f)) > '("bsf.jar" "xerces.jar" "xalan-2.1.0.jar" "saxon-6.5.jar" > "xalanj1compat.jar" "batik.jar" "fop-0.20.1.jar" > "jimi-1.0.jar" "xslt.jar")) > "Defines the classpath to the XSLT processors thyat do the real work > of processing an XML document. Be sure you know what you're doing when > you modify this.") > > The debugger will then produce the following stack trace: > > java.lang.NoClassDefFoundError: com/icl/saxon/om/ElementInfo > at > xslt.debugger.saxon.SaxonTraceListener.leaveNode(SaxonTraceListener.java:184) > at xslt.debugger.saxon.SaxonTraceListener.leave(SaxonTraceListener.java:302) > at com.icl.saxon.style.XSLStyleSheet.process(XSLStyleSheet.java:624) > at com.icl.saxon.Controller.transformDocument(Controller.java:1065) > at com.icl.saxon.Controller.transform(Controller.java:939) > at xslt.debugger.AbstractXSLTDebugger.run(AbstractXSLTDebugger.java:188) > at java.lang.Thread.run(Thread.java:484) > > > Any help is appreciated. > > Cheers, > Ben > > > _______________________________________________ > Xslt-process-users mailing list > Xsl...@li... > https://lists.sourceforge.net/lists/listinfo/xslt-process-users > |