Anand, I don't know much about zip generator, but you can only have one generator per pipeline.
HTH, -Alex --- [EMAIL PROTECTED] wrote: > > Yeah Jorg did suggest to use Directory generator. > But what should the > logic be. For eg: - the code in sitemap for getting > directory contents > list is > > <map:match pattern="downloadMain"> > <map:generate type="directory" src="."> > <map:parameter name="depth" value="5"/> > </map:generate> > <map:transform > src="stylesheets/dir2html.xsl"/> > > <map:serialize/> > </map:match> > > > > And the xml file for zipping a file is > > <zip-archive:archive > xmlns:zip-archive="http://apache.org/cocoon/zip-archive/1.0"> > > <zip-archive:entry name = "a.txt" > src="C:\jboss-3.2.1\server\im\deploy\cocoon.war\mointest\a.txt"/> > > </zip-archive:archive> > > How do I combine both the entities to zip an entire > directory with > appropriate file names. > > I tried something like this, but didn't work. > > <map:match pattern="Test.zip"> > <map:generate src="content/hello_zip.xml"/> > <map:generate type="directory" src="."> > <map:parameter name="depth" value="5"/> > </map:generate> > <map:serialize type="zip"/> > </map:match> > > And it gave an error: - > > Generator already set. Cannot set generator > 'directory' at > file:/C:/jboss-3.2.1/server/im/deploy/cocoon.war/mointest/sitemap.xmap:6 > 2:44 > > Please help. > > > > Regards > Anand > > -----Original Message----- > From: Joerg Heinicke [mailto:[EMAIL PROTECTED] > Sent: Sunday, May 09, 2004 6:44 PM > To: [EMAIL PROTECTED] > Subject: Re: Help Pls Zip Archive Serializer > > On 09.05.2004 14:56, [EMAIL PROTECTED] > wrote: > > > Gentle reminder to all. Anybody who can help me > out in zipping files > > thru cocoon. Please go thru the mail below for my > query??? > > Didn't Jorg Heymans already gave the hint to use the > directory generator > > for this? > > Joerg > > > -----Original Message----- > > From: Anand Vasudevan > > > > Hi, > > > > I want to zip the entire directory contents and if > there are > > subdirectories then their contents also using Zip > Archive Serializer. > > > > <?xml version="1.0" encoding="iso-8859-1"?> > > > > <zip-archive:archive > > > xmlns:zip-archive="http://apache.org/cocoon/zip-archive/1.0"> > > > > > > <zip-archive:entry name= " " src= "D:\docs"/> > > > > > > </zip-archive:archive> > > > > > > In the above code do I have to tediously mention > all the files in the > > directory and the subdirectories(this would > > > > again contain so many files) for zipping the > contents of the docs > > directory? > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > > Confidentiality Notice > > The information contained in this electronic message > and any attachments to this message are intended > for the exclusive use of the addressee(s) and may > contain confidential or privileged information. If > you are not the intended recipient, please notify > the sender at Wipro or [EMAIL PROTECTED] > immediately > and destroy all copies of this message and any > attachments. > > --------------------------------------------------------------------- > 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]
