Please check that i18n FAQ entry does not solve your problem:
http://outerthought.net/wiki/Wiki.jsp?page=FAQs.

If it doesn't then please check again if the i18n samples work as expected
(it can seem that they are working, but in reality they can be
half-processed).

--
Konstantin Piroumian 



> -----Original Message-----
> From: Koen Pellegrims [mailto:[EMAIL PROTECTED]] 
> Sent: Friday, August 30, 2002 2:02 PM
> To: Cocoon-Dev@Xml. Apache. Org
> Subject: 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: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to