At 10:25 AM -0500 2/8/02, Andrew Wason wrote:

>I think this means that I am not allowed to replace the Xalan 
>implementation that ships with JDK1.4 (e.g. by forcing my xalan.jar 
>first via -Xbootclasspath/p:). I don't think I would want to do this 
>anyway since it would replace internal JDK implementation classes 
>with a version the JDK was not tested with. Also doing this makes 
>things more difficult for my apps users since I can't just ship an 
>executable jar file with a "Class-Path: xalan.jar xerces.jar" entry 
>in its manifest.
>

I can tell you that you can fly like Superman. That doesn't make it true.

Sun can tell you you can't upgrade to a newer version of Xalan. 
That's not true either.

Put the xalan.jar you want to use in your $JAVA_HOME/lib/endorsed 
directory and Java will pick it up ahead of the bundled Xalan. On my 
system that's F:\jdk1.4\lib\endorsed but yours is probably somewhere 
different. I suspect the only thing Sun is using Xalan for internally 
is javax.xml.transforms.*. I don't think the newer version of Xalan 
is likely to break that.

That said, we really should complain to Sun to make sure they ship 
with a current version of Xalan. The one they ship breaks the Apache 
xml-security package and probably other things too. And we should 
probably add the $JAVA_HOME/lib/endorsed directory to the 
documentation somewhere if it isn't there already.

It certainly is more difficult for end users though. Does anyone know 
offhand which version of Xalan Sun is shipping? I'd prefer not to 
write code that depends on a later version if possible.
-- 

+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | [EMAIL PROTECTED] | Writer/Programmer |
+-----------------------+------------------------+-------------------+
|          The XML Bible, 2nd Edition (Hungry Minds, 2001)           |
|              http://www.ibiblio.org/xml/books/bible2/              |
|   http://www.amazon.com/exec/obidos/ISBN=0764547607/cafeaulaitA/   |
+----------------------------------+---------------------------------+
|  Read Cafe au Lait for Java News:  http://www.cafeaulait.org/      |
|  Read Cafe con Leche for XML News: http://www.ibiblio.org/xml/     |
+----------------------------------+---------------------------------+

Reply via email to