You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Koen Pellegrims <ko...@pandora.be> on 2002/08/30 12:02:22 UTC

i18n:attr trouble

Hi,

I have quite a weird problem with i18n here.
First of all: All the i18n examples work perfectly!

... but when I try to translate an attribute I run into trouble.

the snippet is very simple:
<a href="yadayada.html">
	<img src="bla.jpg" alt="image" i18n:attr="alt"/>
</a>

the relevant pipeline is:
<map:match pattern="file.html">
	<map:generator src="file.xml"/>
	<map:transform src="file.xsl"/>
	<map:transform type="i18n"/>
	<map:serialize/>
</map:match>

As long a I leave out the "i18n:attr" everything works perfectly (text is
translated as it should)
I added a bit more debug-info to the I18nTransformer and it seems	to 'stop'
on the removal of the attribute from the AttributesImpl-object
(temp_attr.removeAttribute(i18n_attr_index);)
(really: the request just 'stops', nothing appears in the logs anymore, not
in Cocoon, nor in Tomcat)

I know Xerces had some trouble a while ago with the implementation of
AttributesImpl, but I tried Xerces-J-2.1.0 and I get the same (non-)results.

Any thoughts?

Koen

System: Linux
        Java 1.4.0 with Xerces 2.1.0 and xmlApis in jre/lib/endorsed
        Tomcat 4.0.4
        Cocoon 2.0.3 with Xerces 2.1.0 and xmlApis in WEB-INF/lib


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org