Of course there is Mansour.
You first need to define a pipeline that will dynamically generate the below
zip:archive document. If that is based on processing files from some directory
you could potentially first use the directory generator to list the files in
XML directory representation. But in fact you should think the other way around:
Next you transform that XML directory representation to the one below.
>From a sitemap point of view:
<!-- {1} : absolute path to folder -->
<map:match pattern="listfiles/**">
Use directory generator
</map:match>
<!-- {1} : absolute path to folder -->
<map:match pattern="filelist2zip/**">
<map:generate src="cocoon:/listfiles/{1}"/>
<map:transform src="filelist2ZipArchive.xslt"/>
<map:serialize type="zip"/>
</map:match>
-----Original Message-----
From: Mansour Al Akeel [mailto:[email protected]]
Sent: Friday, November 30, 2012 4:49 AM
To: users
Subject: Download Zip for processed contents
I have multiple matchers, that do transformation for many documents, I am
wondering if there's a way to download the whole processed contents.
I know there's a directory generator, but this will generate listing for the
files, and will not be able to invoke the processing. For
example:
<zip:archive xmlns:zip="http://apache.org/cocoon/zip-archive/1.0">
<zip:entry name="someDirectory/001" src="cocoon://documents-1/001.html"/>
<zip:entry name="someDirectory/002" src="cocoon://documents-1/002.html"/>
<zip:entry name="someDirectory/003" src="cocoon://documents-1/003.html"/>
<zip:entry name="someDirectory/004" src="cocoon://documents-1/004.html"/>
...
<zip:entry name="someDirectory/999" src="cocoon://documents-1/999.html"/>
<zip:entry name="path1/001" src="cocoon://documents-2/001.html"/>
<zip:entry name="path1/002" src="cocoon://documents-2/002.html"/>
.....
</zip:archive>
Thank you.
---------------------------------------------------------------------
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]