cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stoeckel, Matthias" <Matthias.Stoec...@Dresdner-Bank.com>
Subject AW: Zip archive Serializer question
Date Tue, 06 May 2003 09:42:54 GMT
Hi Jonny,


> Wher do I use this part in a pipeline????
> 
> <zip:archive xmlns:zip="http://apache.org/cocoon/zip-archive/1.0">
>   <zip:entry name="foo.html" src="cocoon://dynFoo.html"/>
>   <zip:entry name="images/bar.jpeg" src="bar.jpeg"/>
> </zip:archive:zip>
> 

The XML above is part of the XML stream which is needed for the serializer.
You can for exmaple put this into a static file or create this through any
other generator.
This is an example pipeline:

    <map:generate type="file" src="zip.xml"/>
    <map:serialize type="zip"/>

"file"->FileGenerator
"zip"->ZipArchiveSerializer

The serializer takes all zip:entry tags and puts them into a zip archive
which will be sent back to the browser.
Cheers
  Matthias

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Mime
View raw message