On Thu, 17 Jul 2003 09:43:27 -0400
Geoff Howard <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to