cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [DAISY] Updated: Basic usage
Date Mon, 02 Oct 2006 15:38:50 GMT
A document has been updated:

Document ID: 1222
Branch: main
Language: default
Name: Basic usage (unchanged)
Document Type: Cocoon Document (unchanged)
Updated on: 10/2/06 2:57:02 PM
Updated by: Philippe Laplanche

A new version has been created, state: draft


This part has been updated.
Mime type: text/xml (unchanged)
File name:  (unchanged)
Size: 1242 bytes (previous version: 849 bytes)
Content diff:
(2 equal lines skipped)
    <h1>Basic usage</h1>
--- <ol>
--- <li>First declare the serializer you need.</li>
--- </ol>
+++ <h2>Declaration of the the needed serializer(s)</h2>
--- <p>In the sitemap &lt;map:serializers&gt; section, add this :</p>
+++ <p>In the &lt;map:serializers&gt; section of the section, add this :</p>
    <li>for pdf generation :</li>
(7 equal lines skipped)
    <li>for pcl generation :</li>
--- <pre>&lt;map:serializer name="fo2pcl" src="org.apache.cocoon.serialization.FOPSerializer"

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

+++     mime-type="application/vnd.hp-<strong>PCL</strong>" 
    <li>for ps generation :</li>
    <pre>&lt;map:serializer name="fo2pdf" src="org.apache.cocoon.serialization.FOPSerializer"

---     mime-type="application/pdf" 
+++     mime-type="application/ps" 
+++ <h2>Serializers usage</h2>
+++ <p>In the pipelines, just add this for example :</p>
+++ <pre>&lt;map:match pattern="hello.pdf"&gt;
+++   &lt;map:generate src="" type="file"/&gt;
+++   &lt;map:serialize type="fo2pdf"/&gt;
+++ &lt;/map:match&gt;</pre>
+++ <p>You will need the sample <a href="daisy:1224"></a> file to
be located
+++ in the same directory as the sitemap.xmap</p>

View raw message