Hi,
have you tried:
<serialize type="xhtml" status-code="200" ...>
        ...
        <encoding>"{charsetEncoding}"</encoding>
        ...
</serialize>

?
Laurent

________________________________________
From: Ali Mahdoui [mailto:mahd...@hotmail.de] 
Sent: dimanche, 7. novembre 2010 12:10
To: Cocoon users; d...@cocoon.apache.org
Subject: Set Encoding for XMLSerializer dynamically

Hi,
i am using cocoon 2.2 and i want to set the encoding for the xml serializer 
dynamically depending on the return value of a previous action.
for example like this <serialize type="xhtml" status-code="200" 
encoding="{charsetEncoding}"/> ...
For the moment i can only set the encoding in the bean definition...  
Is that possible? Thanks


____________________________________________________________

• This email and any files transmitted with it are CONFIDENTIAL and intended
  solely for the use of the individual or entity to which they are addressed.
• Any unauthorized copying, disclosure, or distribution of the material within
  this email is strictly forbidden.
• Any views or opinions presented within this e-mail are solely those of the
  author and do not necessarily represent those of Odyssey Financial
Technologies SA unless otherwise specifically stated.
• An electronic message is not binding on its sender. Any message referring to
  a binding engagement must be confirmed in writing and duly signed.
• If you have received this email in error, please notify the sender immediately
  and delete the original.

Reply via email to