Hi all, I do use saxon to parse xml files with xsl ones to build websites. I do use this with an ant task I wrote.
When trying the latest libsaxon-java from Debian, I did get an error (see the attachment mail) and thought some classes were missing. After some tests, I did rebuild the Debian package with Blackdown non-free JDK and the execution of the code was fine. The original package was build with jikes (and the classpath classes). I also did try kjc, jikes with Blackdown classes but it only works when built with Blackdown's javac. I also did suspect gnujaxp, but it also fails with xerces. To reproduce the bug, you can (on Debian system) $ apt-get source libsaxon-java Then, in the libsaxon-java directory, you can modify the call of the compiler in the debian/rules file. You can install 'devscripts' and type $ debuild -rfakeroot -uc -us to get the package compiled. To test it, you'll have to parse some docbook-website documents. I can send a tarball in private but it needs to be chanded. An easy document will not fail to be transform. Here is the original bug report with the error message when trying to run the jikes built saxon... (note it's the same result with the kjc one) Note that the transformer just runs fine with kaffe! Cheers
--- Begin Message ---Package: libsaxon-java Version: 6.5.4-0.2 Severity: grave Hi, trying to parse an DocBook-Website set of files with ant and the result is correct with the older lib-saxon (6.4.4), but with this package I got: $ ant Buildfile: build.xml layout: [echo] Processing the layout... [java] Exception in thread "main" java.lang.NoSuchMethodError: com.icl.saxon.tree.NodeImpl: method getNodeType()S not found [java] at com.icl.saxon.style.XSLStyleSheet.spliceIncludes(XSLStyleSheet.java:397) [java] at com.icl.saxon.style.XSLStyleSheet.preprocess(XSLStyleSheet.java:346) [java] at com.icl.saxon.PreparedStyleSheet.setStyleSheetDocument(PreparedStyleSheet.java:176) [java] at com.icl.saxon.PreparedStyleSheet.prepare(PreparedStyleSheet.java:133) [java] at com.icl.saxon.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:127) [java] at com.icl.saxon.StyleSheet.doMain(StyleSheet.java:327) [java] at com.icl.saxon.StyleSheet.main(StyleSheet.java:63) BUILD FAILED file:/home/arnaud/www/website-arnaud/build.xml:47: Java returned: 1 Total time: 5 seconds -- System Information: Debian Release: testing/unstable Architecture: powerpc Kernel: Linux oz.fapse.ulg.ac.be 2.6.1-rc1-ben1 #1 Tue Jan 6 18:38:38 CET 2004 ppc Locale: LANG=C, LC_CTYPE=C Versions of packages libsaxon-java depends on: ii gij 4:3.3.2-2 The GNU Java bytecode interpreter ii gij-3.3 [java1-runti 1:3.3.3-0pre2 The GNU Java bytecode interpreter ii kaffe [java1-runtime 1:1.1.3-0.2 A JVM to run Java bytecode ii libgnujaxp-java 0.0.cvs20030915-2 A free implementation of jaxp api ii sablevm [java1-runti 1.0.9+svn20040115-1 Free implementation of Java Virtua -- no debconf information -- Arnaud
pgp00000.pgp
Description: PGP signature
--- End Message ---
-- Arnaud
pgp00001.pgp
Description: PGP signature
