Hi All! I’m trying to use the
zip serializer – not very successful. I generate xml like: <?xml version="1.0" encoding="ISO-8859-1" ?> - <<zip:archive xmlns:zip="http://apache.org/cocoon/zip-archive/1.0"> < <zip:entry
src="cocoon:/buyer/KMW/cat.export" name="cat.xml" /> </zip:archive> This will be send to the serializer in this sitemap fragment: <map:match pattern="protected_*.zip"> <map:generate src="xml/content/{../role}/org/{../org}/catalog/{1}.xml"/> <map:transform src="xml/xsl/catalogzip.xsl"> <map:parameter name="pfad" value="xml/content/{../role}/org/{../org}/"/> <map:parameter name="datei" value="cocoon:/{../role}/{../org}/{1}.export"/> </map:transform> <map:serialize type="zip"/> </map:match> The expected result would be
a download dialog window, where I can download the zip file on my hdd. But all I got was this error message: Unable
to determine MIME type for myproject//protected_cat.zip If I change type=”zip”
to type=”xml” the sitemapcode works fine
(it gives back the xml you can see above). Does anyone have experience with the
zip serializer or an idea how I can solve this
problem? Thank you! Best regards - Claus __________________________________________ Claus Straube Francéstrasse 31 80997 München +49 (089) 14 16 682 |
- Re: zip serializer Claus Straube
- Re: zip serializer Bertrand Delacretaz
- AW: zip serializer Claus Straube