You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Ali Mahdoui <ma...@hotmail.de> on 2010/11/07 12:09:40 UTC
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
RE: Set Encoding for XMLSerializer dynamically
Posted by Laurent Medioni <lm...@odyssey-group.com>.
So this changed from 2.1, pity…
________________________________
From: Ali Mahdoui [mailto:mahdoui@hotmail.de]
Sent: lundi, 8. novembre 2010 13:08
To: Cocoon users
Subject: RE: Set Encoding for XMLSerializer dynamically
Hi,
no that does not help (and the syntax is not allowed in the schema of the sitemap)
thanks
Ali
> Subject: RE: Set Encoding for XMLSerializer dynamically
> Date: Mon, 8 Nov 2010 12:56:11 +0100
> From: lmedioni@odyssey-group.com
> To: users@cocoon.apache.org
>
> Hi,
> have you tried:
> <serialize type="xhtml" status-code="200" ...>
> ...
> <encoding>"{charsetEncoding}"</encoding>
> ...
> </serialize>
>
> ?
> Laurent
>
____________________________________________________________
• 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.
RE: Set Encoding for XMLSerializer dynamically
Posted by Ali Mahdoui <ma...@hotmail.de>.
Hi,no that does not help (and the syntax is not allowed in the schema of the sitemap)thanksAli
> Subject: RE: Set Encoding for XMLSerializer dynamically
> Date: Mon, 8 Nov 2010 12:56:11 +0100
> From: lmedioni@odyssey-group.com
> To: users@cocoon.apache.org
>
> Hi,
> have you tried:
> <serialize type="xhtml" status-code="200" ...>
> ...
> <encoding>"{charsetEncoding}"</encoding>
> ...
> </serialize>
>
> ?
> Laurent
>
RE: Set Encoding for XMLSerializer dynamically
Posted by Laurent Medioni <lm...@odyssey-group.com>.
Hi,
have you tried:
<serialize type="xhtml" status-code="200" ...>
...
<encoding>"{charsetEncoding}"</encoding>
...
</serialize>
?
Laurent
________________________________________
From: Ali Mahdoui [mailto:mahdoui@hotmail.de]
Sent: dimanche, 7. novembre 2010 12:10
To: Cocoon users; dev@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.