You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "John L. Webber" <Jo...@jentro.com> on 2005/01/24 15:12:40 UTC

EncodeURLTransformer with i18n

We have a problem with using the EncodeURLTransformer together with the 
I18NTransformer; probably we're trying to do something we shouldn't, but 
I'd be interested if anyone has a suggestion for a workaround.

Here's the situation: some of the texts in our message catalogue have 
embedded links that need to have a jsessionid appended, for example like 
this:
Text Text Text<a href="flow.somepage.html">SomePageTitle</a>More text.

We'd like this to come out:

Text Text Text<a href="flow.somepage.html;jsessionid=1234asdf">My 
English Title</a>More text.

or

Text Text Text<a href="flow.somepage.html;jsessionid=1234asdf">Mein 
deutscher Titel</a>mehr Text

But the EncodeURLTransformer doesn't see the <a> elements embedded in 
the messages, presumably because they're all treated as CDATA. Does 
anyone see a fix for this short of tearing up all our messages into tiny 
fragments? I thought of passing in the links as i18n params, but then 
how do I get the <a> element contents translated?

Thanks,

John



-- 
---------------------------------------------------------
  Jentro Technologies GmbH
  John L. Webber, Software Development
---------------------------------------------------------
  Rosenheimer Str. 145e	    81671 München
  Tel. +49 89 189 169 80     mailto:John.Webber@jentro.com
  Fax  +49 89 189 169 99     http://www.jentro.com
---------------------------------------------------------
NOTICE: The information contained in this e-mail is confidential or may 
otherwise be legally privileged. It is intended for the named recipient 
only. If you have received it in error, please notify us immediately by 
reply or by calling the telephone number above and delete this message 
and all its attachments without any use or further distribution of its 
contents. Please note that any unauthorised review, copying, disclosing 
or otherwise making use of the information is strictly prohibited. Thank 
you.
---------------------------------------------------------

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