I tried a little bit different approach. I wrote a xsl that prepend and append zip tags to data, then I serialize with zip serializer.
The result is the same. :-(. I'll try to modify xsp. Thanks Alberto On Wed, 2005-07-20 at 15:23 +0100, Rui Alberto wrote: > Hi Alberto, > I've tested and the problem occurred as you described. > If the @src (element entry) attribute refers a file in the file system, > there's no problem, but when using cocoon protocol, working with a large > amount of data the resulting zip file has 0 bytes!! > > I've tried using: > > <zip:archive xmlns:zip="http://apache.org/cocoon/zip-archive/1.0"> > <zip:entry name="data.txt" serializer="xml"> > ... > LARGE AMOUNT OF DATA HERE > ... > </zip:entry> > </zip:archive> > and it worked. It's slow and not the most clean way of doing things, but > works! Make year xsp encapsulate the document in this tags! > HTH, > Rui > > > > > > On Wed, 2005-07-20 at 14:01 +0200, Alberto Brosich wrote: > > On Wed, 2005-07-20 at 12:28 +0100, Rui Alberto wrote: > > > Hi, > > > try moving <map:match pattern="data.zip"> ... into a noncaching > > > pipeline type. > > > > No changes. I tried with some values of outputBufferSize between 1024 > > and 65000. The behaviour remains the same. > > > > How can i do some debugging? > > > > Alberto > > > > > > > > HTH. > > > Rui > > > > > > On Wed, 2005-07-20 at 12:58 +0200, Alberto Brosich wrote: > > > > I have some problems with zip serializer. > > > > > > > > I use cocoon 2.1.7, tomcat 5.5.9, jdk 1.5.0_04-b05 > > > > > > > > With small files (1-10 MByte) works all fine. With ~18 Mbyte > > > > the zip file has 0 length. > > > > Without zip serializer the browser reads correctly all megas (after some > > > > minutes :-)). > > > > > > > > Any suggest? > > > > > > > > regards > > > > > > > > Alberto Brosich > > > > > > > > > > > > Follow two slices of sitemap > > > > > > > > ... > > > > <map:match pattern="data.zip"> > > > > <map:generate src="resources/extract_params_zip.xml"/> > > > > <map:serialize type="zip"/> > > > > ... > > > > <map:pipeline type="noncaching"> > > > > <map:parameter name="outputBufferSize" value="8192"/> > > > > <map:match pattern="data-parameters"> > > > > <map:generate type="serverpages" > > > > src="resources/parameters_data.xsp"/> > > > > <map:serialize type="xml"/> > > > > </map:match> > > > > </map:pipeline> > > > > ... > > > > > > > > > > > > where extract_params_zip.xml is the following file > > > > > > > > <zip-archive:archive > > > > xmlns:zip-archive="http://apache.org/cocoon/zip-archive/1.0"> > > > > <zip-archive:entry name="data.txt" src="cocoon:/data-parameters"/> > > > > </zip-archive:archive> > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]