Return-Path: Delivered-To: apmail-cocoon-docs-archive@www.apache.org Received: (qmail 68451 invoked from network); 2 Oct 2006 17:13:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Oct 2006 17:13:28 -0000 Received: (qmail 82537 invoked by uid 500); 2 Oct 2006 17:13:28 -0000 Delivered-To: apmail-cocoon-docs-archive@cocoon.apache.org Received: (qmail 82509 invoked by uid 500); 2 Oct 2006 17:13:28 -0000 Mailing-List: contact docs-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: docs@cocoon.apache.org List-Id: Delivered-To: mailing list docs@cocoon.apache.org Received: (qmail 82498 invoked by uid 99); 2 Oct 2006 17:13:28 -0000 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [207.7.158.203] (HELO cocoon.zones.apache.org) (207.7.158.203) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Oct 2006 10:13:27 -0700 Message-ID: <12178808.1159808986050.JavaMail.daisy@cocoon.zones.apache.org> Date: Mon, 2 Oct 2006 17:09:46 +0000 (GMT+00:00) From: daisy@cocoon.zones.apache.org To: docs@cocoon.apache.org Subject: [DAISY] Updated: Basic usage Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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 =3D=3D=3D=3D=3D 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) =20

Basic usage

=20 ---
    ---
  1. First declare the serializer you need.
  2. ---
+++

Declaration of the=C2=A0the needed serializer(s)

=20 ---

In the sitemap <map:serializers> section, add this :

+++

In the <map:serializers> section of the section, add this : =20

  • for pdf generation :
  • (7 equal lines skipped)
  • for pcl generation :
=20 ---
<map:serializer name=3D"fo2pcl" src=3D"org.apache.cocoon.serial=
ization.FOPSerializer"=20
--- =C2=A0=C2=A0=C2=A0=C2=A0mime-type=3D"application/pdf"=20
+++ 
<map:serializer name=3D"fo2pcl" src=3D"org.apache.cocoon.serial=
ization.PCLSerializer"=20
+++ =C2=A0=C2=A0=C2=A0=C2=A0mime-type=3D"application/vnd.hp-PCL"=20
    =C2=A0=C2=A0=C2=A0=C2=A0logger=3D"sitemap.serializer.fo2pcl">
=20
  • for ps generation :
=20
<map:serializer name=3D"fo2pdf" src=3D"org.apache.cocoon.serial=
ization.FOPSerializer"=20
--- =C2=A0=C2=A0=C2=A0=C2=A0mime-type=3D"application/pdf"=20
+++ =C2=A0=C2=A0 =C2=A0mime-type=3D"application/ps"=20
    =C2=A0=C2=A0=C2=A0=C2=A0logger=3D"sitemap.serializer.fo2ps">
=20 +++

Serializers usage

+++=20 +++

In the pipelines, just add this for example :

+++=20 +++
<map:match pattern=3D"hello.pdf">
+++   <map:generate src=3D"hello.fo" type=3D"file"/>
+++   <map:serialize type=3D"fo2pdf"/>
+++ </map:match>
+++=20 +++

You will need the sample hello.fo file to= be located +++ in the same directory as the sitemap.xmap

+++=20