Hello to the xalan community,
 When I use Xalan from shell with org.apache.xalan.xslt.Process
I get a this error:
Exception in thread "main" java.lang.ClassCastException:
org.apache.xalan.res.XSLTErrorResources_fr
        at org.apache.xalan.xslt.Process.main(Unknown Source)

I've seen that this problem has ever been related here (in xalan-j-users
list) to ask if it was a bug but no one reply (I copy this email at the end
of mine)
I'd prefer to not change the xalan code... Is there another solution to use
org.apache.xalan.xslt.Process.

Thanks
Vincent

The email of Achim Abeling with his solution:
--
Hi,

I am using jdk1.4.0b92 which includes xalan2.2.D11.
My locales language is de.

When I start xalan with
org.apache.xalan.xslt.Process
I get a

Exception in thread "main" java.lang.ClassCastException:
org.apache.xalan.res.XSLTErrorResources_de
        at org.apache.xalan.xslt.Process.main(Process.java:209)

which results from the fact that XSLTErrorResources_de is a subclass of
org.apache.xml.utils.res.XResourceBundleBase but the object should be
casted to
XSLTErrorResources.

Is that a bug?

I fixed the problem by using XResourceBundleBase for the variable
resbundle in
org.apache.xalan.xslt.Process

cu
Achim
--
#
# Achim Abeling
# Kiel, Germany
# e-mail: [EMAIL PROTECTED]
#

Reply via email to