cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leszek Gawron <lgaw...@mobilebox.pl>
Subject Re: bit of brotherly help...
Date Thu, 27 Jan 2005 11:25:25 GMT
beyaRecords wrote:
> 
> On 27 Jan 2005, at 10:43, Jan Hoskens wrote:
> 
>> public class XMLSerializer extends 
>> org.apache.cocoon.serialization.XMLSerializer
>> {
>>
>>     public void endPrefixMapping(String prefix) throws SAXException
>>     {
>>         // do nothing
>>     }
>>
>>     public void startPrefixMapping(String prefix, String uri)
>>             throws SAXException
>>     {
>>         // do nothing
>>     }
>> }
> 
> 
> Hi Jan,
> I like the sound of what you are saying but could you please expand on 
> your explanation?
> 
> So I create my new XMLSerializer class but how do I call it into my 
> sitemap?
ordinary xml serializer is defined as :

<map:serializer logger="sitemap.serializer.xml" mime-type="text/xml" 
name="xml" src="org.apache.cocoon.serialization.XMLSerializer"/>


so do your own declaration
<map:serializer logger="sitemap.serializer.myxml" mime-type="text/xml" 
name="myxml" src="org.apache.cocoon.serialization.MyExtendedXMLSerializer"/>

and then:

<map:serialize type="myxml"/>

-- 
Leszek Gawron                                      lgawron@mobilebox.pl
Project Manager                                    MobileBox sp. z o.o.
+48 (61) 855 06 67                              http://www.mobilebox.pl
mobile: +48 (501) 720 812                       fax: +48 (61) 853 29 65

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


Mime
View raw message