You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by "Piroumian, Konstantin" <KP...@flagship.ru> on 2001/05/24 09:33:50 UTC
Re: Problems with i18n samples
> Hi,
>
> I solved some problems with the i18n samples which occured
> due to the introduction of the new SourceResolver.
>
> But unfortunately a NPE is thrown in the first example (Simple i18n).
> It is thrown inside the org.xml.sax.helpers.AttributesImpl class.
> The source is the I18nTransformer2, line 363:
> >>
> int attr_index = temp_attr.getIndex(attr_name);
> <<
>
> Currently I see no solution for this as my time is limited.
>
> Can anyone look at this?
The solution is to place Xerces before Xalan in your classpath (simply
rename xerces.jar into a_xerces.jar). It is a bug in
org.xml.sax.helpers.AttributesImpl.class and it was fixed in Xerces, but
Xalan has the same package with that class and there that bug is not fixed
yet.
Without that fixed class the second sample also works incorrectly, although
you can see some response from it (not NPE).
Regards,
Konstantin Piroumian.
>
>
> Carsten
>
> Open Source Group sunShine - b:Integrated
> ================================================================
> Carsten Ziegeler, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
> www.sundn.de mailto: cziegeler@sundn.de
> ================================================================
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org