cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From da...@cocoon.zones.apache.org
Subject [DAISY] Updated: Basic usage
Date Mon, 02 Oct 2006 15:21:16 GMT
A document has been updated:

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

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

Parts
=====

Content
-------
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>
    
    <ul>
    <li>for pdf generation :</li>
(7 equal lines skipped)
    <li>for pcl generation :</li>
    </ul>
    
--- <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>" 
        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" 
+++     mime-type="application/ps" 
        logger="sitemap.serializer.fo2ps"&gt;</pre>
    
+++ <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="hello.fo" type="file"/&gt;
+++   &lt;map:serialize type="fo2pdf"/&gt;
+++ &lt;/map:match&gt;</pre>
+++ 
+++ <p>You will need the sample <a href="daisy:1224">hello.fo</a> file to
be located
+++ in the same directory as the sitemap.xmap</p>
+++ 
    </body>
    </html>


Mime
View raw message