Hi all,
I'm attempting to create a modified copy a zipfile using zip:update-entries, but my output is a zip structure with zero-byte files. Am I missing a step? I've followed the example in: http://docs.basex.org/wiki/ZIP_Module#zip:update-entries
Code snippet as follows:
declare function util:clean-zip($zip as xs:string, $out as xs:string) { copy $doc := zip:entries($zip) modify delete node $doc//zip:entry[ends-with(lower-case(@name), '.pdf')] return zip:update-entries($doc, $out) };
Thanks for any pointers ;-)
C.
________________________________
Elsevier B.V. Registered Office: Radarweg 29, 1043 NX Amsterdam, The Netherlands, Registration No. 33156677, Registered in The Netherlands.