You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs@cocoon.apache.org by da...@cocoon.zones.apache.org on 2006/10/02 16:14:52 UTC

[DAISY] Created: Basic usage

A new document has been created.

http://cocoon.zones.apache.org/daisy/documentation/1222.html

Document ID: 1222
Branch: main
Language: default
Name: Basic usage
Document Type: Cocoon Document
Created: 10/2/06 2:14:41 PM
Creator (owner): Philippe Laplanche
State: draft

Parts
=====

Content
-------
Mime type: text/xml
Size: 849 bytes
Content:
<html>
<body>

<h1>Basic usage</h1>

<ol>
<li>First declare the serializer you need.</li>
</ol>

<p>In the sitemap &lt;map:serializers&gt; section, add this :</p>

<ul>
<li>for pdf generation :</li>
</ul>

<pre>&lt;map:serializer name="fo2pdf" src="org.apache.cocoon.serialization.FOPSerializer" 
    mime-type="application/pdf" 
    logger="sitemap.serializer.fo2pdf"&gt;</pre>

<ul>
<li>for pcl generation :</li>
</ul>

<pre>&lt;map:serializer name="fo2pcl" src="org.apache.cocoon.serialization.FOPSerializer" 
    mime-type="application/pdf" 
    logger="sitemap.serializer.fo2pcl"&gt;</pre>

<ul>
<li>for ps generation :</li>
</ul>

<pre>&lt;map:serializer name="fo2pdf" src="org.apache.cocoon.serialization.FOPSerializer" 
    mime-type="application/pdf" 
    logger="sitemap.serializer.fo2ps"&gt;</pre>

</body>
</html>

Collections
===========
The document belongs to the following collections: cdocs-fop