Hi Sylvain, The latter is correct. What you get a *DirectoryGenerator style listing that shows the properties of any zip files it hits as a whole (last mod, number of entries etc) and then each entry in the zip file with their properties e.g. compressed size, uncompressed size etc.
It could, for example, be used in conjunction with the serializer (and some other bits of code) to build an archive file manager. I've not checked the serializer out yet but I am assuming that it works one way only - i.e. from source to zip. What might complete the suite is something that grabs a source from a zip file so you have stuff that will handle both archive and extraction. I've not tested my stuff on Unix or with tar/gz either - if I do that I might rename to Archive* rather than Zip*. If it is of enough generic interest then I am more than happy to post the code for inclusion in the scratchpad - but it's not *that* clever ;-) Rgds Jeremy -----Original Message----- From: Sylvain Wallez [mailto:sylvain.wallez@;anyware-tech.com] Sent: 31 October 2002 21:25 To: [EMAIL PROTECTED] Subject: Re: New ZipArchiveSerializer Sylvain Wallez wrote: > Jeremy Aston wrote: > >> Very cool, >> As a demo of how to write a generator for Lajos' and >> my upcoming Cocoon book I have written a >> ZipDirectoryGenerator which might augment this. If >> anyone is interested in getting the code then let me >> know. >> >> > > Sounds good, but the same can easily be achieved by chaining the > DirectoryGenerator and the ZipArchiveSerializer through a very simple > XSL transformation. Jeremy, I suddenly realize I may have misunderstood what's behind the ZipDirectoryGenerator. I initially thought about a component that packs the contents of a directory in a zip archive, but I finally guess it's a generator that lists the content of a zip archive, as outlined by the fact that it's a generator. Which one is right ? Sylvain -- Sylvain Wallez Anyware Technologies http://www.apache.org/~sylvain http://www.anyware-tech.com { XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]