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: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to