Hi Upayavira, unfortunately your patch doesn't work. The STORED method expects the file size and the crc code, which is not set. Attached is a patch with a small sample for the ZipArchiveSerializer. The sample takes three files from the hello-world sample and returns a hello.zip file. AFAIK there's no example atm. The hello_zip.xml file should be put in src/webapp/samples/hello-world/content/. Cheers Matthias
> -----Urspr�ngliche Nachricht----- > Von: Upayavira [mailto:[EMAIL PROTECTED] > Gesendet: Donnerstag, 12. Juni 2003 22:01 > An: [EMAIL PROTECTED] > Betreff: Re: OOo and ZipArchive serializer > > > Let me know what version of Cocoon you're using and I'll try > to send a correct patch. > > Upayavira
hello_zip.xml
Description: Binary data
Index: src/webapp/samples/hello-world/samples.xml
===================================================================
RCS file: /home/cvspublic/cocoon-2.1/src/webapp/samples/hello-world/samples.xml,v
retrieving revision 1.8
diff -u -r1.8 samples.xml
--- src/webapp/samples/hello-world/samples.xml 4 Jun 2003 22:45:07 -0000 1.8
+++ src/webapp/samples/hello-world/samples.xml 13 Jun 2003 10:46:36 -0000
@@ -70,6 +70,9 @@
Flash ... You need the appropriate plugin for your browser.
(Requires block-swf.)
</sample>
+ <sample name="Zip archive" href="hello.zip">
+ Some samples in a Zip archive.
+ </sample>
</group>
<group name="Hello Office!">
Index: src/webapp/samples/hello-world/sitemap.xmap
===================================================================
RCS file: /home/cvspublic/cocoon-2.1/src/webapp/samples/hello-world/sitemap.xmap,v
retrieving revision 1.10
diff -u -r1.10 sitemap.xmap
--- src/webapp/samples/hello-world/sitemap.xmap 4 Jun 2003 22:45:07 -0000 1.10
+++ src/webapp/samples/hello-world/sitemap.xmap 13 Jun 2003 10:46:36 -0000
@@ -101,6 +101,11 @@
<map:serialize type="sxd"/>
</map:match>
+ <map:match pattern="hello.zip">
+ <map:generate src="content/hello_zip.xml"/>
+ <map:serialize type="zip"/>
+ </map:match>
</map:pipeline>
+
</map:pipelines>
</map:sitemap>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
