cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yury Mikhienko <Yury.Mikhie...@mobicomk.ru>
Subject Re: dynamic "encoding" for html serialiser?
Date Thu, 17 Jul 2003 13:58:57 GMT
On Thu, 17 Jul 2003 09:43:27 -0400
Geoff Howard <cocoon@leverageweb.com> wrote:

> > Sometime ago this question was already asked on cocoon-dev list, 
> > but setup() method is not implemented in serializers at this time ((
> 
> Sorry, I must not be coming across clearly: you must declare the 
> encoding in the definition of your serializer in the map:components 
> section of the sitemap.  This configuration is read during configure().
> 
> <map:components>
> ...
> <map:serializers ...>
>     <map:serializer name="encoding1" 
> src="org.apache.cocoon.serialization.XMLSerializer" ...>
> 	<encoding>encoding1</encoding>
>     </map:serializer>
>     <map:serializer name="encoding2" 
> src="org.apache.cocoon.serialization.XMLSerializer" ...>
> 	<encoding>encoding2</encoding>
>     </map:serializer>
> ....
> </map:serializers>
> 
> then, in your pipeline something like:
> 
> <map:match ..>
> 	...
> 	<map:serialize type="encoding1"/>
> </map:match>
> <map:match ..>
> 	...
> 	<map:serialize type="encoding2"/>
> </map:match>
> 
> Hope that clears it up,
> 
> Geoff


Yes, you are right, but implementation of  the  setup() method make serialize step more flexible.

-- 
 
Best regards,
Yury Mikhienko.
IT engineer, ZAO "Mobicom-Kavkaz"

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


Mime
View raw message