Thanks Jason. 

It's really working. Two problems I run into.

1) Clearing the cache of tomcat and browser is necessary even though I've set 
<cache-at-startup>false</cache-at-startup> for i18n translator.
2) That's really my fault. Instead of using <xsl:apply-templates select="."/> 
I've used <xsl:value-of select="."/> which removes all inner tags.

By the way I'm using 2.1.7. 

Both <i18n:text>demo_report<i18n:text> and <i18n:text 
i18n:key="demo_report">... Some Text ...</i18n:text> are working.

Thanks a lot. Great help.

Urs






-----Ursprüngliche Nachricht-----
Von: Jason Johnston [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 5. Oktober 2005 15:43
An: [email protected]
Betreff: Re: AW: I18n transformer removes tags

Bertrand Delacretaz wrote:
> Le 5 oct. 05, à 11:05, Urs Iwert a écrit :
> 
>> ...Once more. It must be possible to transfer a well formed message 
>> from a message catalogue to my document...
> 
> 
> The i18n transformer doesn't do that, you'll have to implement your own 
> stuff - if you aggregate your message catalog with your XML, merging the 
> two via XSLT shouldn't be hard.
> 

Hmm, are you sure?  IIUC Urs just wants i18n messages to be able to 
contain markup.  I've been using the i18n transformer like this for 
quite a while with success.

Urs, what version of Cocoon are we talking about here?  I've had this 
working successfully in 2.1.5.1 and 2.1.7.  The only difference I can 
see is that I use the message key as the child text of the i18n tag, 
rather than using @i18n:key, e.g. <i18n:text>demo_reports</i18n:text>

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


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

Reply via email to