You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Paul Derbyshire <de...@globalserve.net> on 2000/05/23 05:29:54 UTC
Severe Xalan documentation errors.
I have Xalan on my system classpath:
CLASSPATH=C:\COCOON-1.7.4\LIB\xerces_1_0_3.jar;C:\PROGRAM
FILES\JAVASOFT\JAXP1.0
.1\JAXP.JAR;C:\PROGRAM;FILES\JAVASOFT\JAXP1.0.1\PARSER.JAR;C:\COCOON-1.7.4\L
IB\f
op_0_12_1.jar;C:\COCOON-1.7.4\LIB\xalan_1_0_1.jar;C:\COCOON-1.7.4\LIB\servle
t_2_
2.jar;C:\JDK1.3\LIB\tools.jar;C:\COCOON-1.7.4\BIN\cocoon.jar
Nevertheless, if I try to compile a program using it, I get this nonsense:
D:\WOL\wolsrc>javac -classpath D:\Wol\wolsrc\java\javacls -sourcepath
D:\Wol\wolsrc\java\javasrc -d D:\Wol\wolsrc\java\javacls
D:\Wol\wolsrc\java\javasrc\pgd\wol\compiler/Compiler.java
D:\Wol\wolsrc\java\javasrc\pgd\wol\compiler/Compiler.java:17: cannot
resolve symbol
symbol : class XSLTInputSource
location: package xslt
import org.apache.xalan.xslt.XSLTInputSource;
^
D:\Wol\wolsrc\java\javasrc\pgd\wol\compiler/Compiler.java:18: cannot
resolve symbol
symbol : class XSLTProcessor
location: package xslt
import org.apache.xalan.xslt.XSLTProcessor;
^
D:\Wol\wolsrc\java\javasrc\pgd\wol\compiler/Compiler.java:19: cannot
resolve symbol
symbol : class XSLTProcessorFactory
location: package xslt
import org.apache.xalan.xslt.XSLTProcessorFactory;
^
D:\Wol\wolsrc\java\javasrc\pgd\wol\compiler/Compiler.java:20: cannot
resolve symbol
symbol : class XSLTResultTarget
location: package xslt
import org.apache.xalan.xslt.XSLTResultTarget;
^
D:\Wol\wolsrc\java\javasrc\pgd\wol\compiler/Compiler.java:54: cannot
resolve symbol
symbol : class XSLTProcessor
location: class Compiler
private static XSLTProcessor processor = null;
^
D:\Wol\wolsrc\java\javasrc\pgd\wol\compiler/Compiler.java:137:
ensureExists(java.io.File,java.lang.String) is already defined in Compiler
private static void ensureExists (File newDir, String indent) throws
IOException {
^
D:\Wol\wolsrc\java\javasrc\pgd\wol\compiler/Compiler.java:169: cannot
resolve symbol
symbol : variable suppressPrivates
location: class Compiler
if (suppressPrivates) {
^
D:\Wol\wolsrc\java\javasrc\pgd\wol\compiler/Compiler.java:188: cannot
resolve symbol
symbol : method processXMLFile
(java.lang.String,java.io.File,java.io.File,java.lang.String,java.lang.String)
location: class Compiler
children3.add(processXMLFile(name, f, dest, dotString, indent2));
^
D:\Wol\wolsrc\java\javasrc\pgd\wol\compiler/Compiler.java:252: cannot
resolve symbol
symbol : class XSLTInputSource
location: class Compiler
XSLTInputSource in2 = new XSLTInputSource(in);
^
D:\Wol\wolsrc\java\javasrc\pgd\wol\compiler/Compiler.java:252: cannot
resolve symbol
symbol : class XSLTInputSource
location: class Compiler
XSLTInputSource in2 = new XSLTInputSource(in);
^
D:\Wol\wolsrc\java\javasrc\pgd\wol\compiler/Compiler.java:253: cannot
resolve symbol
symbol : class XSLTResultTarget
location: class Compiler
XSLTResultTarget out2 = new XLSTResultTarget(out);
^
D:\Wol\wolsrc\java\javasrc\pgd\wol\compiler/Compiler.java:253: cannot
resolve symbol
symbol : class XLSTResultTarget
location: class Compiler
XSLTResultTarget out2 = new XLSTResultTarget(out);
^
D:\Wol\wolsrc\java\javasrc\pgd\wol\compiler/Compiler.java:255: cannot
resolve symbol
symbol : variable XSLTProcessorFactory
location: class Compiler
processor = XSLTProcessorFactory.getProcessor();
^
13 errors
13 errors huh? I count exactly four, and you made them, not I. Evidently,
your xalan_1_0_1.jar does not actually contain the classes XSLTInputSource,
XSLTProcessor, XSLTProcessorFactory, and XSLTResultTarget in the package
org.apache.xalan.xslt, despite what the API documentation claims.
Could someone please tell me *exactly* what I should replace these names
with? Fully-qualified names for all four classes. And where can I get
updated docs that will at the very least not *lie* about what package which
class with what name is in!?
It looks like I just stepped on that land mine...
--
.*. "Clouds are not spheres, mountains are not cones, coastlines are not
-() < circles, and bark is not smooth, nor does lightning travel in a
`*' straight line." -------------------------------------------------
-- B. Mandelbrot |http://surf.to/pgd.net derbyshire@globalserve.net
_____________________ ____|________ Paul Derbyshire
Programmer & Humanist|ICQ: 10423848|
Re: Severe Xalan documentation errors.
Posted by Paul Derbyshire <de...@globalserve.net>.
At 11:29 PM 5/22/00 -0400, you wrote:
[Xalan documentation bug]
Oops, there were three errors of mine in there after all :-) A misspelled
variable name, a misspelled function name, and an XLSTResultTarget where
there should've been an XSLTResultTarget.
All of which are immaterial to my original complaint. Once I fix my source
to be bullet-proof I still get:
D:\WOL\wolsrc>javac -classpath D:\Wol\wolsrc\java\javacls -sourcepath
D:\Wol\wolsrc\java\javasrc -d D:\Wol\wolsrc\java\javacls
D:\Wol\wolsrc\java\javasrc\pgd\wol\compiler/Compiler.java
D:\Wol\wolsrc\java\javasrc\pgd\wol\compiler/Compiler.java:17: cannot
resolve symbol
symbol : class XSLTInputSource
location: package xslt
import org.apache.xalan.xslt.XSLTInputSource;
^
D:\Wol\wolsrc\java\javasrc\pgd\wol\compiler/Compiler.java:18: cannot
resolve symbol
symbol : class XSLTProcessor
location: package xslt
import org.apache.xalan.xslt.XSLTProcessor;
^
D:\Wol\wolsrc\java\javasrc\pgd\wol\compiler/Compiler.java:19: cannot
resolve symbol
symbol : class XSLTProcessorFactory
location: package xslt
import org.apache.xalan.xslt.XSLTProcessorFactory;
^
D:\Wol\wolsrc\java\javasrc\pgd\wol\compiler/Compiler.java:20: cannot
resolve symbol
symbol : class XSLTResultTarget
location: package xslt
import org.apache.xalan.xslt.XSLTResultTarget;
^
D:\Wol\wolsrc\java\javasrc\pgd\wol\compiler/Compiler.java:54: cannot
resolve symbol
symbol : class XSLTProcessor
location: class Compiler
private static XSLTProcessor processor = null;
^
D:\Wol\wolsrc\java\javasrc\pgd\wol\compiler/Compiler.java:137:
ensureExists(java.io.File,java.lang.String) is already defined in Compiler
private static void ensureExists (File newDir, String indent) throws
IOException {
^
D:\Wol\wolsrc\java\javasrc\pgd\wol\compiler/Compiler.java:252: cannot
resolve symbol
symbol : class XSLTInputSource
location: class Compiler
XSLTInputSource in2 = new XSLTInputSource(in);
^
D:\Wol\wolsrc\java\javasrc\pgd\wol\compiler/Compiler.java:252: cannot
resolve symbol
symbol : class XSLTInputSource
location: class Compiler
XSLTInputSource in2 = new XSLTInputSource(in);
^
D:\Wol\wolsrc\java\javasrc\pgd\wol\compiler/Compiler.java:253: cannot
resolve symbol
symbol : class XSLTResultTarget
location: class Compiler
XSLTResultTarget out2 = new XSLTResultTarget(out);
^
D:\Wol\wolsrc\java\javasrc\pgd\wol\compiler/Compiler.java:253: cannot
resolve symbol
symbol : class XSLTResultTarget
location: class Compiler
XSLTResultTarget out2 = new XSLTResultTarget(out);
^
D:\Wol\wolsrc\java\javasrc\pgd\wol\compiler/Compiler.java:255: cannot
resolve symbol
symbol : variable XSLTProcessorFactory
location: class Compiler
processor = XSLTProcessorFactory.getProcessor();
^
11 errors
And all of these can be attributed to some kind of error in the API
documentation -- the four classes I should be using evidently do *not* have
these fully qualified names: org.apache.xalan.xslt.XSLTInputSource;
org.apache.xalan.xslt.XSLTProcessor;
org.apache.xalan.xslt.XSLTProcessorFactory; and
org.apache.xalan.xslt.XSLTResultTarget; but rather have different names, or
lie in a different package, or ...
My best guess is that Xalan 1.0.1 moved or renamed these classes, and the
Xalan zip file contains documentation for an older version instead of
1.0.1; or else, that the Xalan 1.0.1 that came with Cocoon has for some
silly reason moved things around compared to the stand-alone version of
Xalan 1.0.1. The first of which is an error in packaging, and the second of
which is a severe abuse of version numbering, having two incompatible Xalan
1.0.1's floating around.
Either way, I still need the fully-qualified names for those four classes
as they are *in the >Cocoon< Xalan_1_0_1.jar file*...
--
.*. "Clouds are not spheres, mountains are not cones, coastlines are not
-() < circles, and bark is not smooth, nor does lightning travel in a
`*' straight line." -------------------------------------------------
-- B. Mandelbrot |http://surf.to/pgd.net derbyshire@globalserve.net
_____________________ ____|________ Paul Derbyshire
Programmer & Humanist|ICQ: 10423848|