Serializers
A Serializer is used to render an input XML structure into some other format ( not necessarily XML )
Different types of serializers:
- HTML Serializer
- FOP Serializer
- Text Serializer
- XML Serializer
- …
More serializers can be added without modifying Cocoon.
<map:serializers default="html">
<map:serializer name="xml" mime-type="text/xml" src="org.apache.cocoon.serialization.XMLSerializer"/>
<map:serializer name="html" mime-type="text/html" src="org.apache.cocoon.serialization.HTMLSerializer"/>
<map:serializer name="fo2pdf" mime-type="application/pdf" src="org.apache.cocoon.serialization.FOPSerializer"/>
<map:serializer name="vrml" mime-type="model/vrml" src="org.apache.cocoon.serialization.TextSerializer"/>
<map:match pattern="hello.html">
<map:generate src="docs/samples/hello-page.xml"/>
<map:transform src="stylesheets/page/simple-page2html.xsl"/>
<map:serialize type="html"/>
Sitemap entries for different types of serializers
A sample serializer entry in a pipeline